Skip to main content
POST
Outbound SMS is not enabled

Authorizations

Authorization
string
header
required

AgentLine API key. Get one via the email OTP flow (POST /v1/auth/otp then POST /v1/auth/verify). Pass as: Authorization: Bearer al_live_... (legacy sk_live_... still works).

Body

application/json

Request body for POST /v1/messages. Outbound SMS is not enabled for agents and is not exposed on MCP.

agent_id
string
required

Agent id. Outbound SMS is not enabled for agents.

to_number
string
required

E.164 destination. Outbound SMS is not enabled for agents.

body
string
required

Message text. Outbound SMS is not enabled for agents.

media_url
string | null

Media URL. Outbound MMS is not enabled for agents.

from_number_id
string | null

Phone number id. Outbound SMS is not enabled for agents.

Response

Successful Response