Send a plain-text test message to a tester
POST
/agents/{agent_id}/testers/{phone_number}/send-test
x-api-key
Sends a hard-coded plain-text test message to a registered tester of the agent via Google RBM and returns the generated `message_id`. The tester must already be registered for the agent (POST /agents/{agent_id}/testers). Secured by an x-api-key.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
x-api-key |
header | string | yes | The relay API key (x-api-key header). |
agent_id |
path | string | yes | The rcs-relay agent identifier (ULID). |
phone_number |
path | string | yes | E.164 tester phone number. |
Responses
| Status | Description |
|---|---|
200 |
The test message was accepted for delivery. |
401 |
Missing or invalid API key. |
404 |
Agent or tester not found. |
422 |
The phone_number path segment is not a valid E.164 number, or the agent is not persisted to Google yet — the pre-persist guard returns `{"error": "agent not persisted to Google"}` before any Google send. |
502 |
Google RBM send failed. |
200 example
{
"message_id": "11111111-2222-3333-4444-555555555555",
"http_status": 200
}