{
  "opencollection": "1.0.0",
  "info": {
    "name": "Telnyx Access Tokens Messages API",
    "version": "2.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Messages",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Send a message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.telnyx.com/v2/messages",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Send a message with a Phone Number, Alphanumeric Sender ID, Short Code or Number Pool.\n\nThis endpoint allows you to send a message with any messaging resource.\nCurrent messaging resources include: long-code, short-code, number-pool, and\nalphanumeric-sender-id.\n"
        },
        {
          "info": {
            "name": "Send a message using an alphanumeric sender ID",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.telnyx.com/v2/messages/alphanumeric_sender_id",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Send an SMS message using an alphanumeric sender ID. This is SMS only."
        },
        {
          "info": {
            "name": "Retrieve group MMS messages",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.telnyx.com/v2/messages/group/:message_id",
            "params": [
              {
                "name": "message_id",
                "value": "",
                "type": "path",
                "description": "The group message ID."
              }
            ]
          },
          "docs": "Retrieve all messages in a group MMS conversation by the group message ID."
        },
        {
          "info": {
            "name": "Send a group MMS message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.telnyx.com/v2/messages/group_mms",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Send a group MMS message"
        },
        {
          "info": {
            "name": "Send a long code message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.telnyx.com/v2/messages/long_code",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Send a long code message"
        },
        {
          "info": {
            "name": "Send a message using number pool",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.telnyx.com/v2/messages/number_pool",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Send a message using number pool"
        },
        {
          "info": {
            "name": "Schedule a message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.telnyx.com/v2/messages/schedule",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Schedule a message with a Phone Number, Alphanumeric Sender ID, Short Code or Number Pool.\n\nThis endpoint allows you to schedule a message with any messaging resource.\nCurrent messaging resources include: long-code, short-code, number-pool, and\nalphanumeric-sender-id.\n"
        },
        {
          "info": {
            "name": "Send a short code message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.telnyx.com/v2/messages/short_code",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Send a short code message"
        },
        {
          "info": {
            "name": "Retrieve a message",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.telnyx.com/v2/messages/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The id of the message"
              }
            ]
          },
          "docs": "Note: This API endpoint can only retrieve messages that are no older than 10 days since their creation. If you require messages older than this, please generate an [MDR report.](https://developers.telnyx.com/api-reference/mdr-usage-reports/create-mdr-usage-report)"
        },
        {
          "info": {
            "name": "Cancel a scheduled message",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.telnyx.com/v2/messages/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The id of the message to cancel"
              }
            ]
          },
          "docs": "Cancel a scheduled message that has not yet been sent. Only messages with `status=scheduled` and `send_at` more than a minute from now can be cancelled."
        }
      ]
    }
  ],
  "bundled": true
}