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.update('token', {
user_id: 'user_id',
patch: [{ op: 'op', path: 'path' }],
});{
"message": "<string>"
}Apply a JSON Patch (RFC 6902) to the specified token.
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.update('token', {
user_id: 'user_id',
patch: [{ op: 'op', path: 'path' }],
});{
"message": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://www.courier.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The user's ID. This can be any uniquely identifiable string.
The full token string.
Show child attributes