Skip to content

List an account's classifier versions

GET
/v1/adapters/ids/classifier
curl --request GET \
--url https://example.com/v1/adapters/ids/classifier \
--header 'Authorization: Bearer <token>'

Every live version the account owns, each as its own entry: a version is the addressable thing, so several entries can share a classifier id and differ only by version.

X-Account-Sid
string

Target account for principals broader than one account (tenant / account API key); account-scoped principals use their own.

OK

Media typeapplication/json
Array<object>

One immutable version of a classifier, addressed by the account, the classifier id and the version number.

object
id
required
string
version
required

Version number. 0 is an ordinary version like any other — the first one a classifier gets, and the one existing scenario bricks name.

integer
account_sid
required
string
model_id
required
string
description
required
string
intent
required
object
intents
required
Array<object>
object
id
required
string
<= 36 characters
description
string
<= 1024 characters
phrase
required
object
phrases
required
Array<string>
>= 1 items
content_hash
required

Identity of this version’s training-relevant content. Two versions of one classifier can never carry the same value; it is what lets identical content resolve to an existing version instead of training again.

string
state
required
string
Allowed values: new training fail success unknown
training

Why the last training run of this version ended as it did. Present on a single-version read; absent from list entries.

object
error

Why the last training run failed. Absent unless it failed.

string
created_at

When the training run was queued. Absent if none was ever queued.

string format: date-time
updated_at

When the training run last changed state. Absent if none was ever queued.

string format: date-time
Example
[
{
"state": "new"
}
]

Bad request

Media typeapplication/json
object
name
required
string
message
required
string
code
required
integer
status
required
integer
Examplegenerated
{
"name": "example",
"message": "example",
"code": 1,
"status": 1
}

Unauthorized

Forbidden

Internal server error

Media typeapplication/json
object
name
required
string
message
required
string
code
required
integer
status
required
integer
Examplegenerated
{
"name": "example",
"message": "example",
"code": 1,
"status": 1
}

Bad gateway (upstream adapter error)