Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
A unique identifier representing the user associated with the requested profile.
import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: 'My API Key',
});
const profile = await client.profiles.retrieve('user_id');
console.log(profile.profile);{
"profile": {},
"preferences": {
"categories": {},
"notifications": {}
}
}Returns the specified user profile.
import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: 'My API Key',
});
const profile = await client.profiles.retrieve('user_id');
console.log(profile.profile);{
"profile": {},
"preferences": {
"categories": {},
"notifications": {}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
A unique identifier representing the user associated with the requested profile.