import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted
});
const providers = await client.providers.list();
console.log(providers.paging);{
"paging": {
"more": true,
"cursor": "<string>"
},
"results": [
{
"id": "<string>",
"title": "<string>",
"provider": "<string>",
"settings": {},
"created": 123,
"alias": "<string>",
"updated": 123
}
]
}List configured provider integrations for the current workspace. Supports cursor-based pagination.
import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted
});
const providers = await client.providers.list();
console.log(providers.paging);{
"paging": {
"more": true,
"cursor": "<string>"
},
"results": [
{
"id": "<string>",
"title": "<string>",
"provider": "<string>",
"settings": {},
"created": 123,
"alias": "<string>",
"updated": 123
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Opaque cursor for fetching the next page.