Skip to content

Create an application

POST
/v1/Accounts/{auth_id}/Applications
curl --request POST \
--url https://api.siprtc.io/v1/Accounts/AC000000000000000000/Applications \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "ApplicationType": "ContactCenter", "FaxFallbackMethod": "GET", "FaxFallbackUrl": "https://example.com/fax/fallback", "FaxStatusCallback": "https://example.com/fax/status", "FaxStatusCallbackMethod": "GET", "FriendlyName": "Front desk IVR", "MessageStatusCallback": "https://example.com/sms/status", "Scope": "local", "SmsFallbackMethod": "GET", "SmsFallbackUrl": "https://example.com/sms/fallback", "SmsMethod": "GET", "SmsStatusCallback": "https://example.com/sms/status", "SmsStatusCallbackMethod": "GET", "SmsUrl": "https://example.com/sms/inbound", "Status": "active", "StatusCallback": "https://example.com/voice/status", "StatusCallbackMethod": "GET", "VoiceCallerIdLookup": "false", "VoiceFallbackMethod": "GET", "VoiceFallbackUrl": "https://example.com/voice/fallback", "VoiceMethod": "GET", "VoiceStatusEvent": "initiated ringing answered completed", "VoiceUrl": "https://example.com/voice/answer" }'

Creates an application: the webhook URLs and methods SIPRTC uses for calls, messages and faxes that reach the numbers, SIP domains or SIP endpoints you assign it to. FriendlyName (3 or more characters) is the only required field; URL fields must be absolute URLs and method fields GET or POST. The new application is always active, whatever Status says, and its Scope defaults to local; only reseller (vendor) and superuser accounts may create global applications, which their sub-accounts can also use. Send JSON or a form post; both use the field names shown. The response uses its own field names (e.g. voice_method, status_callback), unlike fetch and list. Validation failures answer 406 with the validator’s message, which names Go fields, e.g. "Key: ‘ApplicationRequest.FriendlyName’ Error:Field validation for ‘FriendlyName’ failed on the ‘required’ tag". Every other failure, including a forbidden global scope, answers 404.

auth_id
required
string

Your account Auth ID, or the Auth ID of a sub-account you own

Example

AC000000000000000000

The application to create

object
ApplicationType

Application category, free-form: ContactCenter when omitted on create (the platform also uses FrontDesk). On update, an empty value keeps the current one.

string

Example

ContactCenter
FaxFallbackMethod

HTTP method used to request FaxFallbackUrl: GET or POST. Not validated.

string
Allowed values: GET POST

Example

POST
FaxFallbackUrl

Absolute URL requested when the fax handling URL fails.

string

Example

https://example.com/fax/fallback
FaxStatusCallback

Absolute URL SIPRTC sends fax status updates to for faxes on numbers using this application.

string

Example

https://example.com/fax/status
FaxStatusCallbackMethod

HTTP method used for FaxStatusCallback: GET or POST.

string
Allowed values: GET POST

Example

POST
FriendlyName
required

Name of the application, at least 3 characters. Required.

string

Example

Front desk IVR
MessageStatusCallback

Accepted (must be a URL when given) but not stored.

string

Example

https://example.com/sms/status
Scope

local (default): only this account uses the application. global: the application is also offered to the account’s sub-accounts (tenants). Only reseller (vendor) and superuser accounts may create, change or delete global applications.

string
Allowed values: local global

Example

local
SmsFallbackMethod

HTTP method used to request SmsFallbackUrl: GET or POST. Not validated. Stored as sms_fallback_url_method.

string
Allowed values: GET POST

Example

POST
SmsFallbackUrl

Absolute URL requested when SmsUrl fails.

string

Example

https://example.com/sms/fallback
SmsMethod

HTTP method used to request SmsUrl: GET or POST. Stored as sms_url_method.

string
Allowed values: GET POST

Example

POST
SmsStatusCallback

Absolute URL SIPRTC sends delivery status updates to for messages sent from numbers using this application. Stored as sms_status_url.

string

Example

https://example.com/sms/status
SmsStatusCallbackMethod

HTTP method used for SmsStatusCallback: GET or POST. Stored as sms_status_url_method.

string
Allowed values: GET POST

Example

POST
SmsUrl

Absolute URL SIPRTC requests when a message (SMS or another messaging channel) arrives on a number using this application.

string

Example

https://example.com/sms/inbound
Status
required

active or inactive. Ignored on create (a new application is always active); required on update, where any value of three or more characters is accepted, but an application whose status is neither active nor inactive no longer appears in lists or fetches.

string
Allowed values: active inactive

Example

active
StatusCallback

Absolute URL SIPRTC sends call status events to (see VoiceStatusEvent) for calls handled by this application. Stored as voice_status_url.

string

Example

https://example.com/voice/status
StatusCallbackMethod

