Skip to content

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.

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 os
from alter_sdk import App
from 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()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.AccountSidstringRequired within parentMaximum length: 34
Minimum length: 34
Pattern: ^AC[0-9a-fA-F]{32}$
path.CallSidstringRequired within parentMaximum length: 34
Minimum length: 34
Pattern: ^CA[0-9a-fA-F]{32}$
bodyobjectOptional
body.ConnectorNamestringOptionalUnique name used when configuring the connector via Marketplace Add-on.
body.NamestringOptionalThe 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.NamestringOptionalParameter name
body.Parameter1.ValuestringOptionalParameter value
body.Parameter10.NamestringOptionalParameter name
body.Parameter10.ValuestringOptionalParameter value
body.Parameter11.NamestringOptionalParameter name
body.Parameter11.ValuestringOptionalParameter value
body.Parameter12.NamestringOptionalParameter name
body.Parameter12.ValuestringOptionalParameter value
body.Parameter13.NamestringOptionalParameter name
body.Parameter13.ValuestringOptionalParameter value
body.Parameter14.NamestringOptionalParameter name
body.Parameter14.ValuestringOptionalParameter value
body.Parameter15.NamestringOptionalParameter name
body.Parameter15.ValuestringOptionalParameter value
body.Parameter16.NamestringOptionalParameter name
body.Parameter16.ValuestringOptionalParameter value
body.Parameter17.NamestringOptionalParameter name
body.Parameter17.ValuestringOptionalParameter value
body.Parameter18.NamestringOptionalParameter name
body.Parameter18.ValuestringOptionalParameter value
body.Parameter19.NamestringOptionalParameter name
body.Parameter19.ValuestringOptionalParameter value
body.Parameter2.NamestringOptionalParameter name
body.Parameter2.ValuestringOptionalParameter value
body.Parameter20.NamestringOptionalParameter name
body.Parameter20.ValuestringOptionalParameter value
body.Parameter21.NamestringOptionalParameter name
body.Parameter21.ValuestringOptionalParameter value
body.Parameter22.NamestringOptionalParameter name
body.Parameter22.ValuestringOptionalParameter value
body.Parameter23.NamestringOptionalParameter name
body.Parameter23.ValuestringOptionalParameter value
body.Parameter24.NamestringOptionalParameter name
body.Parameter24.ValuestringOptionalParameter value
body.Parameter25.NamestringOptionalParameter name
body.Parameter25.ValuestringOptionalParameter value
body.Parameter26.NamestringOptionalParameter name
body.Parameter26.ValuestringOptionalParameter value
body.Parameter27.NamestringOptionalParameter name
body.Parameter27.ValuestringOptionalParameter value
body.Parameter28.NamestringOptionalParameter name
body.Parameter28.ValuestringOptionalParameter value
body.Parameter29.NamestringOptionalParameter name
body.Parameter29.ValuestringOptionalParameter value
body.Parameter3.NamestringOptionalParameter name
body.Parameter3.ValuestringOptionalParameter value
body.Parameter30.NamestringOptionalParameter name
body.Parameter30.ValuestringOptionalParameter value
body.Parameter31.NamestringOptionalParameter name
body.Parameter31.ValuestringOptionalParameter value
body.Parameter32.NamestringOptionalParameter name
body.Parameter32.ValuestringOptionalParameter value
body.Parameter33.NamestringOptionalParameter name
body.Parameter33.ValuestringOptionalParameter value
body.Parameter34.NamestringOptionalParameter name
body.Parameter34.ValuestringOptionalParameter value
body.Parameter35.NamestringOptionalParameter name
body.Parameter35.ValuestringOptionalParameter value
body.Parameter36.NamestringOptionalParameter name
body.Parameter36.ValuestringOptionalParameter value
body.Parameter37.NamestringOptionalParameter name
body.Parameter37.ValuestringOptionalParameter value
body.Parameter38.NamestringOptionalParameter name
body.Parameter38.ValuestringOptionalParameter value
body.Parameter39.NamestringOptionalParameter name
body.Parameter39.ValuestringOptionalParameter value
body.Parameter4.NamestringOptionalParameter name
body.Parameter4.ValuestringOptionalParameter value
body.Parameter40.NamestringOptionalParameter name
body.Parameter40.ValuestringOptionalParameter value
body.Parameter41.NamestringOptionalParameter name
body.Parameter41.ValuestringOptionalParameter value
body.Parameter42.NamestringOptionalParameter name
body.Parameter42.ValuestringOptionalParameter value
body.Parameter43.NamestringOptionalParameter name
body.Parameter43.ValuestringOptionalParameter value
body.Parameter44.NamestringOptionalParameter name
body.Parameter44.ValuestringOptionalParameter value
body.Parameter45.NamestringOptionalParameter name
body.Parameter45.ValuestringOptionalParameter value
body.Parameter46.NamestringOptionalParameter name
body.Parameter46.ValuestringOptionalParameter value
body.Parameter47.NamestringOptionalParameter name
body.Parameter47.ValuestringOptionalParameter value
body.Parameter48.NamestringOptionalParameter name
body.Parameter48.ValuestringOptionalParameter value
body.Parameter49.NamestringOptionalParameter name
body.Parameter49.ValuestringOptionalParameter value
body.Parameter5.NamestringOptionalParameter name
body.Parameter5.ValuestringOptionalParameter value
body.Parameter50.NamestringOptionalParameter name
body.Parameter50.ValuestringOptionalParameter value
body.Parameter51.NamestringOptionalParameter name
body.Parameter51.ValuestringOptionalParameter value
body.Parameter52.NamestringOptionalParameter name
body.Parameter52.ValuestringOptionalParameter value
body.Parameter53.NamestringOptionalParameter name
body.Parameter53.ValuestringOptionalParameter value
body.Parameter54.NamestringOptionalParameter name
body.Parameter54.ValuestringOptionalParameter value
body.Parameter55.NamestringOptionalParameter name
body.Parameter55.ValuestringOptionalParameter value
body.Parameter56.NamestringOptionalParameter name
body.Parameter56.ValuestringOptionalParameter value
body.Parameter57.NamestringOptionalParameter name
body.Parameter57.ValuestringOptionalParameter value
body.Parameter58.NamestringOptionalParameter name
body.Parameter58.ValuestringOptionalParameter value
body.Parameter59.NamestringOptionalParameter name
body.Parameter59.ValuestringOptionalParameter value
body.Parameter6.NamestringOptionalParameter name
body.Parameter6.ValuestringOptionalParameter value
body.Parameter60.NamestringOptionalParameter name
body.Parameter60.ValuestringOptionalParameter value
body.Parameter61.NamestringOptionalParameter name
body.Parameter61.ValuestringOptionalParameter value
body.Parameter62.NamestringOptionalParameter name
body.Parameter62.ValuestringOptionalParameter value
body.Parameter63.NamestringOptionalParameter name
body.Parameter63.ValuestringOptionalParameter value
body.Parameter64.NamestringOptionalParameter name
body.Parameter64.ValuestringOptionalParameter value
body.Parameter65.NamestringOptionalParameter name
body.Parameter65.ValuestringOptionalParameter value
body.Parameter66.NamestringOptionalParameter name
body.Parameter66.ValuestringOptionalParameter value
body.Parameter67.NamestringOptionalParameter name
body.Parameter67.ValuestringOptionalParameter value
body.Parameter68.NamestringOptionalParameter name
body.Parameter68.ValuestringOptionalParameter value
body.Parameter69.NamestringOptionalParameter name
body.Parameter69.ValuestringOptionalParameter value
body.Parameter7.NamestringOptionalParameter name
body.Parameter7.ValuestringOptionalParameter value
body.Parameter70.NamestringOptionalParameter name
body.Parameter70.ValuestringOptionalParameter value
body.Parameter71.NamestringOptionalParameter name
body.Parameter71.ValuestringOptionalParameter value
body.Parameter72.NamestringOptionalParameter name
body.Parameter72.ValuestringOptionalParameter value
body.Parameter73.NamestringOptionalParameter name
body.Parameter73.ValuestringOptionalParameter value
body.Parameter74.NamestringOptionalParameter name
body.Parameter74.ValuestringOptionalParameter value
body.Parameter75.NamestringOptionalParameter name
body.Parameter75.ValuestringOptionalParameter value
body.Parameter76.NamestringOptionalParameter name
body.Parameter76.ValuestringOptionalParameter value
body.Parameter77.NamestringOptionalParameter name
body.Parameter77.ValuestringOptionalParameter value
body.Parameter78.NamestringOptionalParameter name
body.Parameter78.ValuestringOptionalParameter value
body.Parameter79.NamestringOptionalParameter name
body.Parameter79.ValuestringOptionalParameter value
body.Parameter8.NamestringOptionalParameter name
body.Parameter8.ValuestringOptionalParameter value
body.Parameter80.NamestringOptionalParameter name
body.Parameter80.ValuestringOptionalParameter value
body.Parameter81.NamestringOptionalParameter name
body.Parameter81.ValuestringOptionalParameter value
body.Parameter82.NamestringOptionalParameter name
body.Parameter82.ValuestringOptionalParameter value
body.Parameter83.NamestringOptionalParameter name
body.Parameter83.ValuestringOptionalParameter value
body.Parameter84.NamestringOptionalParameter name
body.Parameter84.ValuestringOptionalParameter value
body.Parameter85.NamestringOptionalParameter name
body.Parameter85.ValuestringOptionalParameter value
body.Parameter86.NamestringOptionalParameter name
body.Parameter86.ValuestringOptionalParameter value
body.Parameter87.NamestringOptionalParameter name
body.Parameter87.ValuestringOptionalParameter value
body.Parameter88.NamestringOptionalParameter name
body.Parameter88.ValuestringOptionalParameter value
body.Parameter89.NamestringOptionalParameter name
body.Parameter89.ValuestringOptionalParameter value
body.Parameter9.NamestringOptionalParameter name
body.Parameter9.ValuestringOptionalParameter value
body.Parameter90.NamestringOptionalParameter name
body.Parameter90.ValuestringOptionalParameter value
body.Parameter91.NamestringOptionalParameter name
body.Parameter91.ValuestringOptionalParameter value
body.Parameter92.NamestringOptionalParameter name
body.Parameter92.ValuestringOptionalParameter value
body.Parameter93.NamestringOptionalParameter name
body.Parameter93.ValuestringOptionalParameter value
body.Parameter94.NamestringOptionalParameter name
body.Parameter94.ValuestringOptionalParameter value
body.Parameter95.NamestringOptionalParameter name
body.Parameter95.ValuestringOptionalParameter value
body.Parameter96.NamestringOptionalParameter name
body.Parameter96.ValuestringOptionalParameter value
body.Parameter97.NamestringOptionalParameter name
body.Parameter97.ValuestringOptionalParameter value
body.Parameter98.NamestringOptionalParameter name
body.Parameter98.ValuestringOptionalParameter value
body.Parameter99.NamestringOptionalParameter name
body.Parameter99.ValuestringOptionalParameter value
body.StatusCallbackstringOptionalAbsolute URL of the status callback.
Format: uri
body.StatusCallbackMethodstringOptionalThe http method for the status_callback (one of GET, POST).
One of: GET, POST
Format: http-method
body.TrackstringOptionalOne of `inbound_track`, `outbound_track`, `both_tracks`.
One of: inbound_track, outbound_track, both_tracks

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Create a Siprec — response body

Referenced models: Create a Siprec — response body

Create a Siprec — response body
FieldTypePresenceDescription and constraints
$objectRoot
account_sidJSONOptional
account_sid (anyOf 1)stringAlternativeThe 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)nullAlternative
call_sidJSONOptional
call_sid (anyOf 1)stringAlternativeThe 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)nullAlternative
date_updatedJSONOptional
date_updated (anyOf 1)stringAlternativeThe 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)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe 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)nullAlternative
sidJSONOptional
sid (anyOf 1)stringAlternativeThe SID of the Siprec resource.
Maximum length: 34
Minimum length: 34
Pattern: ^SR[0-9a-fA-F]{32}$
sid (anyOf 2)nullAlternative
statusstringOptionalThe status - one of `stopped`, `in-progress`
Known values: in-progress, stopped
uriJSONOptional
uri (anyOf 1)stringAlternativeThe URI of the resource, relative to `https://api.twilio.com`.
uri (anyOf 2)nullAlternative

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.

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.