> For the complete documentation index, see [llms.txt](https://docs.uptiq.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uptiq.ai/platform/console/agent-builder/deploy/agent-integration/agent-api.md). Agents can also search and read this documentation through its [MCP server](https://docs.uptiq.ai/~gitbook/mcp).

# Agent API

Call your agent over HTTP with authentication, triggers, sub-agents, documents, variables, execution management, webhooks and error responses.

{% hint style="info" %}
**Versions are per agent.** Read the SDK version and Executor version from your own agent's **Agent Config Panel**, and use those in your app and API calls. The values shown in the samples on this page are placeholders.
{% endhint %}

{% hint style="warning" %}
**`<BASE_URL>` in every sample on this page** is a placeholder for the Uptiq Platform API host your organization uses. Confirm your production host with your Uptiq contact or your platform administrator before you ship — it differs by deployment, and a sample host will not work against your environment. (The panel's own "Download as MD" export shows a real host for your environment — copy the sample from there once you've confirmed it's the right one for where you're shipping.)
{% endhint %}

When you'd rather drive the agent from your own code than a prebuilt UI, use the **Agent API** tab. It generates one code sample from three selectors:

| Selector    | Options                                      | Notes                                                                                                                                                                                                                                           |
| ----------- | -------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Client**  | `raw (HTTP)`, `TypeScript SDK`, `Python SDK` | Python SDK is **Coming soon**.                                                                                                                                                                                                                  |
| **Mode**    | `Sync`, `Async`, `Realtime`                  | This page documents Sync and Async in full. **Realtime** appears as a selector on screen; its request/response shape isn't documented yet — check back or ask your Uptiq contact before building against it.                                    |
| **Dialect** | `Native`, `OpenAI`                           | **Native** is the Platform's own request/response shape, documented below. **OpenAI** exposes an OpenAI-compatible surface (chat completions-style requests); it isn't documented on this page yet — the selector is live, the reference isn't. |

The credentials panel above the generated sample explains that every request needs both the API key below (sent as the `x-api-key` header, always visible there) and its matching API secret (sent as `x-api-key-secret`, shown only once when generated). Keep both server-side, and never expose them in the browser. Generate the key pair from the panel, or from **Access & Security**.

<figure><img src="https://1326225582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0qmgQjJ5aArDTj2ACFHG%2Fuploads%2Fgit-blob-a499d7cffd683816349fb10209983ae1475a10a3%2Fqore_agent-builder_manage-agent-integrate-agent-api_rounded_shadow.png?alt=media" alt="The Agent API tab of Integrate Agent, with the API credentials panel reading No API key yet, the Generate new secret key button, and the Client, Mode and Dialect selectors"><figcaption><p>The Agent API tab, before an API key exists.</p></figcaption></figure>

* **Generate new secret key** creates a new API key and secret, and shows the secret once. Copy it straight away. It adds a key and doesn't deactivate any existing one; deactivate keys you no longer use on [Access & Security](https://docs.uptiq.ai/platform/console/agent-builder/deploy/authentication.md#renaming-or-deactivating-a-key).
* If the agent already has an API key, the panel shows it. Its secret can't be shown again, so if you didn't save it, generate a new pair.

### Download as MD

**Copy** copies the generated sample. **Download as MD** opens a preview of the exact Markdown file you'll download. It holds the agent's name, executor version and base URL, the credentials guidance, and the sample for the Client, Mode and Dialect you chose. Embedded Chat has the same button on its **Install widget** step.

On the Agent API tab, the dialog has an **Include secrets** option. Tick it to write the agent's API key and its secret into the file, so the file works as-is. It needs an API key to exist.

<figure><img src="https://1326225582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0qmgQjJ5aArDTj2ACFHG%2Fuploads%2Fgit-blob-4cdbb671de8d9b99be0bb90011270a9999de598e%2Fqore_agent-builder_manage-agent-integrate-agent-download-md_rounded_shadow.png?alt=media" alt="The Download as MD dialog for Agent API over HTTP, previewing the integration spec Markdown, with the Include secrets checkbox and the Download .md button"><figcaption><p>Download as MD, with Include secrets.</p></figcaption></figure>

{% hint style="warning" %}
**A file downloaded with Include secrets is a credential.** Anyone who has it can call the agent. Keep it out of shared drives, tickets and repositories, and deactivate the key on Access & Security if the file leaks.
{% endhint %}

The rest of this page documents the **Native** dialect for the **raw (HTTP)** client, in Sync and Async modes. The raw client runs server-to-server. The **TypeScript SDK** client runs in the browser and is documented in [TypeScript SDK client](https://docs.uptiq.ai/platform/console/agent-builder/deploy/agent-integration/typescript-sdk-client.md).

## Native dialect, raw HTTP client

The **Headless Agent Trigger API** invokes an agent over HTTP — no UI or browser. Use it for backend services, scheduled jobs, or any workflow that starts the agent from your own systems.

* **Base URL:** `<BASE_URL>` · **Format:** JSON

### Authentication

Every request must include exactly one of the following header sets.

<details>

<summary>Option 1 — API Key + Secret (server-to-server)</summary>

Best for backend and service-to-service integrations.

```http
x-api-key: YOUR_AGENT_API_KEY
x-api-key-secret: YOUR_AGENT_API_KEY_SECRET
Content-Type: application/json
```

Create and copy both from **Access & Security**.

</details>

<details>

<summary>Option 2 — Widget Key</summary>

Best for first-party platform integrations.

```http
x-widget-key: YOUR_AGENT_WIDGET_KEY
Content-Type: application/json
```

Create and copy it from **Access & Security**.

</details>

### Trigger an agent

```
POST /agent-executor/1.4/agents/:agentId/trigger
```

Starts a new agent execution or resumes a paused one.

**Path parameters**

| Name      | Type   | Required | Description                                |
| --------- | ------ | -------- | ------------------------------------------ |
| `agentId` | string | Yes      | The unique identifier of the agent to run. |

**Request body** — provide either `message` or `resumeData`; all other fields are optional.

| Field            | Type    | Description                                                                                                                                                                                                                                                                                     |
| ---------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `message`        | string  | The instruction sent to the agent. Required for new executions.                                                                                                                                                                                                                                 |
| `payload`        | object  | Structured data sent alongside `message` for programmatic inputs.                                                                                                                                                                                                                               |
| `version`        | number  | The agent version to run. `0` is the draft. If you leave it out, a new conversation runs the live version, or the draft if nothing is published. See [Which agent version runs](https://docs.uptiq.ai/platform/console/agent-builder/build/runtime-and-versioning.md#which-agent-version-runs). |
| `documents`      | array   | File attachments. See **Document handling**.                                                                                                                                                                                                                                                    |
| `executionId`    | string  | Specific execution ID. Auto-generated if omitted.                                                                                                                                                                                                                                               |
| `executionMode`  | string  | `async` (default) or `sync`. Use `sync` only when you need an immediate response.                                                                                                                                                                                                               |
| `responseFormat` | string  | `Markdown` (default) or `Json`.                                                                                                                                                                                                                                                                 |
| `webhooks`       | array   | Webhook URLs to receive execution updates. See **Webhooks**.                                                                                                                                                                                                                                    |
| `token`          | string  | The caller's identity token, for an agent with [Authentication](https://docs.uptiq.ai/platform/console/agent-builder/deploy/authentication-1.md) on. Optional: a run without it still proceeds, with no authenticated caller.                                                                   |
| `runWithA2A`     | boolean | Call the agent's sub-agents over A2A for this request only. See [Run sub-agents over A2A and choose the agent pool](#run-sub-agents-over-a2a-and-choose-the-agent-pool).                                                                                                                        |
| `poolAgentIds`   | array   | Agent IDs the agent may call for this request only. See [Run sub-agents over A2A and choose the agent pool](#run-sub-agents-over-a2a-and-choose-the-agent-pool).                                                                                                                                |

A follow-up message on an existing `executionId` always runs the version that execution started on.

```bash
curl -X POST "<BASE_URL>/agent-executor/1.4/agents/:agentId/trigger" \
  -H "x-api-key: YOUR_AGENT_API_KEY" \
  -H "x-api-key-secret: YOUR_AGENT_API_KEY_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"message": "Summarize the latest sales report"}'
```

Success response: `{ "executionId": "exec_123" }`

That is an acknowledgement, not an answer — executions default to async. Poll the execution or receive a webhook to turn an `executionId` into a result.

### Run sub-agents over A2A and choose the agent pool

Two optional fields on the trigger request change how one request runs. Neither changes the agent's saved setup. Both are also accepted by `agents.run` in the [Agent SDK](https://docs.uptiq.ai/platform/platform-resources/the-agent-development-sdk.md).

<details>

<summary>runWithA2A: call sub-agents over A2A</summary>

Set `runWithA2A` to `true` and the agent calls its sub-agents over A2A instead of the usual internal hand-off. An assistant calls its delegate agents the same way. A pinned sub-agent version still runs: the exact version you pinned is the one called.

Every agent called this way needs all three of these:

* **A2A turned on.** See [A2A](https://docs.uptiq.ai/platform/console/agent-builder/deploy/authentication.md#a2a) on Access & Security.
* **An active API key.** Turning on A2A creates a key named **A2A** for the agent if it has no active key.
* **Agent executor 1.4 or later.**

The setting is all or nothing. For an assistant it is checked against the assistant's whole enabled pool, so one agent that fails a requirement rejects the request. An external A2A partner agent can't be added to the pool.

Files you attach reach an assistant's delegates as links with the file name and type. An agent can also pass a file to one of its own sub-agents in the call, as a link with the file name and type.

</details>

<details>

<summary>poolAgentIds: choose the agents it may call</summary>

`poolAgentIds` is a list of agent IDs, at least one, with no repeats. For this request it replaces the agent's usual sub-agents, or the assistant's enabled agents. Each agent must be in your workspace or shared with you. A system agent is allowed only if the assistant can call it. The Governance assistant doesn't accept `poolAgentIds`.

</details>

If a check fails, the request is refused before it starts, and the error names the agents involved.

| Status | Error code                                   | Meaning                                                                                            |
| ------ | -------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| `404`  | `POOL_AGENT_NOT_FOUND`                       | An agent in `poolAgentIds` isn't in your workspace, or is a system agent the assistant can't call. |
| `403`  | `POOL_AGENT_ACCESS_DENIED`                   | An agent in `poolAgentIds` isn't shared with you.                                                  |
| `400`  | `POOL_AGENT_IDS_NOT_SUPPORTED`               | You sent `poolAgentIds` to the Governance assistant.                                               |
| `422`  | `SUB_AGENT_A2A_NOT_ENABLED`                  | A called agent doesn't have A2A turned on.                                                         |
| `422`  | `SUB_AGENT_A2A_API_KEY_MISSING`              | A called agent has no active API key.                                                              |
| `422`  | `SUB_AGENT_A2A_EXECUTOR_VERSION_UNSUPPORTED` | A called agent runs an agent executor older than 1.4.                                              |

An empty or repeated `poolAgentIds`, or a `runWithA2A` that isn't a boolean, is refused with a `400` validation error.

{% hint style="warning" %}
**Sharing is checked once, and only for a signed-in user.** When a signed-in user triggers the request, each agent in `poolAgentIds` must be shared with them. A request made with an API key has no user to check against, so the pool is accepted if the agents are in the workspace. A delegate called over A2A runs on its own API key and doesn't check who started the request. Don't use a pool or `runWithA2A` to keep an agent away from a caller.
{% endhint %}

### Document handling

Attaching documents is a two-step process: upload the file, then reference it in the trigger request.

<details>

<summary>Step 1 — Get a signed upload URL</summary>

```
POST /agent-executor/1.4/agents/:agentId/uploads/signed-urls
```

```bash
curl -X POST "<BASE_URL>/agent-executor/1.4/agents/:agentId/uploads/signed-urls" \
  -H "x-widget-key: YOUR_AGENT_WIDGET_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "count": 1 }'
```

| Field         | Type   | Required | Description                                     |
| ------------- | ------ | -------- | ----------------------------------------------- |
| `count`       | number | No       | Number of signed URLs to generate. Default `1`. |
| `executionId` | string | No       | Execution ID to associate the upload with.      |

Response:

```json
{
  "message": "Signed URL generated successfully.",
  "data": [
    { "id": "document-id", "url": "https://storage.googleapis.com/.../uploads/...", "agentId": "agent-id" }
  ]
}
```

`PUT` your file to the returned `url`, then use the `id` when triggering the agent.

{% hint style="warning" %}
The previous endpoint `POST /agent-executor/1.4/agents/:agentId/documents/presigned-url` is **deprecated** and will be removed — migrate to `uploads/signed-urls`.
{% endhint %}

</details>

<details>

<summary>Step 2 — Attach the document to the trigger request</summary>

```bash
curl -X POST "<BASE_URL>/agent-executor/1.4/agents/:agentId/trigger" \
  -H "x-api-key: YOUR_AGENT_API_KEY" \
  -H "x-api-key-secret: YOUR_AGENT_API_KEY_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "Analyze financial risk",
    "documents": [
      { "id": "<document-id>", "fileName": "balance-sheet.pdf", "mimeType": "application/pdf" }
    ]
  }'
```

| Field       | Type   | Description                                                  |
| ----------- | ------ | ------------------------------------------------------------ |
| `id`        | string | Document ID returned from the upload endpoint.               |
| `signedUrl` | string | Alternative to `id` — the signed URL of the uploaded file.   |
| `fileName`  | string | Original filename. Recommended for better agent context.     |
| `mimeType`  | string | MIME type of the file. Recommended for better agent context. |

</details>

### Passing variables and a business ID

Two more fields on the trigger request, alongside `message` and `documents`:

| Field        | Type   | Description                                                                                                                                                                                                                          |
| ------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `uid`        | string | The calling user's ID in your system — the same identity concept as the widget's `user.uid`.                                                                                                                                         |
| `variables`  | object | Values for the agent's variables, referenced as `$agent.{name}`. A passed value replaces the variable's Default Value for that run. Every key must already be declared, or the request is rejected with `AGENT_VARIABLES_NOT_FOUND`. |
| `businessId` | string | Attributes this run to a business or tenant of your own. Accepted on every trigger request.                                                                                                                                          |

Instructions, skill configurations and, on executor version 1.5, MCP server connections reference the `variables` values as `$agent.{name}`. Declare each key under **Agent Config → Secrets & Variables →** [**Variables**](https://docs.uptiq.ai/platform/console/agent-builder/build/secrets-and-variables.md#variables).

```bash
curl -X POST "<BASE_URL>/agent-executor/1.4/agents/:agentId/trigger" \
  -H "x-api-key: YOUR_AGENT_API_KEY" \
  -H "x-api-key-secret: YOUR_AGENT_API_KEY_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "Compare a 15-year and 30-year fixed mortgage.",
    "executionMode": "sync",
    "uid": "user_123",
    "variables": { "customerName": "John", "region": "US" },
    "businessId": "<businessId>"
  }'
```

### Answering a sub-agent's question in a sync call

In sync mode, when one of the agent's sub-agents needs to ask a question or a permission, the call returns that request instead of waiting. Answer it on the same route with the same `executionId`:

* To answer a **question**, send a `message`.
* To answer a **permission**, send `resumeData`.

The answer reaches the sub-agent that asked. If several sub-agents ask at once, their requests come back one at a time, oldest first. A request can be answered once: a second answer to the same request is rejected. Sending the wrong kind of answer for a sub-agent's request returns a `400` validation error.

The call returns `200` with `executionId`, `conversationId` and `result`. For a returned request, `result` holds the question or permission text in `content` and a `subtype` of `question` or `ask_permission`. It also holds `metadata` with the request's `elicitationRequestId`, plus the `questions` for a question.

```json
{
  "executionId": "exec_123",
  "conversationId": "<conversationId>",
  "result": {
    "content": "...",
    "subtype": "question",
    "metadata": { "elicitationRequestId": "<requestId>", "questions": [] }
  }
}
```

The same routing applies to async triggers, the OpenAI-compatible API and A2A. An async trigger that answers a request replies with `{ "executionId", "conversationId" }` only.

### Checking and managing a running execution

Once an execution is triggered, four more endpoints let you check on it or stop it — all under the same `:agentId` path used to trigger it.

<details>

<summary>Check where an execution sits in the queue</summary>

```
GET /agent-executor/1.4/agents/:agentId/executions/:executionId/queue-status
```

Messages sent to the same `executionId` are processed serially — one item shows `Executing`, the rest `Pending`.

```bash
curl "<BASE_URL>/agent-executor/1.4/agents/:agentId/executions/:executionId/queue-status" \
  -H "x-api-key: YOUR_AGENT_API_KEY" \
  -H "x-api-key-secret: YOUR_AGENT_API_KEY_SECRET"
```

Response: `{ "data": [{ "state": "Executing", "content": { "messageId": "<messageId>" } } ] }`

For a **sync** call, the reply instead blocks until done, with the result in `result.content`: `{ "executionId": "exec_123", "result": { "type": "done", "content": "..." } }`.

</details>

<details>

<summary>Cancel a message that is still Pending</summary>

```bash
curl -X DELETE "<BASE_URL>/agent-executor/1.4/agents/:agentId/executions/:executionId/queue/:messageId" \
  -H "x-api-key: YOUR_AGENT_API_KEY" \
  -H "x-api-key-secret: YOUR_AGENT_API_KEY_SECRET"
```

</details>

<details>

<summary>Abort a running execution</summary>

```
POST /agent-executor/1.4/agents/:agentId/executions/:executionId/abort
```

The agent stops and emits a terminal `done` event.

```bash
curl -X POST "<BASE_URL>/agent-executor/1.4/agents/:agentId/executions/:executionId/abort" \
  -H "x-api-key: YOUR_AGENT_API_KEY" \
  -H "x-api-key-secret: YOUR_AGENT_API_KEY_SECRET"
```

</details>

### Listing and inspecting conversations

<details>

<summary>List this agent's conversations</summary>

```
GET /agent-executor/1.4/agents/:agentId/conversations
```

Returns titles and metadata only, not transcripts. Add `?initiatedBy=user_123` to filter to one user's conversations.

```bash
curl "<BASE_URL>/agent-executor/1.4/agents/:agentId/conversations" \
  -H "x-api-key: YOUR_AGENT_API_KEY" \
  -H "x-api-key-secret: YOUR_AGENT_API_KEY_SECRET"
```

</details>

<details>

<summary>Fetch a single conversation's transcript by executionId</summary>

```bash
curl "<BASE_URL>/agent-executor/1.4/agents/:agentId/conversation/:executionId" \
  -H "x-api-key: YOUR_AGENT_API_KEY" \
  -H "x-api-key-secret: YOUR_AGENT_API_KEY_SECRET"
```

</details>

### Webhooks

{% hint style="info" %}
Webhooks in the trigger request are available on **Agent Executor Version 1.2 and onwards**. See [Which features need which version](https://docs.uptiq.ai/platform/platform-resources/agent-executor/versions.md#which-features-need-which-version).
{% endhint %}

To send every run of an agent to the same endpoints without passing them in each request, see [Webhooks](https://docs.uptiq.ai/platform/console/agent-builder/build/webhooks.md) and [Agent Webhooks](https://docs.uptiq.ai/platform/platform-resources/agent-webhooks.md).

Register webhooks in the trigger request to receive real-time updates when an execution completes or needs input. Each URL gets a POST when the run finishes and when the agent pauses to ask a question. In **Async** mode, the **Integrate Agent** panel shows the `webhooks` field in its trigger snippet, with the immediate reply `{ "executionId": "exec_123" }`. The final result goes to your webhook.

```json
{
  "webhooks": [
    { "url": "https://your-service.com/webhook", "metadata": "optional-context-id" }
  ]
}
```

Your endpoint receives:

```json
{
  "executionId": "exec_123",
  "agentId": "<agentId>",
  "conversationId": "<conversationId>",
  "success": true,
  "result": { "message": "Agent response..." },
  "error": null,
  "metadata": "optional-context-id"
}
```

Each webhook entry takes a `url` and `metadata`. The Platform sends the `metadata` back to you with the call. `agentId` and `conversationId` sit next to `executionId` in every webhook payload, whether the run finished, needs an answer, or failed while it was being set up. This tells you which agent sent the call.

By default only the agent you triggered calls your URL. An entry can also set `propagateToSubAgents`. Then every sub-agent the execution starts, and their own sub-agents at any depth, calls the same URL itself when it finishes or asks a question. The parent gets its own call as well. Use `agentId` to tell the calls apart. A sub-agent's call never resumes an agent above its parent.

The call is a single HTTP POST with `Content-Type: application/json`. It times out after 30 seconds. If your endpoint answers with an error or doesn't answer, the Platform logs the failure and does **not** retry. A receiver that was down misses the callback, so poll the execution to recover its result.

<details>

<summary>Verify the webhook signature</summary>

Each webhook includes an `X-Webhook-Signature` header — a hex-encoded RSA-SHA256 signature of the raw JSON body. Verify it against the platform's public key. It is in the **Integrate Agent** specification, under the webhook section, and the same key verifies every callback. The code samples there use `verifyWebhookSignature` from `@uptiqai/agent-sdk`, or `crypto.verify` as below:

```js
const crypto = require('crypto');

function verifyWebhook(rawBody, signatureHex, publicKey) {
  const signature = Buffer.from(signatureHex, 'hex');
  return crypto.verify('RSA-SHA256', Buffer.from(rawBody), publicKey, signature);
}
```

</details>

### Common examples

<details>

<summary>Send structured data with a message</summary>

```bash
curl -X POST "<BASE_URL>/agent-executor/1.4/agents/:agentId/trigger" \
  -H "x-api-key: YOUR_AGENT_API_KEY" \
  -H "x-api-key-secret: YOUR_AGENT_API_KEY_SECRET" \
  -H "Content-Type: application/json" \
  -d '{ "message": "Generate quarterly report", "payload": { "quarter": "Q4", "year": 2024 } }'
```

</details>

<details>

<summary>Resume a paused execution</summary>

```bash
curl -X POST "<BASE_URL>/agent-executor/1.4/agents/:agentId/trigger" \
  -H "x-api-key: YOUR_AGENT_API_KEY" \
  -H "x-api-key-secret: YOUR_AGENT_API_KEY_SECRET" \
  -H "Content-Type: application/json" \
  -d '{ "executionId": "exec_123", "resumeData": { "lastStep": "analysis" } }'
```

</details>

<details>

<summary>Pin a specific reasoning model (advanced)</summary>

By default the platform picks the reasoning model. To override:

```json
{ "message": "Analyze this contract", "agentStrategy": { "reasoningModelId": "your-model-id" } }
```

</details>

### Error responses

| Status | Meaning         | Example                                                          |
| ------ | --------------- | ---------------------------------------------------------------- |
| `400`  | Invalid request | `{ "error": "Message or resume data is required" }`              |
| `401`  | Bad credentials | `{ "error": "Invalid or missing agent API key" }`                |
| `403`  | Forbidden       | `{ "message": "You're not authorized to perform this action." }` |
| `500`  | Server error    | `{ "message": "Something went wrong. Please try again later." }` |

{% hint style="info" %}
Executions default to **async** — use `sync` only when you must block on the result. The trigger endpoint is **not idempotent**: each call starts a new execution unless you pass an existing `executionId`.
{% endhint %}

## Related

* [Integrate Agent](https://docs.uptiq.ai/platform/console/agent-builder/deploy/agent-integration.md)

***

{% columns %}
{% column width="83.33333333333334%" %}

<p align="right"><em>Maintained by</em> <mark style="color:green;">Abhishek Paul</mark><br><code>AI-assisted, human-approved</code></p>
{% endcolumn %}

{% column width="16.666666666666664%" %}

<div align="left"><img src="https://1326225582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0qmgQjJ5aArDTj2ACFHG%2Fuploads%2Fgit-blob-d034645b4f8f8ee661985f5306b60ded3289653c%2Fmaintainer-abhishek-paul.png?alt=media" alt="" width="60"></div>
{% endcolumn %}
{% endcolumns %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.uptiq.ai/platform/console/agent-builder/deploy/agent-integration/agent-api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
