Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
A unique identifier representing the bulk job
import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: 'My API Key',
});
const response = await client.bulk.retrieveJob('job_id');
console.log(response.job);{
"job": {
"definition": {
"template": "<string>",
"brand": "<string>",
"data": {},
"event": "<string>",
"locale": {},
"override": {}
},
"enqueued": 123,
"failures": 123,
"received": 123,
"status": "CREATED"
}
}Get a bulk job
import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: 'My API Key',
});
const response = await client.bulk.retrieveJob('job_id');
console.log(response.job);{
"job": {
"definition": {
"template": "<string>",
"brand": "<string>",
"data": {},
"event": "<string>",
"locale": {},
"override": {}
},
"enqueued": 123,
"failures": 123,
"received": 123,
"status": "CREATED"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
A unique identifier representing the bulk job
Show child attributes