Skip to main content
GET
/
campaign
/
{campaignId}
/
sharing
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const response = await client.campaign.getSharingStatus('campaignId');

console.log(response.sharedByMe);
{
  "sharedByMe": {
    "downstreamCnpId": "<string>",
    "sharedDate": "<string>",
    "sharingStatus": "<string>",
    "statusDate": "<string>",
    "upstreamCnpId": "<string>"
  },
  "sharedWithMe": {
    "downstreamCnpId": "<string>",
    "sharedDate": "<string>",
    "sharingStatus": "<string>",
    "statusDate": "<string>",
    "upstreamCnpId": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

campaignId
string
required

ID of the campaign in question

Response

Successful Response

sharedByMe
object
sharedWithMe
object