import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted
});
await client.users.tokens.addMultiple('user_id');{
"message": "<string>",
"type": "invalid_request_error"
}Adds multiple tokens to a user and overwrites matching existing tokens.
import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted
});
await client.users.tokens.addMultiple('user_id');{
"message": "<string>",
"type": "invalid_request_error"
}