# 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](#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`. ```http POST https://api.qwryai.com/public/v1/tools/agent_configuration ``` ## Authentication Send your API key as `Authorization: Bearer `, or in an `x-api-key` header. The key needs **Read agent settings**. See [Authentication](/docs/api-reference/v2/authentication). ## Body parameters | Name | Type | Required | Description | | - | - | - | - | | `chatbotId` | `string` | Yes | The agent's id, from [List agents](/docs/api-reference/v2/agents/list-agents). | ## Request example > [tab] cURL > > ```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"}' > ``` > [tab] JavaScript > > ```javascript > const response = await fetch("https://api.qwryai.com/public/v1/tools/agent_configuration", { > method: "POST", > headers: { > Authorization: "Bearer YOUR_API_KEY", > "Content-Type": "application/json", > }, > body: JSON.stringify({ chatbotId: "YOUR_AGENT_ID" }), > }); > const { data } = await response.json(); > console.log(data.model.responseModel, data.updatedAt); > ``` > [tab] Python > > ```python > import requests > > response = requests.post( > "https://api.qwryai.com/public/v1/tools/agent_configuration", > headers={"Authorization": "Bearer YOUR_API_KEY"}, > json={"chatbotId": "YOUR_AGENT_ID"}, > ) > data = response.json()["data"] > print(data["model"]["responseModel"], data["updatedAt"]) > ``` ## 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 } } } ``` | Field | Type | Description | | - | - | - | | `updatedAt` | `string` | When the settings last changed. Send it as `expectedUpdatedAt` to the update tools. | | `name` | `string` | The agent's name. | | `status` | `string \| null` | Whether the agent is `active`. | | `language` | `string \| null` | The agent's language code. | | `model.responseModel` | `string \| null` | The model that writes answers. | | `model.copilotModel` | `string \| null` | The model Backstage answers with, set in **Settings › General**. | | `model.temperature` | `number \| null` | How varied answers are, from 0 to 2. | | `model.maxTokens` | `number \| null` | The longest answer, in tokens. | | `citationsEnabled` | `boolean \| null` | Whether answers cite their sources. | | `routing` | `object` | How conversations escalate to your team. | | `unpublished` | `object` | Only 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`: | Tool | Returns | Permission | | - | - | - | | `agent_instructions` | One 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_interface` | The 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_settings` | The **Voice** page: voice, transcriber, messages, call limits and the orb. | **Read agent settings** | | `get_deploy_status` | Each channel's setup and on/off state. | **Read agent settings** | | `get_notification_settings` | The daily conversations and daily leads emails, and who receives each. | **Change agent settings** | | `list_sources` | Each source, with whether weekly retraining is on. See [Sources](/docs/api-reference/v2/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 status | Code | When | | - | - | - | | 400 | `CHATBOT_ID_REQUIRED` | The body has no valid `chatbotId`. | | 400 | `INVALID_ARGUMENTS` | The body has a field the tool doesn't take. `issues` lists each one. | | 401 | `API_KEY_REQUIRED` / `INVALID_API_KEY` | No credential, or an unknown, deleted or expired one. | | 403 | `API_ACCESS_PLAN_REQUIRED` | The workspace's plan doesn't include API access. | | 403 | `INSUFFICIENT_PERMISSION` | The key doesn't hold **Read agent settings**. | | 404 | `CHATBOT_NOT_FOUND` | No agent with that `chatbotId` in your workspace. | | 429 | `INTEGRATION_RATE_LIMIT_EXCEEDED` | More than 2,000 requests in 15 minutes. | | 500 | `TOOL_FAILED` | The tool failed on our side. Try again. | See [Error Handling](/docs/api-reference/v2/error-handling) for every code.