HTTP method used for StatusCallback: GET or POST. Stored as voice_status_url_method.

string
Allowed values: GET POST

Example

POST
VoiceCallerIdLookup

Accepted for compatibility but not stored: caller name (CNAM) lookup is not performed.

string

Example

false
VoiceFallbackMethod

HTTP method used to request VoiceFallbackUrl: GET or POST.

string
Allowed values: GET POST

Example

POST
VoiceFallbackUrl

Absolute URL requested when VoiceUrl cannot be fetched or returns an invalid document. It must return TinyML.

string

Example

https://example.com/voice/fallback
VoiceMethod

HTTP method used to request VoiceUrl: GET or POST (POST when empty).

string
Allowed values: GET POST

Example

POST
VoiceStatusEvent

Which call progress events are sent to StatusCallback: any of initiated, ringing, answered, completed, separated by spaces. Only completed is sent when empty.

string

Example

initiated ringing answered completed
VoiceUrl

Absolute URL SIPRTC requests when a call reaches a number, SIP domain or SIP endpoint using this application. It must return a TinyML document that tells SIPRTC what to do with the call.

string

Example

https://example.com/voice/answer

Created

Media type application/json
object
account_sid

Auth ID of the account that owns the application.

string
api_version

Not currently populated (always empty).

string
application_type

Application category, for example ContactCenter or FrontDesk.

string
date_created

When the application was created, in Go’s default time format (e.g. 2026-11-26 09:15:02 +0000 UTC), not RFC 3339.

string
date_updated

When the application was last updated, same format as date_created.

string
fax_Status_callback_method

HTTP method for fax_status_callback (note the capital S in the field name).

string
fax_fallback_method

HTTP method for fax_fallback_url.

string
fax_fallback_url

URL requested when fax handling fails.

string
fax_status_callback

URL that receives fax status updates.

string
friendly_name

Name of the application.

string
id

Numeric ID of the application.

integer
message_status_callback

Not stored: always empty.

string
scope

local or global.

string
sid

Application SID (a UUID). Use it, or id, in the other application routes and when assigning the application to a number.

string
sms_fallback_method

HTTP method for sms_fallback_url.

string
sms_fallback_url

URL requested when sms_url fails.

string
sms_method

HTTP method for sms_url.

string
sms_status_callback

URL that receives message delivery status updates.

string
sms_status_callback_method

HTTP method for sms_status_callback.

string
sms_url

URL requested for inbound messages.

string
status

Always active for a new application.

string
status_callback

URL that receives call status events.

string
status_callback_method

HTTP method for status_callback.

string
voice_caller_id_lookup

Always false: caller name lookup is not stored.

boolean
voice_fallback_method

HTTP method for voice_fallback_url.

string
voice_fallback_url

URL requested when voice_url fails.

string
voice_method

HTTP method for voice_url.

string
voice_status_event

Call progress events sent to status_callback, space separated.

string
voice_url

URL that returns TinyML for inbound calls.

string

Example

{
"account_sid": "AC000000000000000000",
"api_version": "",
"application_type": "ContactCenter",
"date_created": "2026-11-26 09:15:02 +0000 UTC",
"date_updated": "2026-11-26 09:15:02 +0000 UTC",
"fax_Status_callback_method": "",
"fax_fallback_method": "",
"fax_fallback_url": "",
"fax_status_callback": "",
"friendly_name": "Front desk IVR",
"id": 42,
"message_status_callback": "",
"scope": "local",
"sid": "3c5e8f0a-1b2d-4e6f-8a9b-0c1d2e3f4a5b",
"sms_fallback_method": "POST",
"sms_fallback_url": "https://example.com/sms/fallback",
"sms_method": "POST",
"sms_status_callback": "https://example.com/sms/status",
"sms_status_callback_method": "POST",
"sms_url": "https://example.com/sms/inbound",
"status": "active",
"status_callback": "https://example.com/voice/status",
"status_callback_method": "POST",
"voice_caller_id_lookup": false,
"voice_fallback_method": "POST",
"voice_fallback_url": "https://example.com/voice/fallback",
"voice_method": "POST",
"voice_status_event": "initiated ringing answered completed",
"voice_url": "https://example.com/voice/answer"
}

Authentication failed: missing or invalid credentials (JSON string from the API gateway)

Media type application/json
string

Example generated

example

The account could not be read, the scope is global on an account that may not use it ("global scope is not allowed for non-vendor or superuser accounts"), or the application could not be saved

Media type application/json
object
message

Application updated, Application deleted, or what went wrong.

string
status

success or failed.

string

Example

{
"message": "Application updated",
"status": "success"
}

A field failed validation

Media type application/json
object
message

Application updated, Application deleted, or what went wrong.

string
status

success or failed.

string

Example

{
"message": "Application updated",
"status": "success"
}