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('x');

  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
Minimum length: 1

Body

application/json
validity_in_seconds
number
default:2592000

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

client_options
object

Search params to configure the connect page. Not signed as part of JWT and therefore can be modified by client

Response

200
application/json
Successful response

The Connect magic link url to share with the user.