Skip to main content
GET
/
agents
/
{id}
Retrieve an Agent
curl --request GET \
  --url https://commerce.driv.ly/api/agents/{id}
{
  "data": {
    "id": "<string>",
    "model": "<string>",
    "prompt": "<string>",
    "functions": [
      "<string>"
    ]
  },
  "success": true
}

Path Parameters

id
string
required

Agent is uniquely identified by id

Query Parameters

depth
integer

The number of levels of related objects to include in the response

Response

Agent Found

data
Agent · object
Example:
{
"id": "ai_3jks93ndk3s9",
"model": "gpt-4o",
"prompt": "Respond to the customer service request",
"functions": ["fnc_ed904md03684"]
}
success
boolean