Fetch ACW Disposition List
dispositions [id range] API fetches a list of dispositions based on the ids passed. This is a streaming API.
Endpoint
Method: GET
URL: https://api.<region>.cloud.uniphore.com/data-collector/dispositions?t=id-range&ids=1,2,3,...,n&tenantId=<tenantId>&environment=<environment-name>
Request
curl -H “Authorization: Bearer 911999706310ffbcb32981863e23ce72d5e60d7b” -XGET https://api.<region>.cloud.uniphore.com/data-collector/dispositions?t=id-range&ids=1,2,3,...,n&tenantId=<tenantId>&environment=<environment>
<slug-name> denotes the tenant name.
Header Parameter
Authorization - Bearer <Token>
Query Parameters
Parameter Name | Mandatory/ Optional | Data Type | Description |
---|---|---|---|
| Mandatory | string | t represents the type of query. Example: For ids use id-range value. |
| Mandatory | string | A list of ids for which disposition need to be fetched. The ids are separated by a comma. |
| Mandatory | String | The unique identifier for your account. |
| Optional | String | Operating environment type. Three out-of-the-box environments are provided for each account:
|
Response and Error Codes
Code | Response |
---|---|
200 | A stream of newline separated disposition documents in the format listed in the API 'Fetch ACW Disposition by ID'. |
401 | {“reason”:”Authentication failed”} |
422 | {“error”: “Error while decoding response from the database”} |
500 | {“error”: “Internal server error”} |
Disposition Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"conversationId": {
"type": "string"
},
"startTime": {
"type": "integer"
},
"lang": {
"type": "string"
},
"metadata": {
"type": "object",
"properties": {
"agentId": {
"type": "string"
},
"customerId": {
"type": "string"
},
"conversationType": {
"type": "string"
},
"journeyId": {
"type": "string"
},
"tenantId": {
"type": "string"
},
"organizationId": {
"type": "string"
},
"businessProcessId": {
"type": "string"
}
},
"required": [
"agentId",
"customerId",
"conversationType",
"journeyId",
"tenantId",
"organizationId",
"businessProcessId"
]
},
"isReviewed": {
"type": "boolean"
},
"resolution": {
"type": "object",
"properties": {
"hierarchy": {
"type": "string"
},
"data": {
"type": "string"
}
},
"required": [
"hierarchy",
"data"
]
},
"manualEdits": {
"type": "object",
"properties": {
"userId": {
"type": "string"
},
"ts": {
"type": "integer"
},
"hierarchy": {
"type": "string"
},
"data": {
"type": "string"
}
},
"required": [
"userId",
"ts",
"hierarchy",
"data"
]
}
},
"required": [
"conversationId",
"startTime",
"lang",
"metadata",
"isReviewed",
"resolution",
"manualEdits"
]
}