POST
/
customer
/
{customer_id}
/
magic-link
import Openint from '@openint/sdk';

const client = new Openint({
  apiKey: process.env['OPENINT_API_KEY'], // This is the default and can be omitted
});

async function main() {
  const response = await client.createMagicLink('customer_id');

  console.log(response.magic_link_url);
}

main();
{
  "magic_link_url": "<string>"
}

Authorizations

Authorization
string
header
required

Organization API key generated in the OpenInt Console and passed in the authorization header with format: Bearer {apiKey}

Path Parameters

customer_id
string
required

The id of the customer in your application. Ensure it is unique for that customer.

Body

application/json
validity_in_seconds
number
default:2592000

How long the magic link will be valid for (in seconds) before it expires

redirect_url
string

Where to send user to after connect / if they press back button

connector_names
enum<string>[]

Filter integrations by connector names

Available options:
aircall,
airtable,
apollo,
beancount,
brex,
coda,
confluence,
discord,
finch,
firebase,
foreceipt,
github,
gong,
google,
greenhouse,
heron,
hubspot,
intercom,
jira,
kustomer,
lever,
linear,
lunchmoney,
merge,
microsoft,
moota,
onebrick,
outreach,
pipedrive,
plaid,
qbo,
ramp,
salesforce,
salesloft,
saltedge,
slack,
splitwise,
stripe,
teller,
toggl,
twenty,
wise,
xero,
yodlee,
zohodesk,
googledrive
connection_id
string

The specific connection id to load

theme
enum<string>
default:light

Magic Link display theme

Available options:
light,
dark
view
enum<string>
default:add

Magic Link tab view to load in the connect magic link

Available options:
manage,
manage-deeplink,
add,
add-deeplink

Response

200
application/json
Successful response

The Connect magic link url to share with the user.