--- title: Omichannel Callback API description: The Omnichannel Callback API provides methods for creating, updating, and initiating a callback request for live agent conversations.Provides actions for integrating third-party Contact Center as a Service \(CCaaS\) platforms with ServiceNow's Omnichannel Callback system. This API acts as a bridge, routing callback operations \(create, update, cancel, close\) to external CCaaS providers via configurable Workflow Studio subflows.Initiates an interaction for an existing callback, including retry attempts.Initiates a new immediate or scheduled callback request based on details you provide in the request body. For immediate callbacks, this API creates both the callback and interaction. For scheduled callbacks, creates the callback with an appointment ID.Fetches callback information based on query parameters.Updates an existing callback according to details provided in the request.Cancels a given callback request. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/api-reference/rest-apis/omichannel-callback-api.html release: australia product: REST APIs classification: rest-apis topic_type: concept last_updated: "2026-03-12" reading_time_minutes: 38 breadcrumb: [REST API reference, API reference, API implementation and reference] --- # Omichannel Callback API The Omnichannel Callback API provides methods for creating, updating, and initiating a callback request for live agent conversations. The Omnichannel Callback API allows agents to programmatically call users back rather than waiting in the queue for an available agent. For example, agents can use the callback functionality to call users back when the agent wait time is long or when there are no agents available. You can do the following actions with this API: - Create a new, immediate callback request or schedule a new request. - Create an initial interaction and subsequent retry interactions. - Update an existing callback. This API belongs to the sn\_omni\_callback namespace and requires the Administrator with callback API \[sn\_omni\_callback.callback\_api\] role. For more information about the Omnichannel Callback application as an ServiceNow AI Platform capability, see [Omnichannel Callback](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/conversational-interfaces/omnichannel-callback.md). **Parent Topic:**[REST API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/api-rest.md) ## Omnichannel Callback - POST api/sn\_omni\_callback/actions Provides actions for integrating third-party Contact Center as a Service \(CCaaS\) platforms with ServiceNow®'s Omnichannel Callback system. This API acts as a bridge, routing callback operations \(create, update, cancel, close\) to external CCaaS providers via configurable Workflow Studio subflows. **Note:** This endpoint works similarly to [Omnichannel Callback - POST /api/sn\_omni\_callback/callback/create](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/omichannel-callback-api.md) and [Omnichannel Callback - PATCH /api/sn\_omni\_callback/callback/update](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/omichannel-callback-api.md), but is used to update or create callbacks in a third-party integration with routing context. ### Intelligent routing The /actions endpoint intelligently routes callback requests based on the **routingContext** parameter. When a routing rule is configured, the API uses a single, unified payload structure for all actions and routes the request to a CCaaS subflow using `routingContext`. When routing is configured, the content of the request never changes. Only the top‑level **action** value differs. **Note:** The API checks for routing rules in the Callback Routing Configuration \[sys\_cs\_callback\_routing\_config\] table based on the **routingContext** parameter. If a matching rule is found, the request is forwarded to the configured custom subflow. The subflow can integrate with external CCaaS platforms or implement custom business logic. The subflow processes the request and returns the response. If **routingContext** is omitted or no routing rule matches, the API falls back to default ServiceNow behavior and expects the standard payload format of the corresponding POST /create, PATCH /update, or PATCH /cancel endpoints. ### URL format Versioned URL: `/api/sn_omni_callback/v1/actions` Default URL: `/api/sn_omni_callback/actions` ### Supported request parameters
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| Name | Description |
|---|---|
| Object | Object containing the operation and details.Data type: Object ``` { "action": "String", "payload": {Object}, "routingContext": {Object} } ``` |
| action | Required. Defines the action to perform on the callback.Accepted values: - `create`: Creates a new callback record. - `update`: Updates an existing callback record based on the callback number. - `close`: Closes a callback record because the callback request has been fulfilled. Doesn't initiate the callback. Updates the reason field in the Callback \[sys\_cs\_callback\] table. - `cancel`: Cancels a callback record because the customer cancelled the request and doesn't need to connect with an agent. Updates the reason field in the Callback \[sys\_cs\_callback\] table. Data type: String |
| payload | Required. Object containing specific data required for the given action when **routingContext** object is passed. For close and cancel operations, only **callbackID** is needed in the payload.**Note:** For create and update actions, if **routingContext** isn't passed, use the **payload** object structure documented in the [Omnichannel Callback - POST /api/sn\_omni\_callback/callback/create](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/omichannel-callback-api.md) and [Omnichannel Callback - PATCH /api/sn\_omni\_callback/callback/update](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/omichannel-callback-api.md) operations, respectively. The 'Examples' section demonstrates both routing and non-routing scenarios. Data type: Object **payload** structure for create and update actions. ``` { "callbackContext": {Object}, "callbackDetails": {Object}, "callbackId": "String", "phoneNumber": "String", "type": "String" } ``` **payload** structure for close and cancel actions. ``` "payload": { "callbackId": "String" } ``` |
| payload.callbackContext | Optional. Object containing the context details about the callback request.Table: Callback Context \[sys\_cs\_callback\_context\] Data type: Object ``` "callbackContext": { "customer_timezone": "String", "ivr_path": "String", "queue": "String" } ``` |
| payload.callbackContext.customer\_timezone | Time zone of customer who requested the callback. Time zones can be provided in the following formats. - `Country/City`: For example, `America/Los_Angeles`. - `Country/Time zone`: For example, `US/Pacific`. - `Time zone abbreviation`: For example, `PST`. For a complete list of valid timezones, see the Time zone field in the User \[sys\_user\] table. For more information about time zones, see [Time zones](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/r_TimeZones.md). Data type: String |
| payload.callbackContext.ivr\_path | The IVR \(Interactive Voice Response\) path that a customer follows before being transferred to a human agent.Typically contains a list of queues or menu options the customer navigated through in the IVR system. This string is passed by Contact Center as a Service \(CCaaS\). For example, `"ivr_path": "Technical Support > Account Management"` Data type: String |
| payload.callbackContext.queue | Number assignments in the queue.Data type: String |
| payload.callbackDetails | Optional. Object containing the details about the callback request.Table: Callback \[sys\_cs\_callback\] Data type: Object ``` "callbackDetails": { "description": "String", "end_time": "String", "expire_time": "String", "first_name": "String", "last_name": "String", "opened_by": "String", "phone_number": "String", "next_retry": "String", "reason": "String", "scheduled_start_time": "String", "short_description": "String", "state": "String", "type": "String" } ``` |
| payload.callbackDetails.description | Detailed explanation of the callback request. Can include specific customer concerns, context, or notes from the agent.Data type: String |
| payload.callbackDetails.end\_time | The time window when the callback request is expected to be completed. After this timestamp, the callback is considered overdue or expired unless rescheduled. Only applicable to a `Scheduled` callback type.Format: glide\_date\_time value, such as `yyyy-MM-dd HH:mm:ss` Data type: String |
| payload.callbackDetails.expire\_time | The final cutoff time after which the callback request should no longer be attempted. This is often used to automatically close or cancel stale requests.Format: glide\_date\_time value, such as `yyyy-MM-dd HH:mm:ss` Data type: String |
| payload.callbackDetails.first\_name | First name of the customer requesting the callback.Data type: String |
| payload.callbackDetails.last\_name | Last name of the customer requesting the callback.Data type: String |
| payload.callbackDetails.opened\_by | Sys\_id of the user or agent who created or initiated the callback request.Table: User \[sys\_user\] |
| payload.callbackDetails.phone\_number | Phone number of the customer to call back.Data type: String |
| payload.callbackDetails.next\_retry | The next scheduled attempt time if previous callback attempts were unsuccessful. Useful for automated or manual retry logic.Format: glide\_date\_time value, such as `yyyy-MM-dd HH:mm:ss` Data type: String |
| payload.callbackDetails.reason | Reason for the callback request. Helps with routing, analytics, and reporting by tagging the callback with a standardized reason.Valid values: - `Other issue` - Custom values defined by your implementation. For example, `“Billing Inquiry”`, `“Technical Support”` Table: Callback \[sys\_cs\_callback\], Field: reason\_type Data type: String |
| payload.callbackDetails.scheduled\_start\_time | Date and time value to when the callback window begins. Only applicable to a `Scheduled` callback type.Format: glide\_date\_time value, such as `yyyy-MM-dd HH:mm:ss` Data type: String |
| payload.callbackDetails.short\_description | A brief summary of the callback request, usually used in lists or dashboards.Data type: String |
| payload.callbackDetails.state | The current workflow status of the callback request. Valid values: - `pending approval` - `in progress` - `completed` - `canceled` Data type: String |
| payload.callbackDetails.type | The category of the request. Value is always `callback`. |
| payload.callbackId | Required. Sys\_id or external\_id of the callback.Table: Callback \[sys\_cs\_callback\] Data type: String |
| payload.phoneNumber | Required. Phone number of the user requesting the callback.Data type: String |
| payload.type | Required. Type of callback.Valid value: `callback_request` Data type: String |
| routingContext | Required for routing configuration. If not passed or the routing rule doesn't match, the actions endpoint doesn't invoke a CCaaS subflow and falls back to using default ServiceNow processing.Contextual information used to find a custom subflow or routing rule. If omitted, the API uses default callback processing. Data type: Object ``` "routingContext": { "sourceTable": "String", "sourceId": "String", "userId": "String" } ``` |
| routingContext.sourceId | Sys\_id of the source record initiating the callback. Corresponds to the value of **sourceTable**.Data type: String |
| routingContext.sourceTable | The table name where the request originated.Accepted values: - `sp_portal` - `sn_csm_ec_engmnt_center_module` - `sn_embeddable_core_module` Data type: String |
| routingContext.userId | User initiating the request \(often the agent or system user\).Table: User \[sys\_user\] Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| body | Object containing success or failure information about the request.Data type: Object ``` { "status": 200, "body": { "message": "String", "number": "String" } } ``` |
| body.message | Message with a brief details about the action's success or failure.Data type: String |
| body.number | The callback reference number. For example, `"CAL0010012"`.Table: Callback \[sys\_cs\_callback\] Data type: String |
| status | Corresponding status code of the request.Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| Name | Description |
|---|---|
| callbackId | Required. Sys\_id or external\_id of the callback.Table: Callback \[sys\_cs\_callback\] Data type: String |
| interactionDetails | Optional. Details about the interaction. Meant for 'asap' \(immediate\) callback types so that interaction details are routed directly to the agent without waiting.All interaction details are passed in the payload of the [Voice Interaction Resource - POST /cs/voice-interactions](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/voice-interaction-resource-api.md). Data type: Object ``` "interactionDetails": { "callerPhoneNumber": "String", "clientSessionId": "String", "userId": "String" } ``` |
| interactionDetails.callerPhoneNumber | Caller's callback phone number. This is the number the agent uses to reach the caller in case the call drops. Data type: String Format: E.164 standard compliant Default: None |
| interactionDetails.clientSessionId | Unique identifier of a record in an external system used to track this phone call. This information links the records between the two systems. Data type: String Format: Typically a UUID or unique session token generated by the external system Default: None |
| interactionDetails.userId | Sys\_id of the user to call back.Table: User \[sys\_user\] Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| errors | Message containing details about the failures of the callback creation, like missing required request IDs.Data type: Array of strings ``` "errors": ["String", "String"] ``` |
| messages | Message containing details about the success of the callback creation.Data type: Array of strings ``` "messages": ["String", "String"] ``` |
| result | Result of the request.Data type: Object ``` "result": { "status": "String", "response": {Object}, "errors": [Array], "messages": [Array] } ``` |
| result.response | Object containing callback and interaction IDs of the callback request.Data type: Object ``` "response": { "callback_created": Boolean "callback_id": "String", "interaction_id": "String" } ``` |
| result.response.interaction\_id | Sys\_id of the newly created interaction.Table: Interaction \[interaction\] Data type: String |
| result.status | Success or failure status of the request.Valid values: - success - failure Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| Name | Description |
|---|---|
| callbackContext | Object containing the context details about the callback request.Table: Callback Context \[sys\_cs\_callback\_context\] Data type: Object ``` "callbackContext": { "customer_timezone": "String", "ivr_path": "String", "source_channel": "String", "queue": "String", "voicemail_duration": "String", "voicemail_recorded_at": "String", "voicemail_transcript": "String", "voicemail_url": "String" } ``` |
| callbackContext.customer\_timezone | Time zone of customer who requested the callback. Time zones can be provided in the following formats. - `Country/City`. For example, `America/Los_Angeles`. - `Country/Time zone`. For example, `US/Pacific`. - `Time zone abbreviation`. For example, `PST`. For a complete list of valid timezones, see the Time zone field in the User \[sys\_user\] table. For more information about time zones, see [Time zones](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/r_TimeZones.md). Data type: String |
| callbackContext.ivr\_path | The IVR \(Interactive Voice Response\) path that a customer follows before being transferred to a human agent.Typically contains a list of queues or menu options the customer navigated through in the IVR system. This string is passed by Contact Center as a Service \(CCaaS\). For example, `"ivr_path": "Technical Support > Account Management"` Data type: String |
| callbackContext.queue | Number assignments in the queue.Data type: String |
| callbackContext.source\_channel | Source of the callback. For example, IVR, Web, or VA.Data type: String |
| callbackContext.voicemail\_duration | Length of the voicemail in hours, minutes, or seconds.Field: Voicemail Duration Data type: Number |
| callbackContext.voicemail\_recorded\_at | Time stamp in which the voicemail was recorded.Field: Voicemail Recorded At Data type: String |
| callbackContext.voicemail\_transcript | Transcribed text of the voicemail.Field: Voicemail Transcript Data type: String |
| callbackContext.voicemail\_url | Relative link to the callback record containing the voicemail.Field: Voicemail URL Data type: String |
| callbackDetails | Object containing the details about the callback request.Table: Callback \[sys\_cs\_callback\] Data type: Object ``` "callbackDetails": { "appointment": "String", "channel_to_callback": "String", "description": "String", "end_time": "String", "expire_time": "String", "messaging_channel": "String", "reason_type": "String" "scheduled_start_time": "String", "short_description": "String", "user_document": "String", "user_table": "String" } ``` |
| callbackDetails.appointment | Sys\_id of the appointment. Only applicable to a `Scheduled` callback type.Table: Appointment Booking \[sn\_apptmnt\_booking\_appointment\_booking\] Data type: String |
| callbackDetails.channel\_to\_callback | Target messaging channel to route the callback through.Table: Messaging Channel \[sys\_cs\_channel\], Field: sys\_id Data type: String |
| callbackDetails.description | Full description describing the reason for the callback, if needed.Data type: String |
| callbackDetails.end\_time | Date and time value to stop the callback attempt. Only applicable to a `Scheduled` callback type.Format: glide\_date\_time value, such as `yyyy-MM-dd HH:mm:ss` Data type: String |
| callbackDetails.expire\_time | Date and time to close the callback request.Format: glide\_date\_time value, such as `yyyy-MM-dd HH:mm:ss` Data type: String |
| callbackDetails.messaging\_channel | Source of the callback. Identifies the client interface that initiated the callback request, such as a web client, mobile app, or embedded messenger.Table: Messaging Channel \[sys\_cs\_channel\], Field: sys\_id Data type: String |
| callbackDetails.reason\_type | Reason for the callback request. Helps with routing, analytics, and reporting by tagging the callback with a standardized reason.Valid values: - `Other issue` - Custom values defined by your implementation. For example, `“Billing Inquiry”`, `“Technical Support”` Table: Callback \[sys\_cs\_callback\], Field: reason\_type Data type: String |
| callbackDetails.scheduled\_start\_time | Date and time value to initiate the callback. Only applicable to a `Scheduled` callback type.Format: glide\_date\_time value, such as `yyyy-MM-dd HH:mm:ss` Data type: String |
| callbackDetails.short\_description | Provides a detailed explanation of the callback request. Can include specific customer concerns, context, or notes from the agent.Data type: String |
| callbackDetails.user\_document | Sys\_id of the user who requested the callback. Used with **callbackDetails.user\_table** to identify the user requesting the callback.Table: User \[sys\_user\], Field: sys\_id Data type: String |
| callbackDetails.user\_table | Table where the user record resides. Used with **callbackDetails.user\_document** to identify the user requesting the callback. Value is always `sys_user`.Data type: String |
| externalCallbackId | External identifier for the callback that was created in a third party vendor.Data type: String |
| inboundId | Sys\_id of the inbound call associated with the callback. Provides traceability linking the callback request to a specific inbound call record that might originate from a third-party provider or CCaaS platform.Table: Callback \[sys\_cs\_callback\], Field: provider\_application\_id Data type: String |
| interactionDetails | Optional. Details about the interaction. Meant for 'asap' \(immediate\) callback types so that interaction details are routed directly to the agent without waiting.All interaction details are passed in the payload of the [Voice Interaction Resource - POST /cs/voice-interactions](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/rest-apis/voice-interaction-resource-api.md). Data type: Object ``` "interactionDetails": { "callerPhoneNumber": "String", "clientSessionId": "String", "userId": "String" } ``` |
| interactionDetails.callerPhoneNumber | Caller's callback phone number. This is the number the agent uses to reach the caller in case the call drops. Data type: String Format: E.164 standard compliant Default: None |
| interactionDetails.clientSessionId | Unique identifier of a record in an external system used to track this phone call. This information links the records between the two systems. Data type: String Format: Typically a UUID or unique session token generated by the external system Default: None |
| interactionDetails.userId | Sys\_id of the user to call back.Table: User \[sys\_user\] Data type: String |
| isExternal | Flag that indicates whether the callback is external and was requested in different third-party vendor.Valid values: - true: Callback is external. - false: Callback is not external. Default: false |
| type | Required. Type of callback.Valid values: - `asap`: The callback interaction is created instantly. - `scheduled`: The callback interaction is created and scheduled for a later time selected by the customer. Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| result | Result of the request.Data type: Object ``` "result": { "status": "String", "response": {Object}, "errors": [Array], "messages": [Array] } ``` |
| result.errors | Message containing details about the failures of the callback creation, like missing required request IDs.Data type: Array of strings ``` "errors": ["String", "String"] ``` |
| result.messages | Message containing details about the success of the callback creation.Data type: Array of strings ``` "messages": ["String", "String"] ``` |
| result.response | Object containing callback and interaction IDs of the callback request.Data type: Object ``` "response": { "callback_created": Boolean "callback_id": "String", "interaction_id": "String" } ``` |
| result.response.callback\_created | Flag indicating whether the new callback request was created or not. Possible values: - true: Callback was created successfully. - false: Callback was not created. For example, the callback already exists with the given callback\_id. Data type: Boolean |
| result.response.callback\_id | Sys\_id of the new callback, if applicable.Table: Callback \[sys\_cs\_callback\] Data type: String |
| result.response.interaction\_id | Sys\_id of the newly created interaction.Table: Interaction \[interaction\] Data type: String |
| result.status | Success or failure status of the request.Valid values: - success - failure Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| Name | Description |
|---|---|
| queryParameters | Object containing the key-value pair of the query parameters to filter results on.Data type: Object ``` "queryParameters": { "number": "String", "state": "String", "opened_by": "String", "sys_id", "String", "callback_type": "String", "external_callback_id": "String", "callback_number": "String" } ``` |
| queryParameters.number | The callback reference number to look up. For example, `"CAL0010012"`.Table: Callback \[sys\_cs\_callback\] Data type: String |
| queryParameters.state | Number representing the current state of the callback.Possible values: - `1`: Open - `2`: Work in Progress - `3`: Closed Complete - `4`: Closed Abandoned - `7`: Cancelled Data type: Number |
| queryParameters.opened\_by | User ID of the user requesting the callback.Table: User \[sys\_user\] Data type: String |
| queryParameters.sys\_id | Sys\_id of the callback record.Table: Callback \[sys\_cs\_callback\] Data type: String |
| queryParameters.callback\_type | Type of callback.Valid values: - `asap`: The callback interaction is created instantly. - `scheduled`: The callback interaction is created and scheduled for a later time selected by the customer. Data type: String |
| queryParameters.external\_callback\_id | External identifier for the callback created in a third-party system.Data type: String |
| queryParameters.callback\_number | Phone number of the caller to call back.Data type: String |
| responseParameters | Optional. Specifies which fields to return in the response. If omitted, the endpoint returns default fields.Data type: Object ``` "responseParameters": { "callback": [Array], "context": [Array] } ``` |
| responseParameters.callback | Optional. Returns fields from the callback record \(for example, `number`, `phone_number`\).Table: Callback \[sys\_cs\_callback\] Data type: Object ``` "callback": [String, String] ``` Valid values: - `number`: Unique reference number for that callback \(for example, `"CAL0010012"`\). - `phone_number`: Phone number of the caller. |
| responseParameters.context | Optional. Returns contextual information of the callback, such as queue, assignment, or related metadata in the form of key:value pairs.Table: Callback Context \[sys\_cs\_callback\_context\] Data type: Array of Strings ``` "callbackContext": { "customer_timezone": "String", "ivr_path": "String", "source_channel": "String", "queue": "String", "voicemail_duration": "String", "voicemail_recorded_at": "String", "voicemail_transcript": "String", "voicemail_url": "String" } ``` |
| responseParameters.context.customer\_timezone | Time zone of the user requesting the callback.String |
| responseParameters.context.ivr\_path | The IVR \(Interactive Voice Response\) path that a customer follows before being transferred to a human agent.Typically contains a list of queues or menu options the customer navigated through in the IVR system. This string is passed by Contact Center as a Service \(CCaaS\). For example, `"ivr_path": "Technical Support > Account Management"` Data type: String |
| responseParameters.context.source\_channel | Source of the callback. For example, IVR, Web, or VA.String |
| responseParameters.context.queue | Name or ID of the queue where the callback is assigned.String |
| responseParameters.context.voicemail\_duration | Length of the voicemail in hours, minutes, or seconds.Table: Callback Context \[sys\_cs\_callback\_context\], Field: Voicemail Duration String |
| responseParameters.context.voicemail\_recorded\_at | Time stamp in which the voicemail was recorded.Table: Callback Context \[sys\_cs\_callback\_context\], Field: Voicemail Recorded At Data type: String |
| responseParameters.context.voicemail\_transcript | Transcribed text of the voicemail.Table: Callback Context \[sys\_cs\_callback\_context\], Field: Voicemail Transcript Data type: String |
| responseParameters.context.voicemail\_url | Relative link to the callback record containing the voicemail.Table: Callback Context \[sys\_cs\_callback\_context\], Field: Voicemail URL Data type: String |
| Name | Description |
|---|---|
| result | Object containing the callback record or callback information that matched the specified search criteria.Date type: Object ``` "result": { "response": {Object}, "status": "String" } ``` |
| result.response | Callback information.Data type: Object ``` "response": { "callbacks": [Array], "count": "Number" } ``` |
| result.response.callbacks | Object containing details about the callback record in the form of key:value pairs. **Note:** Displays all default fields if **responseParameters** wasn't specified in the request. Data type: Array of Strings ``` "callbacks": [ { "number": "String", "state": "String", "first_name": "Virtual", "last_name": "Agent", "user_table": "sys_user", "opened_by": "Virtual Agent", "assigned_to": "" } ] ``` |
| result.response.callbacks.assigned\_to | ID of the agent assigned to the request.Data type: String |
| result.response.callbacks.context | Contextual information of the callback record. Varies based on the request input.Table: Callback Context \[sys\_cs\_callback\_context\] Data type: Array of Strings ``` "callbackContext": { "customer_timezone": "String", "ivr_path": "String", "source_channel": "String", "queue": "String", "voicemail_duration": "String", "voicemail_recorded_at": "String", "voicemail_transcript": "String", "voicemail_url": "String" } ``` |
| result.response.callbacks.context.customer\_timezone | Time zone of user requesting the callback.String |
| result.response.callbacks.context.ivr\_path | The IVR \(Interactive Voice Response\) path that a customer follows before being transferred to a human agent.Typically contains a list of queues or menu options the customer navigated through in the IVR system. This string is passed by Contact Center as a Service \(CCaaS\). For example, `"ivr_path": "Technical Support > Account Management"` Data type: String |
| result.response.callbacks.context.source\_channel | Source of the callback. For example, IVR, Web, or VA.String |
| result.response.callbacks.context.queue | Name or ID of the queue where the callback is assigned.String |
| result.response.callbacks.context.voicemail\_duration | Length of the voicemail in hours, minutes, or seconds.String |
| result.response.callbacks.context.voicemail\_recorded\_at | Time stamp in which the voicemail was recorded.Data type: String |
| result.response.callbacks.context.voicemail\_transcript | Transcribed text of the voicemail.Data type: String |
| result.response.callbacks.context.voicemail\_url | Relative link to the callback record containing the voicemail.Data type: String |
| result.response.callbacks.created\_on | Time stamp when callback was created.Data type: String |
| result.response.callbacks.first\_name | First name of the user who initiated or is associated with the callback.Data type: String |
| result.response.callbacks.last\_name | Last name of the associated user. Completes the user’s full name for logging, routing, and display.Data type: String |
| result.response.callbacks.number | Unique callback reference number. For example, `"CAL0010012"`.Data type: String |
| result.response.callbacks.opened\_by | User ID of the user requesting the callback.Table: User \[sys\_user\] Data type: String |
| result.response.callbacks.phone\_number | Phone number of the caller.Data type: String |
| result.response.callbacks.status | Current status of the callback. Possible values: - `1`: Open - `2`: Work in Progress - `3`: Closed Complete - `4`: Closed Abandoned - `7`: Cancelled Data type: String |
| result.response.callbacks.user\_table | Table to reference when looking up callback user details. For example, sys\_user.Data type: String |
| result.response.count | Number of matching records according to search criteria.Data type: Number |
| result.status | Success or error status of the request.Possible values: - error: Internal or unexpected failure, such as a database connection failure, server exception, or uncaught runtime error. - failed: Operation couldn't be completed. For example: No record found, validation failed, or unsupported parameter. - not\_found: Queried entity doesn’t exist. - unauthorized: Caller lacks permissions, credentials, or access. - invalid\_request: For malformed parameters, wrong types, or missing required fields. - timeout: Upstream system or database didn’t return on time. - partial\_success: Some records processed successfully or some failed. Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| Name | Description |
|---|---|
| callbackContext | Object containing the context details about the callback request.Table: Callback Context \[sys\_cs\_callback\_context\] Data type: Object ``` "callbackContext": { "customer_timezone": "String", "ivr_path": "String", "source_channel": "String", "queue": "String", "voicemail_duration": "String", "voicemail_recorded_at": "String", "voicemail_transcript": "String", "voicemail_url": "String" } ``` |
| callbackContext.customer\_timezone | Time zone of customer who requested the callback. Time zones can be provided in the following formats. - `Country/City`. For example, `America/Los_Angeles`. - `Country/Time zone`. For example, `US/Pacific`. - `Time zone abbreviation`. For example, `PST`. For a complete list of valid timezones, see the Time zone field in the User \[sys\_user\] table. For more information about time zones, see [Time zones](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/r_TimeZones.md). Data type: String |
| callbackContext.ivr\_path | The IVR \(Interactive Voice Response\) path that a customer follows before being transferred to a human agent.Typically contains a list of queues or menu options the customer navigated through in the IVR system. This string is passed by Contact Center as a Service \(CCaaS\). For example, `"ivr_path": "Technical Support > Account Management"` Data type: String |
| callbackContext.queue | Number assignments in the queue.Data type: String |
| callbackContext.source\_channel | Source of the callback. For example, IVR, Web, or VA.Data type: String |
| callbackContext.voicemail\_duration | Length of the voicemail in hours, minutes, or seconds.Field: Voicemail Duration Data type: Number |
| callbackContext.voicemail\_recorded\_at | Time stamp in which the voicemail was recorded.Field: Voicemail Recorded At Data type: String |
| callbackContext.voicemail\_transcript | Transcribed text of the voicemail.Field: Voicemail Transcript Data type: String |
| callbackContext.voicemail\_url | Relative link to the callback record containing the voicemail.Field: Voicemail URL Data type: String |
| callbackDetails | Object containing the details about the callback request.Table: Callback \[sys\_cs\_callback\] Data type: Object ``` "callbackDetails": { "appointment": "String", "channel_to_callback": "String", "description": "String", "end_time": "String", "expire_time": "String", "messaging_channel": "String", "reason_type": "String" "scheduled_start_time": "String", "short_description": "String", "user_document": "String", "user_table": "String" } ``` |
| callbackDetails.appointment | Sys\_id of the appointment. Only applicable to a `Scheduled` callback type.Table: Appointment Booking \[sn\_apptmnt\_booking\_appointment\_booking\] Data type: String |
| callbackDetails.channel\_to\_callback | Target messaging channel to route the callback through.Table: Messaging Channel \[sys\_cs\_channel\], Field: sys\_id Data type: String |
| callbackDetails.description | Full description describing the reason for the callback, if needed.Data type: String |
| callbackDetails.end\_time | Date and time value to stop the callback attempt. Only applicable to a `Scheduled` callback type.Format: glide\_date\_time value, such as `yyyy-MM-dd HH:mm:ss` Data type: String |
| callbackDetails.expire\_time | Date and time to close the callback request.Format: glide\_date\_time value, such as `yyyy-MM-dd HH:mm:ss` Data type: String |
| callbackDetails.messaging\_channel | Source of the callback. Identifies the client interface that initiated the callback request, such as a web client, mobile app, or embedded messenger.Table: Messaging Channel \[sys\_cs\_channel\], Field: sys\_id Data type: String |
| callbackDetails.reason\_type | Reason for the callback request. Helps with routing, analytics, and reporting by tagging the callback with a standardized reason.Valid values: - `Other issue` - Custom values defined by your implementation. For example, `“Billing Inquiry”`, `“Technical Support”` Table: Callback \[sys\_cs\_callback\], Field: reason\_type Data type: String |
| callbackDetails.scheduled\_start\_time | Date and time value to initiate the callback. Only applicable to a `Scheduled` callback type.Format: glide\_date\_time value, such as `yyyy-MM-dd HH:mm:ss` Data type: String |
| callbackDetails.short\_description | Provides a detailed explanation of the callback request. Can include specific customer concerns, context, or notes from the agent.Data type: String |
| callbackDetails.user\_document | Sys\_id of the user who requested the callback. Used with **callbackDetails.user\_table** to identify the user requesting the callback.Table: User \[sys\_user\], Field: sys\_id Data type: String |
| callbackDetails.user\_table | Table where the user record resides. Used with **callbackDetails.user\_document** to identify the user requesting the callback. Value is always `sys_user`.Data type: String |
| callbackId | Required. Sys\_id or external\_id of the callback.Table: Callback \[sys\_cs\_callback\] Data type: String |
| inboundId | Sys\_id of the inbound call associated with the callback. Provides traceability linking the callback request to a specific inbound call record that might originate from a third-party provider or CCaaS platform.Table: Callback \[sys\_cs\_callback\], Field: provider\_application\_id Data type: String |
| phoneNumber | Phone number of the caller.Data type: String of numbers Format: E.164 standard compliant |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| errors | Message containing details about the failures of the callback creation, like missing required request IDs.Data type: Array of strings ``` "errors": ["String", "String"] ``` |
| messages | Message containing details about the success of the callback creation.Data type: Array of strings ``` "messages": ["String", "String"] ``` |
| result | Result of the request.Data type: Object ``` "result": { "status": "String", "response": {Object}, "errors": [Array], "messages": [Array] } ``` |
| result.response | Object containing callback and interaction IDs of the callback request.Data type: Object ``` "response": { "callback_created": Boolean "callback_id": "String", "interaction_id": "String" } ``` |
| result.response.callback\_created | Flag indicating whether the new callback request was created or not. Possible values: - true: Callback was created successfully. - false: Callback was not created. For example, the callback already exists with the given callback\_id. Data type: Boolean |
| result.response.callback\_id | Sys\_id of the new callback, if applicable.Table: Callback \[sys\_cs\_callback\] Data type: String |
| result.response.interaction\_id | Sys\_id of the newly created interaction.Table: Interaction \[interaction\] Data type: String |
| result.status | Success or failure status of the request.Valid values: - success - failure Data type: String |
| Name | Description |
|---|---|
| api\_version | Optional. Version of the endpoint to access. For example, `v1` or `v2`. Only specify this value to use an endpoint version other than the latest. Data type: String |
| callback\_number | Sys\_id or external\_id of the callback to cancel.Table: Callback \[sys\_cs\_callback\] Data type: String |
| Name | Description |
|---|---|
| reason | Optional. Specifies to cancel the given callback. Value is always `Cancelled`. If **reason** isn't passed, the request is closed rather than cancelled.Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Name | Description |
|---|---|
| reason | Reason for updating the callback request. Value is always `Cancelled` or `Closed`.Table: Callback \[sys\_cs\_callback\], Field: Reason Data type: String ``` { "reason": "Cancelled" } ``` |