SenderPool Operations resource
SenderPool Operations represents an asynchronous request related to SenderPool resources. Use the operation ID to monitor the status and progress of a SenderPool operation.
The Operation ID is an identifier that can be used to correlate all of the resources created in a request.
Issue a GET request to the resource list location, using the Operation ID as a query parameter to retrieve the resources that correlate with the Operation.
comms_operation_01h9krwprkeee8fzqspvwy6nq8Pattern: ^comms_operation_[0-7][a-hjkmnpqrstv-z0-9]{25,34}The status of an Operation.
PROCESSINGCOMPLETEDCANCELEDGET https://comms.twilio.com/v1/SenderPools/Operations/{operationId}
Retrieve a SenderPool Operation by its ID.
comms_operation_01h9krwprkeee8fzqspvwy6nq8Pattern: ^comms_operation_[0-7][a-hjkmnpqrstv-z0-9]{25,34}OK
Optional
The Operation ID is an identifier that can be used to correlate all of the resources created in a request.
Issue a GET request to the resource list location, using the Operation ID as a query parameter to retrieve the resources that correlate with the Operation.
comms_operation_01h9krwprkeee8fzqspvwy6nq8Pattern: ^comms_operation_[0-7][a-hjkmnpqrstv-z0-9]{25,34}Optional
The status of an Operation.
PROCESSINGCOMPLETEDCANCELEDOptional
Optional
Optional
1import { TwilioClient } from "twilio-comms";23async function main() {4const client = new TwilioClient({5accountId: "TWILIO_ACCOUNT_SID",6authToken: "TWILIO_AUTH_TOKEN",7});8await client.senderPools.fetchOperation("comms_operation_01h9krwprkeee8fzqspvwy6nq8");9}10main();
GET https://comms.twilio.com/v1/SenderPools/Operations
Retrieve a list of SenderPool Operations. Use query parameters to filter results by status and date range.
Filter to Operations created after the specified date and time in ISO 8601 format.
Filter to Operations created before the specified date and time in ISO 8601 format.
Filter to Operations with the specified status.
PROCESSINGCOMPLETEDCANCELEDThe number of resources to return in a page.
50Example: 50Minimum: 1Maximum: 1000OK
Optional
A list of SenderPool Operations.
Optional
Metadata for paginated results. This object contains two tokens to navigate through paginated results.
- Use
nextto retrieve the 'next' page in the result list. - Use
selfto retrieve the same page of the result list again. - Supply the token in the
pageTokenquery param.
1import { TwilioClient } from "twilio-comms";23async function main() {4const client = new TwilioClient({5accountId: "TWILIO_ACCOUNT_SID",6authToken: "TWILIO_AUTH_TOKEN",7});8await client.senderPools.listOperations({9startDate: new Date("2024-01-15T09:30:00Z"),10endDate: new Date("2024-01-15T09:30:00Z"),11status: "PROCESSING",12pageToken: "pageToken",13pageSize: 50,14});15}16main();