Skip to content
QwryAI
Documentation
Pages

Endpoints

Get agent

Read one agent's settings: model, language, status and routing, plus the tools for its instructions and Chat bubble

An agent's settings are read with a few focused tools, each matching a page of the dashboard. agent_configuration returns the core: name, status, language, model, citations and routing. The table under Other settings shows where the rest lives, such as instructions, Chat bubble text and guardrails.

Every read shows the agent's draft values, the ones the Playground uses. When a value is saved in the draft but not published yet, the response lists it under unpublished.

POSThttps://api.qwryai.com/public/v1/tools/agent_configuration

Authentication

Send your API key as Authorization: Bearer <api-key>, or in an x-api-key header. The key needs Read agent settings. See Authentication.

Body parameters

NameTypeRequiredDescription
chatbotIdstringYesThe agent's id, from List agents.

Request example

Bash
curl -X POST 'https://api.qwryai.com/public/v1/tools/agent_configuration' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"chatbotId": "YOUR_AGENT_ID"}'

Response

JSON
{
  "success": true,
  "data": {
    "chatbotId": "YOUR_AGENT_ID",
    "updatedAt": "2026-11-30T21:14:08.512Z",
    "name": "QwryAI",
    "status": "active",
    "language": "en",
    "interpretation": "stored_configuration",
    "model": {
      "responseModel": "anthropic/claude-haiku-5.5",
      "copilotModel": null,
      "temperature": 0.2,
      "maxTokens": null,
      "topP": null,
      "frequencyPenalty": null,
      "presencePenalty": null,
      "topK": null
    },
    "citationsEnabled": true,
    "escalationThreshold": null,
    "routing": {
      "escalationEnabled": true,
      "strategy": null,
      "defaultPriority": null,
      "queueTimeoutMs": null,
      "assignmentTimeoutMs": null,
      "autoCreateOnAssignmentTimeout": null,
      "autoCreateOnQueueTimeout": null,
      "autoCreateOnEscalation": null
    }
  }
}
FieldTypeDescription
updatedAtstringWhen the settings last changed. Send it as expectedUpdatedAt to the update tools.
namestringThe agent's name.
statusstring | nullWhether the agent is active.
languagestring | nullThe agent's language code.
model.responseModelstring | nullThe model that writes answers.
model.copilotModelstring | nullThe model Backstage answers with, set in Settings › General.
model.temperaturenumber | nullHow varied answers are, from 0 to 2.
model.maxTokensnumber | nullThe longest answer, in tokens.
citationsEnabledboolean | nullWhether answers cite their sources.
routingobjectHow conversations escalate to your team.
unpublishedobjectOnly when the draft holds changes: fields names them.

null means the setting was never stored, not that it's off.

Other settings

Each of these tools takes the same chatbotId:

ToolReturnsPermission
agent_instructionsOne instruction field (systemPrompt, behaviorSystemPrompt, guardrails or requiredDisclaimers) in 4,000-character pages. Send field and offset, then follow nextOffset with the contentHash as expectedContentHash until nextOffset is null.Read agent settings
get_chat_interfaceThe Chat bubble and Center Stage text and look, each channel's own instructions, and the Guardrails rate limit, spam detection and blocked countries, as fields keyed by setting, with updatedAt.Read agent settings
get_voice_settingsThe Voice page: voice, transcriber, messages, call limits and the orb.Read agent settings
get_deploy_statusEach channel's setup and on/off state.Read agent settings
get_notification_settingsThe daily conversations and daily leads emails, and who receives each.Change agent settings
list_sourcesEach source, with whether weekly retraining is on. See Sources.Read agent settings
Bash
curl -X POST 'https://api.qwryai.com/public/v1/tools/agent_instructions' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"chatbotId": "YOUR_AGENT_ID", "field": "systemPrompt", "offset": 0}'

Errors

HTTP statusCodeWhen
400CHATBOT_ID_REQUIREDThe body has no valid chatbotId.
400INVALID_ARGUMENTSThe body has a field the tool doesn't take. issues lists each one.
401API_KEY_REQUIRED / INVALID_API_KEYNo credential, or an unknown, deleted or expired one.
403API_ACCESS_PLAN_REQUIREDThe workspace's plan doesn't include API access.
403INSUFFICIENT_PERMISSIONThe key doesn't hold Read agent settings.
404CHATBOT_NOT_FOUNDNo agent with that chatbotId in your workspace.
429INTEGRATION_RATE_LIMIT_EXCEEDEDMore than 2,000 requests in 15 minutes.
500TOOL_FAILEDThe tool failed on our side. Try again.

See Error Handling for every code.

Explore the documentation