Endpoint

GET /messages/:record_id

Request Parameters

Path Parameters

  • record_id
    string required

    The unique message detail record identifier (MDR ID) of any message. When entering the MDR ID, the number should include the mdr1- preface.

Response Format

On success, the HTTP status code in the response header is 200 OK and the response body contains the message object. On error, the header status code is an error code and the response body contains an error object.
  • data

    Object composed of attributes, type, and id.

  • attributes

    Object composed of the following:

    • body - The content of the sent message.

    • direction - The direction of the message. For a sent message, this is outbound. For a received message this is inbound.

    • amount_nanodollars - The cost of the message in nanodollars. The displayed nanodollars amount is the USD amount_display value multiplied by 1,000,000,000 (one billion) for a corresponding whole number.