Skip to main content

AgentInfo API Documentation

GET: Retrieve AgentInfo​

Description​

This route is used to retrieve the AgentInfo for a specific Agent.

Method​

GET

Response​

  • Returns a JSON response with the AgentInfo or an error message.

Status Codes​

  • 200 OK: AgentInfo retrieved successfully.
  • 500 Internal Server Error: Error listing AgentInfo.

Throws​

  • An error if request validation or AgentInfo retrieval fails.

Example cURL​

curl --location 'https://app.ai12z.net/api/Agents/{AgentId}/settings/Agentorginfo' \
--header 'Authorization: Bearer <YOUR_KEY>' \
--data-urlencode 'sort=name' \
--data-urlencode 'page=1' \
--data-urlencode 'limit=10'

PUT: Update a AgentInfo​

Description​

This route is used to update an existing AgentInfo.

Method​

PUT

Request Body​

Example request body:

{
"id": "AgentInfo ID"
}

Response​

  • Returns the updated AgentInfo.

Status Codes​

  • 200 OK: AgentInfo updated successfully.
  • 500 Internal Server Error: Error updating the AgentInfo.

Throws​

  • An error if request validation or AgentInfo update fails.

Example cURL​

curl --location --request PUT 'https://app.ai12z.net/api/Agents/{AgentId}/settings/Agentorginfo' \
--header 'Authorization: Bearer <YOUR_KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "AgentInfo ID"
}'