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

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

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

console.log(response.time);
{
  "time": 123,
  "record_type": "<string>",
  "message": "<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

Response

Successful Response

time
number
required
record_type
string
message
string