Skip to content

Get one version

GET
/v1/adapters/ids/classifier/{id}/version/{version}
curl --request GET \
--url https://example.com/v1/adapters/ids/classifier/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/version/1 \
--header 'Authorization: Bearer <token>'

Returns the recorded content of one version together with its training state — including why the last training run failed, and when it was queued and last changed. A version’s content never changes once recorded, so a consumer that pinned this version always resolves exactly what it pinned.

id
required
string format: uuid

Classifier id (UUID).

version
required
integer

Classifier version. Version 0 is the one every classifier created before versioning occupies.

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

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

Not found

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
}

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)