POST
/
customer
/
{customer_id}
/
token
import Openint from '@openint/sdk';

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

async function main() {
  const response = await client.createToken('x');

  console.log(response.token);
}

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

Authorizations

Authorization
string
header
required

Organization API Key available in the settings page of the OpenInt Console or Customer API Key or Token Customer authentication token created using the create customer token API. It is passed in the authorization header with format: Bearer {token}

Path Parameters

customer_id
string
required

The unique ID of the customer to create the token for

Minimum length: 1

Body

application/json

Response

200
application/json

Successful response

The response is of type object.