import { PeriskopeApi } from '@periskope/periskope-client';
const client = new PeriskopeApi({
authToken: 'YOUR_API_KEY',
phone: 'YOUR_PHONE_NUMBER', // e.g., '919876543210'
});
async function createPhone() {
const response = await client.phone.create();
console.log(response);
}
createPhone();{}This endpoint will create a new phone for your organization
import { PeriskopeApi } from '@periskope/periskope-client';
const client = new PeriskopeApi({
authToken: 'YOUR_API_KEY',
phone: 'YOUR_PHONE_NUMBER', // e.g., '919876543210'
});
async function createPhone() {
const response = await client.phone.create();
console.log(response);
}
createPhone();{}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
200 OK
The response is a JSON object about the phone.
Was this page helpful?