Endpoint

POST /messages

Request Parameters

Body Parameters

  • to
    string required

    Valid phone number that you're sending the message to. This number must be in E.164 format. e.g., 12065551234

  • from
    string required

    Flowroute phone number that you're sending the message from. This must be a number that you own in your Flowroute account in E.164 format. e.g., 12065551234

  • body
    string required

    The content of the message to deliver. Depending on the length of your message, it may be broken into multiple fragments which will be reassembled on the receiver's handset.Read this article for specific information on message length and concatenation.

Response Format

On success, the HTTP status code in the response header is 200 OK and the response body contains the message record ID with mdr1 prefix. On error, the header status code is an error code and the response body contains an error object.