Twilio: Create a Siprec
Twilio siprec.createSiprec: arguments, response, policy and SDK examples.
← Siprec operations · Get started
Operation twilio.createsiprec
Provider route: POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Siprec.json. Alter supplies the connection’s credentials and routing.
Call through Alter
Section titled “Call through Alter”Install @alter-ai/sdk @alter-ai/twilio with npm, or alter-sdk-twilio with pip. Supply your connected customer’s grant ID and the arguments described below.
import { App } from "@alter-ai/sdk";import { TwilioIntegration } from "@alter-ai/twilio";
async function execute(input: Parameters<TwilioIntegration["siprec"]["createSiprec"]>[0]) { const app = new App({ apiKey: process.env.ALTER_API_KEY! }); try { const provider = new TwilioIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! }); const call = await provider.siprec.createSiprec(input); const result = await call.wait(); return result.bodyJson(); } finally { await app.close(); }}import osfrom alter_sdk import Appfrom alter_sdk_twilio import TwilioIntegration
async def execute(arguments): async with App(api_key=os.environ["ALTER_API_KEY"]) as app: provider = TwilioIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]}) call = await provider.siprec.create_siprec(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
path | object | Required within parent | Additional keys: not allowed |
path.AccountSid | string | Required within parent | Maximum length: 34 Minimum length: 34 Pattern: ^AC[0-9a-fA-F]{32}$ |
path.CallSid | string | Required within parent | Maximum length: 34 Minimum length: 34 Pattern: ^CA[0-9a-fA-F]{32}$ |
body | object | Optional | |
body.ConnectorName | string | Optional | Unique name used when configuring the connector via Marketplace Add-on. |
body.Name | string | Optional | The user-specified name of this Siprec, if one was given when the Siprec was created. This may be used to stop the Siprec. |
body.Parameter1.Name | string | Optional | Parameter name |
body.Parameter1.Value | string | Optional | Parameter value |
body.Parameter10.Name | string | Optional | Parameter name |
body.Parameter10.Value | string | Optional | Parameter value |
body.Parameter11.Name | string | Optional | Parameter name |
body.Parameter11.Value | string | Optional | Parameter value |
body.Parameter12.Name | string | Optional | Parameter name |
body.Parameter12.Value | string | Optional | Parameter value |
body.Parameter13.Name | string | Optional | Parameter name |
body.Parameter13.Value | string | Optional | Parameter value |
body.Parameter14.Name | string | Optional | Parameter name |
body.Parameter14.Value | string | Optional | Parameter value |
body.Parameter15.Name | string | Optional | Parameter name |
body.Parameter15.Value | string | Optional | Parameter value |
body.Parameter16.Name | string | Optional | Parameter name |
body.Parameter16.Value | string | Optional | Parameter value |
body.Parameter17.Name | string | Optional | Parameter name |
body.Parameter17.Value | string | Optional | Parameter value |
body.Parameter18.Name | string | Optional | Parameter name |
body.Parameter18.Value | string | Optional | Parameter value |
body.Parameter19.Name | string | Optional | Parameter name |
body.Parameter19.Value | string | Optional | Parameter value |
body.Parameter2.Name | string | Optional | Parameter name |
body.Parameter2.Value | string | Optional | Parameter value |
body.Parameter20.Name | string | Optional | Parameter name |
body.Parameter20.Value | string | Optional | Parameter value |
body.Parameter21.Name | string | Optional | Parameter name |
body.Parameter21.Value | string | Optional | Parameter value |
body.Parameter22.Name | string | Optional | Parameter name |
body.Parameter22.Value | string | Optional | Parameter value |
body.Parameter23.Name | string | Optional | Parameter name |
body.Parameter23.Value | string | Optional | Parameter value |
body.Parameter24.Name | string | Optional | Parameter name |
body.Parameter24.Value | string | Optional | Parameter value |
body.Parameter25.Name | string | Optional | Parameter name |
body.Parameter25.Value | string | Optional | Parameter value |
body.Parameter26.Name | string | Optional | Parameter name |
body.Parameter26.Value | string | Optional | Parameter value |
body.Parameter27.Name | string | Optional | Parameter name |
body.Parameter27.Value | string | Optional | Parameter value |
body.Parameter28.Name | string | Optional | Parameter name |
body.Parameter28.Value | string | Optional | Parameter value |
body.Parameter29.Name | string | Optional | Parameter name |
body.Parameter29.Value | string | Optional | Parameter value |
body.Parameter3.Name | string | Optional | Parameter name |
body.Parameter3.Value | string | Optional | Parameter value |
body.Parameter30.Name | string | Optional | Parameter name |
body.Parameter30.Value | string | Optional | Parameter value |
body.Parameter31.Name | string | Optional | Parameter name |
body.Parameter31.Value | string | Optional | Parameter value |
body.Parameter32.Name | string | Optional | Parameter name |
body.Parameter32.Value | string | Optional | Parameter value |
body.Parameter33.Name | string | Optional | Parameter name |
body.Parameter33.Value | string | Optional | Parameter value |
body.Parameter34.Name | string | Optional | Parameter name |
body.Parameter34.Value | string | Optional | Parameter value |
body.Parameter35.Name | string | Optional | Parameter name |
body.Parameter35.Value | string | Optional | Parameter value |
body.Parameter36.Name | string | Optional | Parameter name |
body.Parameter36.Value | string | Optional | Parameter value |
body.Parameter37.Name | string | Optional | Parameter name |
body.Parameter37.Value | string | Optional | Parameter value |
body.Parameter38.Name | string | Optional | Parameter name |
body.Parameter38.Value | string | Optional | Parameter value |
body.Parameter39.Name | string | Optional | Parameter name |
body.Parameter39.Value | string | Optional | Parameter value |
body.Parameter4.Name | string | Optional | Parameter name |
body.Parameter4.Value | string | Optional | Parameter value |
body.Parameter40.Name | string | Optional | Parameter name |
body.Parameter40.Value | string | Optional | Parameter value |
body.Parameter41.Name | string | Optional | Parameter name |
body.Parameter41.Value | string | Optional | Parameter value |
body.Parameter42.Name | string | Optional | Parameter name |
body.Parameter42.Value | string | Optional | Parameter value |
body.Parameter43.Name | string | Optional | Parameter name |
body.Parameter43.Value | string | Optional | Parameter value |
body.Parameter44.Name | string | Optional | Parameter name |
body.Parameter44.Value | string | Optional | Parameter value |
body.Parameter45.Name | string | Optional | Parameter name |
body.Parameter45.Value | string | Optional | Parameter value |
body.Parameter46.Name | string | Optional | Parameter name |
body.Parameter46.Value | string | Optional | Parameter value |
body.Parameter47.Name | string | Optional | Parameter name |
body.Parameter47.Value | string | Optional | Parameter value |
body.Parameter48.Name | string | Optional | Parameter name |
body.Parameter48.Value | string | Optional | Parameter value |
body.Parameter49.Name | string | Optional | Parameter name |
body.Parameter49.Value | string | Optional | Parameter value |
body.Parameter5.Name | string | Optional | Parameter name |
body.Parameter5.Value | string | Optional | Parameter value |
body.Parameter50.Name | string | Optional | Parameter name |
body.Parameter50.Value | string | Optional | Parameter value |
body.Parameter51.Name | string | Optional | Parameter name |
body.Parameter51.Value | string | Optional | Parameter value |
body.Parameter52.Name | string | Optional | Parameter name |
body.Parameter52.Value | string | Optional | Parameter value |
body.Parameter53.Name | string | Optional | Parameter name |
body.Parameter53.Value | string | Optional | Parameter value |
body.Parameter54.Name | string | Optional | Parameter name |
body.Parameter54.Value | string | Optional | Parameter value |
body.Parameter55.Name | string | Optional | Parameter name |
body.Parameter55.Value | string | Optional | Parameter value |
body.Parameter56.Name | string | Optional | Parameter name |
body.Parameter56.Value | string | Optional | Parameter value |
body.Parameter57.Name | string | Optional | Parameter name |
body.Parameter57.Value | string | Optional | Parameter value |
body.Parameter58.Name | string | Optional | Parameter name |
body.Parameter58.Value | string | Optional | Parameter value |
body.Parameter59.Name | string | Optional | Parameter name |
body.Parameter59.Value | string | Optional | Parameter value |
body.Parameter6.Name | string | Optional | Parameter name |
body.Parameter6.Value | string | Optional | Parameter value |
body.Parameter60.Name | string | Optional | Parameter name |
body.Parameter60.Value | string | Optional | Parameter value |
body.Parameter61.Name | string | Optional | Parameter name |
body.Parameter61.Value | string | Optional | Parameter value |
body.Parameter62.Name | string | Optional | Parameter name |
body.Parameter62.Value | string | Optional | Parameter value |
body.Parameter63.Name | string | Optional | Parameter name |
body.Parameter63.Value | string | Optional | Parameter value |
body.Parameter64.Name | string | Optional | Parameter name |
body.Parameter64.Value | string | Optional | Parameter value |
body.Parameter65.Name | string | Optional | Parameter name |
body.Parameter65.Value | string | Optional | Parameter value |
body.Parameter66.Name | string | Optional | Parameter name |
body.Parameter66.Value | string | Optional | Parameter value |
body.Parameter67.Name | string | Optional | Parameter name |
body.Parameter67.Value | string | Optional | Parameter value |
body.Parameter68.Name | string | Optional | Parameter name |
body.Parameter68.Value | string | Optional | Parameter value |
body.Parameter69.Name | string | Optional | Parameter name |
body.Parameter69.Value | string | Optional | Parameter value |
body.Parameter7.Name | string | Optional | Parameter name |
body.Parameter7.Value | string | Optional | Parameter value |
body.Parameter70.Name | string | Optional | Parameter name |
body.Parameter70.Value | string | Optional | Parameter value |
body.Parameter71.Name | string | Optional | Parameter name |
body.Parameter71.Value | string | Optional | Parameter value |
body.Parameter72.Name | string | Optional | Parameter name |
body.Parameter72.Value | string | Optional | Parameter value |
body.Parameter73.Name | string | Optional | Parameter name |
body.Parameter73.Value | string | Optional | Parameter value |
body.Parameter74.Name | string | Optional | Parameter name |
body.Parameter74.Value | string | Optional | Parameter value |
body.Parameter75.Name | string | Optional | Parameter name |
body.Parameter75.Value | string | Optional | Parameter value |
body.Parameter76.Name | string | Optional | Parameter name |
body.Parameter76.Value | string | Optional | Parameter value |
body.Parameter77.Name | string | Optional | Parameter name |
body.Parameter77.Value | string | Optional | Parameter value |
body.Parameter78.Name | string | Optional | Parameter name |
body.Parameter78.Value | string | Optional | Parameter value |
body.Parameter79.Name | string | Optional | Parameter name |
body.Parameter79.Value | string | Optional | Parameter value |
body.Parameter8.Name | string | Optional | Parameter name |
body.Parameter8.Value | string | Optional | Parameter value |
body.Parameter80.Name | string | Optional | Parameter name |
body.Parameter80.Value | string | Optional | Parameter value |
body.Parameter81.Name | string | Optional | Parameter name |
body.Parameter81.Value | string | Optional | Parameter value |
body.Parameter82.Name | string | Optional | Parameter name |
body.Parameter82.Value | string | Optional | Parameter value |
body.Parameter83.Name | string | Optional | Parameter name |
body.Parameter83.Value | string | Optional | Parameter value |
body.Parameter84.Name | string | Optional | Parameter name |
body.Parameter84.Value | string | Optional | Parameter value |
body.Parameter85.Name | string | Optional | Parameter name |
body.Parameter85.Value | string | Optional | Parameter value |
body.Parameter86.Name | string | Optional | Parameter name |
body.Parameter86.Value | string | Optional | Parameter value |
body.Parameter87.Name | string | Optional | Parameter name |
body.Parameter87.Value | string | Optional | Parameter value |
body.Parameter88.Name | string | Optional | Parameter name |
body.Parameter88.Value | string | Optional | Parameter value |
body.Parameter89.Name | string | Optional | Parameter name |
body.Parameter89.Value | string | Optional | Parameter value |
body.Parameter9.Name | string | Optional | Parameter name |
body.Parameter9.Value | string | Optional | Parameter value |
body.Parameter90.Name | string | Optional | Parameter name |
body.Parameter90.Value | string | Optional | Parameter value |
body.Parameter91.Name | string | Optional | Parameter name |
body.Parameter91.Value | string | Optional | Parameter value |
body.Parameter92.Name | string | Optional | Parameter name |
body.Parameter92.Value | string | Optional | Parameter value |
body.Parameter93.Name | string | Optional | Parameter name |
body.Parameter93.Value | string | Optional | Parameter value |
body.Parameter94.Name | string | Optional | Parameter name |
body.Parameter94.Value | string | Optional | Parameter value |
body.Parameter95.Name | string | Optional | Parameter name |
body.Parameter95.Value | string | Optional | Parameter value |
body.Parameter96.Name | string | Optional | Parameter name |
body.Parameter96.Value | string | Optional | Parameter value |
body.Parameter97.Name | string | Optional | Parameter name |
body.Parameter97.Value | string | Optional | Parameter value |
body.Parameter98.Name | string | Optional | Parameter name |
body.Parameter98.Value | string | Optional | Parameter value |
body.Parameter99.Name | string | Optional | Parameter name |
body.Parameter99.Value | string | Optional | Parameter value |
body.StatusCallback | string | Optional | Absolute URL of the status callback. Format: uri |
body.StatusCallbackMethod | string | Optional | The http method for the status_callback (one of GET, POST). One of: GET, POST Format: http-method |
body.Track | string | Optional | One of `inbound_track`, `outbound_track`, `both_tracks`. One of: inbound_track, outbound_track, both_tracks |
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | Model | Root | Expand Create a Siprec — response body |
Referenced models: Create a Siprec — response body
Schemas
Section titled “Schemas”Create a Siprec — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
account_sid | JSON | Optional | |
account_sid (anyOf 1) | string | Alternative | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Siprec resource. Maximum length: 34 Minimum length: 34 Pattern: ^AC[0-9a-fA-F]{32}$ |
account_sid (anyOf 2) | null | Alternative | |
call_sid | JSON | Optional | |
call_sid (anyOf 1) | string | Alternative | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Siprec resource is associated with. Maximum length: 34 Minimum length: 34 Pattern: ^CA[0-9a-fA-F]{32}$ |
call_sid (anyOf 2) | null | Alternative | |
date_updated | JSON | Optional | |
date_updated (anyOf 1) | string | Alternative | The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. Format: date-time-rfc-2822 |
date_updated (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The user-specified name of this Siprec, if one was given when the Siprec was created. This may be used to stop the Siprec. |
name (anyOf 2) | null | Alternative | |
sid | JSON | Optional | |
sid (anyOf 1) | string | Alternative | The SID of the Siprec resource. Maximum length: 34 Minimum length: 34 Pattern: ^SR[0-9a-fA-F]{32}$ |
sid (anyOf 2) | null | Alternative | |
status | string | Optional | The status - one of `stopped`, `in-progress` Known values: in-progress, stopped |
uri | JSON | Optional | |
uri (anyOf 1) | string | Alternative | The URI of the resource, relative to `https://api.twilio.com`. |
uri (anyOf 2) | null | Alternative |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: twilio.createsiprec. Catalog operation: CreateSiprec. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.
Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.