Skip to main content
PUT
/
messaging
/
rcs
/
test_number_invite
/
{id}
/
{phone_number}
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const response = await client.messaging.rcs.inviteTestNumber('phone_number', { id: 'id' });

console.log(response.data);
{
  "data": {
    "record_type": "rcs.test_number_invite",
    "agent_id": "TestAgent",
    "phone_number": "+13125551234",
    "status": "PENDING"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

RCS agent ID

phone_number
string
required

Phone number in E164 format to invite for testing

Response

Test number successfully invited to RCS agent

data
object
required