---
title: "Assign Phone To Agent"
method: POST
path: "/api/v1/admin/livekit/phone-assignments"
tags: ["livekit-phone-admin"]
---

# Assign Phone To Agent

`POST /api/v1/admin/livekit/phone-assignments`

Assign a phone number to a LiveKit voice agent.

Creates a dispatch rule in LiveKit that routes inbound calls
to the specified agent.

The phone number must already exist in the database (imported via
the phone number import flow).

## Request body

- PhoneAssignmentCreate — Request to assign a phone number to an agent.
  - `phone_number` string, required — Phone number in E.164 format (e.g., +15105550100)
  - `voice_agent_id` string, uuid, required — Voice agent UUID to handle inbound calls

## Response `200`

Successful Response

- PhoneAssignmentRead — Response for phone assignment.
  - `phone_number` string, required
  - `tenant_id` string, uuid, nullable, required
  - `voice_agent_id` string, uuid, nullable, required
  - `dispatch_rule_id` string, nullable, required
  - `voice_platform` string, nullable, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/getanana/apis/cleon-api.md) · [All operations](https://skmtc.dev/getanana/apis/cleon-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getanana/cleon-api/revisions/c0f54348e251/schema)
