import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.partnerCampaigns.listSharedByMe();
console.log(response.page);{
"page": 123,
"records": [
{
"brandId": "<string>",
"campaignId": "<string>",
"usecase": "<string>",
"createDate": "<string>",
"status": "<string>"
}
],
"totalRecords": 123
}Get all partner campaigns you have shared to Telnyx in a paginated fashion
This endpoint is currently limited to only returning shared campaigns that Telnyx has accepted. In other words, shared but pending campaigns are currently omitted from the response from this endpoint.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.partnerCampaigns.listSharedByMe();
console.log(response.page);{
"page": 123,
"records": [
{
"brandId": "<string>",
"campaignId": "<string>",
"usecase": "<string>",
"createDate": "<string>",
"status": "<string>"
}
],
"totalRecords": 123
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The 1-indexed page number to get. The default value is 1.
The 1-indexed page number to get. The default value is 1.
The amount of records per page, limited to between 1 and 500 inclusive. The default value is 10.
The amount of records per page, limited to between 1 and 500 inclusive. The default value is 10.
Successful Response
Show child attributes
Alphanumeric identifier of the brand associated with this campaign.
Alphanumeric identifier assigned by the registry for a campaign. This identifier is required by the NetNumber OSR SMS enabling process of 10DLC.
Campaign usecase. Must be of defined valid types. Use /registry/enum/usecase operation to retrieve usecases available for given brand.
Unix timestamp when campaign was created.
Current campaign status. Possible values: ACTIVE, EXPIRED. A newly created campaign defaults to ACTIVE status.
Was this page helpful?