> ## Documentation Index
> Fetch the complete documentation index at: https://docs.60db.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Agent

> Get one agent and its phone lines

Get one agent, with the phone lines that call from it. The webhook signing secret is not returned here. Use [Rotate webhook secret](https://docs.60db.ai/api-reference/agents/rotate-webhook-signing.md) to issue a new one.

## Request

### Headers

**Authorization** `string` *required*

Bearer token with your API key (scope `agents`)

### Path

**agentId** `string` *required*

The agent `id` (UUID)

## Response

**200 OK**. The agent fields from [Create agent](https://docs.60db.ai/api-reference/agents/create-agent.md), plus `phone_lines`.

```json theme={null}
{
  "success": true,
  "data": {
    "id": "9c2e1d7a-0b3f-4e6a-8f1d-5a7b9c0e2d44",
    "name": "Front desk",
    "script": "You are the receptionist for Juniper Kitchen. Keep replies short.",
    "greeting": "Hello, Juniper Kitchen. How can I help?",
    "voice_id": "YOUR_VOICE_ID",
    "gender": null,
    "listen_languages": ["hi", "en"],
    "speak_languages": [],
    "emotion": true,
    "tools": [],
    "tool_webhook_url": null,
    "event_webhook_url": null,
    "knowledge_collection_id": null,
    "call_defaults": { "max_duration_secs": 300, "record": true },
    "created_at": "2026-11-03T10:00:00.000Z",
    "updated_at": "2026-11-03T10:00:00.000Z",
    "phone_lines": [
      {
        "id": "2d8e4f10-6a3b-4c9d-8e7f-0b1a2c3d4e5f",
        "kind": "sixtydb",
        "name": "+919876543210",
        "caller_id": "+919876543210",
        "inbound_number": null,
        "agent_id": "9c2e1d7a-0b3f-4e6a-8f1d-5a7b9c0e2d44",
        "agent_name": "Front desk",
        "created_at": "2026-11-03T10:05:00.000Z",
        "updated_at": "2026-11-03T10:05:00.000Z"
      }
    ]
  }
}
```

## Errors

| Status | Code | Meaning |
| - | - | - |
| 404 | `AGENT_NOT_FOUND` | No agent with this ID in your workspace (also returned for a non-UUID ID) |

## Example

```bash cURL theme={null}
curl https://api.60db.ai/agents/AGENT_ID \
  -H "Authorization: Bearer your-api-key"
```

```javascript JavaScript theme={null}
const agent = await client.agents.get(agentId);
```

```python Python theme={null}
agent = client.agents.get(agent_id)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.