# Text Agents

Text agents are now part of the unified /agents endpoint. Use GET /agents?type=text to list text agents. See the Agents resource group for full documentation.

**Base URL:** `https://api.trustpager.com/functions/v1/api/v1`

## Endpoints

### GET /agents?type=text

List all text agents. Use the unified /agents endpoint with type=text.

**Scopes:** `voice-agents:read` — [full detail](./text-agents/get-agents-type-text.md)

### GET /agents/:id

Retrieve a text agent. Auto-detects type.

**Scopes:** `voice-agents:read` — [full detail](./text-agents/get-agents-id.md)

### POST /agents

Create a text agent. Include "type": "text" and "name" in the request body.

**Scopes:** `voice-agents:write` — [full detail](./text-agents/post-agents.md)

### PATCH /agents/:id

Update a text agent. Auto-detects type.

**Scopes:** `voice-agents:write` — [full detail](./text-agents/patch-agents-id.md)

### DELETE /agents/:id

Delete a text agent. Auto-detects type.

**Scopes:** `voice-agents:write` — [full detail](./text-agents/delete-agents-id.md)

### GET /agents/:id/responses

List responses generated by a text agent.

**Scopes:** `voice-agents:read` — [full detail](./text-agents/get-agents-id-responses.md)
