---
title: "Add an RCS agent test device"
method: POST
path: "/rcs/agents/{id}/test_devices"
tags: ["RCS Agents"]
---

# Add an RCS agent test device

`POST /rcs/agents/{id}/test_devices`

## Request

- Base URL: `https://api.telnyx.com/v2`
- URL: `https://api.telnyx.com/v2/rcs/agents/{id}/test_devices`
- Auth: HTTP bearer

Adds an RCS-capable test number after provider agent creation. Repeating the request for a number already attached to the agent returns the existing test device.

## Path parameters

- `id` string, uuid, required

## Request body

- TestDeviceCreateRequest
  - `phone_number` string, required

## Response `201`

The test device was added or already existed.

- TestDeviceResponse
  - `test_device_id` string, uuid, required
  - `phone_number` string, required
  - `invite_status` 'PENDING' | 'ACCEPTED' | 'DECLINED', required

## Other responses

- `401`: The request is not authenticated.
- `404`: The resource does not exist, is not owned by the organization, or the provider does not support the requested capability.
- `409`: The operation is not allowed in the current lifecycle state or the idempotency key was used for a different request.
- `422`: The request body or parameters failed validation.
- `502`: The RCS provider rejected or could not complete the request.

## Changes

- **2026-10-15** `a72569d69430`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/team-telnyx/apis/telnyx-api/changes/rcs/agents/:id/test_devices/post.md)

---

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