Messages

Send Message

Send an outbound SMS message from an AI agent's phone number.

post/v1/messages

Request

  • Base URL: https://api.agentline.cloud
  • URL: https://api.agentline.cloud/v1/messages
  • Auth: HTTP bearer

Request body

agent_idstring required

ID of the AI agent sending the SMS (e.g. 'agt_abc123')

to_numberstring required

Destination phone number in E.164 format (e.g. '+12125551234')

bodystring required

SMS message text content

media_urlstring nullable

URL of media to attach (MMS)

from_number_idstring nullable

Specific phone number ID to send from; defaults to the agent's assigned number

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.