Search documentation
karat

+

K

User Documentation ↗

Get Agent

GET/api/v2/aipAgents/agents/{agentRid}
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 details for an AIP 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 an AIP Agent created in AIP Agent Studio.

Query parameters

version
string
optional

The version of the Agent to retrieve. If not specified, the latest published version will be returned.

preview
boolean
optional

Enables the use of preview functionality.

Response body

Agent
object
Hide child attributes

Hide child attributes

rid
string

An RID identifying an AIP Agent created in AIP Agent Studio.

version
string

The version of this instance of the Agent.

metadata
object

Metadata for an Agent.

Show child attributes

Show child attributes

parameters
map<ParameterId, Parameter>
optional

The types and names of parameters configured for the Agent in AIP Agent Studio. Parameters are variables in the prompt sent to an Agent that can be used to customize and control the behavior of the Agent.

Show child attributes

Show child attributes

Examples

Request

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

Response

Copied!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 { "metadata": { "displayName": "Supply Chain Support Agent", "suggestedPrompts": [ "What is the status of my order?", "How do I track my shipment?" ], "description": "An intelligent assistant to help answer questions about supply chain operations.", "inputPlaceholder": "Ask about supply chain operations..." }, "rid": "ri.aip-agents..agent.732cd5b4-7ca7-4219-aabb-6e976faf63b1", "version": "1.0", "parameters": { "customerName": { "access": "READ_ONLY", "description": "The name of the customer to answer supply chain-related questions for." } } }