---
title: "Link Telnyx agent to run"
method: POST
path: "/ai/missions/{mission_id}/runs/{run_id}/telnyx-agents"
tags: ["Missions"]
---

# Link Telnyx agent to run

`POST /ai/missions/{mission_id}/runs/{run_id}/telnyx-agents`

## Request

- Base URL: `https://api.telnyx.com/v2`
- URL: `https://api.telnyx.com/v2/ai/missions/{mission_id}/runs/{run_id}/telnyx-agents`
- Auth: HTTP bearer

Link a Telnyx AI agent (voice/messaging) to a run

## Path parameters

- `mission_id` string, uuid, required
- `run_id` string, uuid, required

## Request body

- LinkTelnyxAgentRequest
  - `telnyx_agent_id` string, required: The Telnyx AI agent ID to link

## Response `201`

Successful Response

- TelnyxAgentResponse
  - `data` TelnyxAgentData, required
    - `run_id` string, required
    - `telnyx_agent_id` string, required
    - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/team-telnyx/apis/telnyx-api-2.md) - [All operations](https://skmtc.dev/team-telnyx/apis/telnyx-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/team-telnyx/apis/telnyx-api-2/revisions/f82938f53ff4?raw)
