GET
/
autocompose
/
v1
/
responses
/
customs

Authorizations

asapp-api-id
string
headerrequired
asapp-api-secret
string
headerrequired

Query Parameters

agentId
string
required

Identifier of the agent, data format is expected to be UUID

folderId
string

Optional identifier for the ID of the folder containing responses to be retrieved. If this is omitted, all custom responses are returned. Data format is expected to be UUID. The special value '__root' can also be used to retrieve top level folders/responses.

resourceType
enum<string>
default: all

Optional identifier for the ID of the type of responses to be retrieved. A value of 'folders' will return only folder information describing the way responses are organized. A value of 'responses' will return only responses. A value of 'all' will return a mix of folders and responses. Note that if the folderId parameter is specified as well, only the resource type identified here that exists within the specified folder will be returned. If this is omitted, all resources are returned.

Available options:
folders,
responses,
all
searchTerm
string

Search term to search for custom responses. This will search for matching folder names, response text or both, depending on the resourceType parameter value.

pageToken
string

This service responds with a set of custom responses. These are divided into pages, with maxPerPage items in each page. This parameter is the page token returned in the call prior to this one. If this is the first call being made, this field should be omitted. The server will respond with custom responses following the one previously sent.

maxPerPage
integer
default: 1000

The maximum number of custom responses the client can handle within one page

Response

200 - application/json

A set of responses and folders for an agent

responsesList
object[]

the list of responses with their associated metadata

folderList
object[]

the list of folders

pageToken
string

the token to the next page if there is one, otherwise empty