Search documentation
karat

+

K

User Documentation ↗
Version 2.0

Get Chatbot Studio Agent Version

GET/api/v2/aipAgents/agents/{agentRid}/agentVersions/{agentVersionString}
Warning

This endpoint is in preview and may be modified or removed at any time. To use this endpoint, add preview=true to the request query parameters.

Get version details for a Chatbot Studio Agent.

Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:aip-agents-read.

Path parameters

agentRid
string

An RID identifying a Chatbot Studio Agent created in AIP Chatbot Studio.

agentVersionString
string

The semantic version of the Chatbot Studio Agent, formatted as "majorVersion.minorVersion".

Query parameters

preview
booleanoptional

Enables the use of preview functionality.

Response body

AgentVersion
object
Hide child attributes

Hide child attributes

string
string

The semantic version of the Chatbot Studio Agent, formatted as "majorVersion.minorVersion".

version
object

Semantic version details of the Chatbot Studio Agent.

Show child attributes

Show child attributes

Examples

Request

Copied!
1 2 3 curl \ \t-H "Authorization: Bearer $TOKEN" \ "https://$HOSTNAME/api/v2/aipAgents/agents/ri.aip-agents..agent.732cd5b4-7ca7-4219-aabb-6e976faf63b1/agentVersions/1.0?preview=true"

Response

Copied!
1 2 3 4 5 6 7 { "string": "1.0", "version": { "major": 1, "minor": 2 } }

Error responses

Error Name
InvalidAgentVersionError CodeINVALID_ARGUMENT
Status Code400
DescriptionThe provided version string is not a valid format for a Chatbot Studio Agent version.
ParametersagentRid, version
NoPublishedAgentVersionError CodeINVALID_ARGUMENT
Status Code400
DescriptionFailed to retrieve the latest published version of the Chatbot Studio Agent because the Chatbot Studio Agent has no published versions. Try publishing the Chatbot Studio Agent in AIP Chatbot Studio to use the latest published version, or specify the version of the Chatbot Studio Agent to use.
ParametersagentRid
AgentVersionNotFoundError CodeNOT_FOUND
Status Code404
DescriptionThe given AgentVersion could not be found.
ParametersagentRid, agentVersionString
AgentNotFoundError CodeNOT_FOUND
Status Code404
DescriptionThe given Agent could not be found.
ParametersagentRid