TypeScript
import { PeriskopeApi } from '@periskope/periskope-client';
const client = new PeriskopeApi({
authToken: 'YOUR_API_KEY',
phone: '919876543210', // the phone to act with (x-phone)
});
async function main() {
const response = await client.phones.resyncPhone();
console.log(response);
}
main();curl -X POST 'https://api.periskope.app/v1/phones/resync' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'x-phone: 919876543210'Phone APIs
Resync Phone
Triggers a full resync between WhatsApp and Periskope for the phone. The phone must be connected.
TypeScript
import { PeriskopeApi } from '@periskope/periskope-client';
const client = new PeriskopeApi({
authToken: 'YOUR_API_KEY',
phone: '919876543210', // the phone to act with (x-phone)
});
async function main() {
const response = await client.phones.resyncPhone();
console.log(response);
}
main();curl -X POST 'https://api.periskope.app/v1/phones/resync' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'x-phone: 919876543210'Authorizations
Headers
Response
Resync triggered — no content
Was this page helpful?