--- title: Interaction Management API description: The Interaction Management API provides endpoints to create interactions.Inserts or updates a record in the interaction table.Changes the state of an interaction to closed or closed complete. locale: en-US canonical_url: https://www.servicenow.com/docs/r/api-reference/rest-apis/interaction-management-api.html release: brazil product: REST APIs classification: rest-apis topic_type: concept last_updated: "2026-09-10" reading_time_minutes: 7 breadcrumb: [REST API reference, API reference, API implementation and reference] --- # Interaction Management API The Interaction Management API provides endpoints to create interactions. This class requires the Interaction Logging, Routing, and Queueing plugin \(com.glide.interaction\). **Parent Topic:**[REST API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/api-reference/rest-apis/api-rest.md) ## Interaction - POST /now/interaction Inserts or updates a record in the interaction table. **Note:** The **opened\_by** field on created interaction records is a reference to the User \[sys\_user\] record for the authenticated user calling the API. The **opened\_by** field can't be set in the request body. To set additional fields beyond those listed under Supported request parameters, such as **short\_description**, use the [Table API](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/api-reference/rest-apis/c_TableAPI.md) instead. ### URL format Versioned URL: `/api/now/{api_version}/interaction` Default URL: `/api/now/interaction` **Note:** Available versions are specified in the [REST API Explorer](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/api-reference/rest-api-explorer/use-REST-API-Explorer.md). For scripted REST APIs there is additional version information on the [Scripted REST Service form](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/api-reference/rest-api-explorer/c_CustomWebServices.md). ### 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 |
| Element | Description |
|---|---|
| channel | Required. Sys\_id for the interaction connector you want to create an interaction for.Data type: String |
| context | A Map or a table/sys\_id pair. By default, interactions have a record in the interaction\_json\_blob table that stores context data as a JSON object. You can point an interaction to a different record for context. Use context or context\_table/context\_id to define the context for an interaction.Data type: String |
| context\_id | Document ID for a record you want to use to store context. The default is a new record in the insteraction\_json\_blob table. If you define the context ID, you also need to define the table.Data type: String |
| context\_table | Context table you want to use to store interaction context for. The default is interaction\_json\_blob. If you define the context table, you also need to define the context ID.Data type: String |
| channel\_metadata | Map or a table/sys\_id pair. Channel metadata contains information that a connector can use to communicate through the associated channel. Data type: String |
| channel\_metadata\_id | Document ID for a record you want to use to store channel metadata. The default is a new record in the live\_group\_profile table. If you define the channel metadata ID, you also need to define the table.Data type: String |
| channel\_metadata\_table | Table you want to use to store channel metadata. The default is the live\_group\_profile table. If you define the channel metadata table, you also need to define the channel metadata ID.Data type: String |
| queue | Sys\_id for the queue you want to associate with the interaction.Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Content-Type | Data format of the request body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Element | Description |
|---|---|
| assigned\_to | The sys\_id of the user the interaction is assigned to.Data type: String |
| channelMetadataDocument | The sys\_id of the channel metadata document associated with the interaction.Data type: String |
| channelMetadataTable | The table name of the channel metadata table associated with the interaction.Data type: String |
| channel\_metadata | Any channel metadata included for the interaction.Data type: String |
| closed\_by | The sys\_id of the user who closed the interaction.Data type: String |
| contextDocument | The sys\_id for the context document associated with the interaction.Data type: String |
| contextTable | The name of the table associated with the interaction.Data type: String |
| number | The number of the new interaction.Data type: String |
| opened\_for | The sys\_id of the user who the interaction was opened for.Data type: String |
| queue | The sys\_id for the queue you create the interaction for.Data type: String |
| state | The state the interaction is in. If you assign a queue, the state automatically changes to **Queued**, otherwise the default is **New**.Data type: String |
| sys\_id | The sys\_id of the interaction.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 |
| interaction\_id | Sys\_id for the interaction you want to close.Data type: String |
| Header | Description |
|---|---|
| Accept | Data format of the response body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Content-Type | Data format of the request body. Supported types: **application/json** or **application/xml**. Default: **application/json** |
| Element | Description |
|---|---|
| assigned\_to | The sys\_id of the user the interaction is assigned to.Data type: String |
| channelMetadataDocument | The sys\_id of the channel metadata document associated with the interaction.Data type: String |
| channelMetadataTable | The table name of the channel metadata table associated with the interaction.Data type: String |
| channel\_metadata | Any channel metadata included for the interaction.Data type: String |
| closed\_by | The sys\_id of the user who closed the interaction.Data type: String |
| contextDocument | The sys\_id for the context document associated with the interaction.Data type: String |
| contextTable | The name of the table associated with the interaction.Data type: String |
| number | The number of the new interaction.Data type: String |
| opened\_for | The sys\_id of the user who the interaction was opened for.Data type: String |
| queue | The sys\_id for the queue you create the interaction for.Data type: String |
| state | The state the interaction is in. If you assign a queue, the state automatically changes to **Queued**, otherwise the default is **New**.Data type: String |
| sys\_id | The sys\_id of the interaction.Data type: String |