Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The context ID of the FAQ to delete
Example:
"ai-context-aaauajhjdgjnomr"
Response
200 OK
import { PeriskopeApi } from '@periskope/periskope-client';
const client = new PeriskopeApi({
authToken: 'YOUR_API_KEY',
phone: 'YOUR_PHONE_NUMBER', // e.g., '919876543210'
});
async function deleteFaq() {
const response = await client.knowledgeBase.deleteFaq({
context_id: 'ai-context-aaauajhjdgjnomr'
});
console.log(response);
}
deleteFaq();{
"context_id": "ai-context-aaauajhjdgjnomr"
}Delete a single FAQ entry by context_id
import { PeriskopeApi } from '@periskope/periskope-client';
const client = new PeriskopeApi({
authToken: 'YOUR_API_KEY',
phone: 'YOUR_PHONE_NUMBER', // e.g., '919876543210'
});
async function deleteFaq() {
const response = await client.knowledgeBase.deleteFaq({
context_id: 'ai-context-aaauajhjdgjnomr'
});
console.log(response);
}
deleteFaq();{
"context_id": "ai-context-aaauajhjdgjnomr"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The context ID of the FAQ to delete
"ai-context-aaauajhjdgjnomr"
200 OK
Was this page helpful?