# Get one version GET /v1/t/adapters/ids/classifier/{id}/version/{version} Select code sample ``` const url = 'https://example.com/v1/t/adapters/ids/classifier/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/version/1'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ``` curl --request GET \ --url https://example.com/v1/t/adapters/ids/classifier/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/version/1 \ --header 'Authorization: Bearer ' ``` - /v1/t/adapters/ids/classifier/{id}/version/{version} 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. ## Permission This operation needs the permission [`tenant:scenario_template:manage`](https://docs.aiva.apifonica.com/concepts/roles-and-permissions/#tenant-scenario_template-manage). ## Authorizations - **[bearerAuth](https://docs.aiva.apifonica.com/api/tenant/#bearerauth)** ## Parameters ### Path Parameters **id** required string format: uuid Classifier id (UUID). **version** required integer Classifier version. Version 0 is the one every classifier created before versioning occupies. ### Header Parameters **X-Tenant-Sid** string Names the target tenant. By principal: - A tenant-scoped principal may omit it. - A principal with no tenant of its own names one here. Refused when: - A tenant-scoped principal sends a value naming any other tenant. - A principal with no tenant of its own omits it. ## Responses ### 200 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 **id** required string <= 36 characters **description** string <= 1024 characters **phrase** required object **phrases** required Array\ \>= 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" } ``` ### 400 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 } ``` ### 401 Unauthorized ### 403 Forbidden ### 404 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 } ``` ### 500 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 } ``` ### 502 Bad gateway (upstream adapter error)