Knowledge API (v2) - Operations endpoints
(information)
Legal information
Enterprise Knowledge, including the APIs, may use artificial intelligence or machine learning technologies and is subject to the terms of the Predictive and Generative AI/ML Features Addendum. For more details on AI usage and data, see the AI Nutrition Facts.
Enterprise Knowledge is not a HIPAA Eligible Service or PCI compliant and should not be enabled in workflows that are subject to HIPAA or PCI.
Endpoints
GET
/v2/ControlPlane/Operations/{operationId}Get Operation Status
GET/v2/ControlPlane/Operations/{operationId}
Base url: https://knowledge.twilio.com (base url)
Retrieve the status and result of an asynchronous operation.
Security: Basic Auth
Property nameTypeRequiredPIIDescription
The operation ID returned from a write endpoint.
Max length:
512200400404429500503
Operation status retrieved successfully.
Schema
Property nameTypeRequiredPIIDescriptionChild properties
The current status of the operation.
Example:
COMPLETEDPossible values: PENDINGRUNNINGCANCELLEDCOMPLETEDFAILEDWhen the operation was created.
Example:
2025-11-14T20:29:21ZOperation-specific output. Present when status is COMPLETED.
Show result properties
URL to fetch the resulting resource.
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function fetchOperation() {11const operation = await client.knowledge.v2.operations("operationId").fetch();1213console.log(operation.operationId);14}1516fetchOperation();
Response
1{2"completedAt": "2009-07-06T20:30:00Z",3"createdAt": "2009-07-06T20:30:00Z",4"error": {5"type": "https://www.example.com",6"title": "title",7"code": 42,8"detail": "detail"9},10"operationId": "operationId",11"result": {},12"resultUrl": "https://www.example.com",13"status": "COMPLETED",14"statusUrl": "https://www.example.com"15}