Skip to main content

Uniphore Customer Portal

Fetch Disposition by Ids

The Fetch Disposition by Ids API fetches a list of dispositions based on the ids passed. This is a streaming API.

Endpoint

Method: GET

URL: dispositions?t=id-range&ids=id1, id2,…idn

Header Parameter

Authorization Bearer <Token>

Query Parameter

Parameter Name

Mandatory/

Optional

Type

Description

t

Mandatory

string

t represents the type of query.

Example: For ids use id-range value.

ids

Mandatory

string

A list of ids for which disposition need to be fetched. The ids are separated by a comma.

Example Request
curl -H "Authorization: Bearer 911999706310ffbcb32981863e23ce72d5e60d7b" -XGET http://host:port/dispositions?t=id-range&ids=1,2,3,...,n
Response and Error Codes

Code

Response

200

A stream of newline separated disposition documents in the format listed in the above API

401

{“reason”:”Authentication failed”}

422

{“error”: “Error while decoding response from the database”}

500

{“error”: “Internal server error”}