Create an application
const url = 'https://api.siprtc.io/v1/Accounts/AC000000000000000000/Applications';const options = { method: 'POST', headers: {Authorization: 'Basic <credentials>', 'Content-Type': 'application/json'}, body: '{"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"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Your account Auth ID, or the Auth ID of a sub-account you own
Example
AC000000000000000000Request Bodyrequired
Section titled “ Request Bodyrequired ”The application to create
object
Application category, free-form: ContactCenter when omitted on create (the platform also uses FrontDesk). On update, an empty value keeps the current one.
Example
ContactCenterHTTP method used to request FaxFallbackUrl: GET or POST. Not validated.
Example
POSTAbsolute URL requested when the fax handling URL fails.
Example
https://example.com/fax/fallbackAbsolute URL SIPRTC sends fax status updates to for faxes on numbers using this application.
Example
https://example.com/fax/statusHTTP method used for FaxStatusCallback: GET or POST.
Example
POSTName of the application, at least 3 characters. Required.
Example
Front desk IVRAccepted (must be a URL when given) but not stored.
Example
https://example.com/sms/statuslocal (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.
Example
localHTTP method used to request SmsFallbackUrl: GET or POST. Not validated. Stored as sms_fallback_url_method.
Example
POSTAbsolute URL requested when SmsUrl fails.
Example
https://example.com/sms/fallbackHTTP method used to request SmsUrl: GET or POST. Stored as sms_url_method.
Example
POSTAbsolute URL SIPRTC sends delivery status updates to for messages sent from numbers using this application. Stored as sms_status_url.
Example
https://example.com/sms/statusHTTP method used for SmsStatusCallback: GET or POST. Stored as sms_status_url_method.
Example
POSTAbsolute URL SIPRTC requests when a message (SMS or another messaging channel) arrives on a number using this application.
Example
https://example.com/sms/inboundactive 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.
Example
activeAbsolute URL SIPRTC sends call status events to (see VoiceStatusEvent) for calls handled by this application. Stored as voice_status_url.
Example
https://example.com/voice/statusHTTP method used for StatusCallback: GET or POST. Stored as voice_status_url_method.
Example
POSTAccepted for compatibility but not stored: caller name (CNAM) lookup is not performed.
Example
falseHTTP method used to request VoiceFallbackUrl: GET or POST.
Example
POSTAbsolute URL requested when VoiceUrl cannot be fetched or returns an invalid document. It must return TinyML.
Example
https://example.com/voice/fallbackHTTP method used to request VoiceUrl: GET or POST (POST when empty).
Example
POSTWhich call progress events are sent to StatusCallback: any of initiated, ringing, answered, completed, separated by spaces. Only completed is sent when empty.
Example
initiated ringing answered completedAbsolute 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.
Example
https://example.com/voice/answerobject
Application category, free-form: ContactCenter when omitted on create (the platform also uses FrontDesk). On update, an empty value keeps the current one.
Example
ContactCenterHTTP method used to request FaxFallbackUrl: GET or POST. Not validated.
Example
POSTAbsolute URL requested when the fax handling URL fails.
Example
https://example.com/fax/fallbackAbsolute URL SIPRTC sends fax status updates to for faxes on numbers using this application.
Example
https://example.com/fax/statusHTTP method used for FaxStatusCallback: GET or POST.
Example
POSTName of the application, at least 3 characters. Required.
Example
Front desk IVRAccepted (must be a URL when given) but not stored.
Example
https://example.com/sms/statuslocal (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.
Example
localHTTP method used to request SmsFallbackUrl: GET or POST. Not validated. Stored as sms_fallback_url_method.
Example
POSTAbsolute URL requested when SmsUrl fails.
Example
https://example.com/sms/fallbackHTTP method used to request SmsUrl: GET or POST. Stored as sms_url_method.
Example
POSTAbsolute URL SIPRTC sends delivery status updates to for messages sent from numbers using this application. Stored as sms_status_url.
Example
https://example.com/sms/statusHTTP method used for SmsStatusCallback: GET or POST. Stored as sms_status_url_method.
Example
POSTAbsolute URL SIPRTC requests when a message (SMS or another messaging channel) arrives on a number using this application.
Example
https://example.com/sms/inboundactive 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.
Example
activeAbsolute URL SIPRTC sends call status events to (see VoiceStatusEvent) for calls handled by this application. Stored as voice_status_url.
Example
https://example.com/voice/statusHTTP method used for StatusCallback: GET or POST. Stored as voice_status_url_method.
Example
POSTAccepted for compatibility but not stored: caller name (CNAM) lookup is not performed.
Example
falseHTTP method used to request VoiceFallbackUrl: GET or POST.
Example
POSTAbsolute URL requested when VoiceUrl cannot be fetched or returns an invalid document. It must return TinyML.
Example
https://example.com/voice/fallbackHTTP method used to request VoiceUrl: GET or POST (POST when empty).
Example
POSTWhich call progress events are sent to StatusCallback: any of initiated, ringing, answered, completed, separated by spaces. Only completed is sent when empty.
Example
initiated ringing answered completedAbsolute 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.
Example
https://example.com/voice/answerResponses
Section titled “ Responses ”Created
object
Auth ID of the account that owns the application.
Not currently populated (always empty).
Application category, for example ContactCenter or FrontDesk.
When the application was created, in Go’s default time format (e.g. 2026-11-26 09:15:02 +0000 UTC), not RFC 3339.
When the application was last updated, same format as date_created.
HTTP method for fax_status_callback (note the capital S in the field name).
HTTP method for fax_fallback_url.
URL requested when fax handling fails.
URL that receives fax status updates.
Name of the application.
Numeric ID of the application.
Not stored: always empty.
local or global.
Application SID (a UUID). Use it, or id, in the other application routes and when assigning the application to a number.
HTTP method for sms_fallback_url.
URL requested when sms_url fails.
HTTP method for sms_url.
URL that receives message delivery status updates.
HTTP method for sms_status_callback.
URL requested for inbound messages.
Always active for a new application.
URL that receives call status events.
HTTP method for status_callback.
Always false: caller name lookup is not stored.
HTTP method for voice_fallback_url.
URL requested when voice_url fails.
HTTP method for voice_url.
Call progress events sent to status_callback, space separated.
URL that returns TinyML for inbound calls.
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)
Example generated
exampleThe 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
object
Application updated, Application deleted, or what went wrong.
success or failed.
Example
{ "message": "Application updated", "status": "success"}A field failed validation
object
Application updated, Application deleted, or what went wrong.
success or failed.
Example
{ "message": "Application updated", "status": "success"}