---
updatedAt: 2026-06-15T14:41:25.000Z
agentTools:
  projectIndex: https://developers.dexatel.com/llms.txt
---

# Get Single Message

<br />

<TitleSetter title="Get Single Message | Dexatel API" />

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Contacts and Messaging",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.dexatel.com",
      "description": "Server base url"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/v1/messages/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/id"
        }
      ],
      "get": {
        "tags": [
          "Messages"
        ],
        "summary": "Get Single Message",
        "operationId": "get_message",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessageResponseWrapperDto"
                }
              }
            }
          },
          "404": {
            "description": "<p><strong>Not Found:</strong></p> <table> <tr> <th>Code</th> <th>Message</th> </tr> <tr> <td>1501</td> <td>Message is not found</td> </tr> </table>"
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "id": {
        "in": "path",
        "name": "id",
        "required": true,
        "schema": {
          "type": "string",
          "description": "Unique identifier of the resource - {id}"
        }
      }
    },
    "schemas": {
      "EnumChannels": {
        "type": "string",
        "enum": [
          "SMS",
          "VIBER",
          "WHATSAPP"
        ]
      },
      "EnumChannelsPlusVoice": {
        "allOf": [
          {
            "$ref": "#/components/schemas/EnumChannels"
          }
        ]
      },
      "EnumMessageStatuses": {
        "type": "string",
        "enum": [
          "delivered",
          "sent",
          "failed",
          "enroute",
          "read",
          "rejected",
          "unsubscribed",
          "expired",
          "blocked"
        ]
      },
      "MessageResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Unique identifier of the message"
          },
          "account_id": {
            "type": "string",
            "format": "uuid",
            "description": "Unique identifier of the account"
          },
          "from": {
            "type": "string",
            "description": "Identifier of the sender(name)"
          },
          "to": {
            "type": "string",
            "description": "Recipients phone number"
          },
          "channel": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EnumChannelsPlusVoice"
              },
              {
                "description": "Delivery channel of the message.\nEnumeration values [SMS, VIBER, WHATSAPP]"
              }
            ]
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EnumMessageStatuses"
              },
              {
                "description": "Message status. Enumeration values [delivered, sent, failed, enroute, read, rejected, unsubscribed, expired, blocked]"
              }
            ]
          },
          "text": {
            "type": "string",
            "description": "Text of the message"
          },
          "button": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "description": "Button type of the message"
              },
              "text": {
                "type": "string",
                "description": "Button text of the message"
              },
              "value": {
                "type": "string",
                "description": "Button value of the message"
              },
              "button_variables": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Dynamic URL segment values for call_to_action buttons."
              }
            }
          },
          "create_date": {
            "type": "string",
            "format": "date-time",
            "description": "Creation date of the message in UTC, formatted as yyyy-mm-dd hh:mm:ss"
          },
          "update_date": {
            "type": "string",
            "format": "date-time",
            "description": "Update date of the message in UTC, formatted as yyyy-mm-dd hh:mm:ss"
          },
          "segment_count": {
            "type": "integer",
            "format": "int32",
            "description": "The count of message parts for [SMS] Channel, other channel messages are always in 1 segment"
          },
          "encoding": {
            "type": "string",
            "description": "Encoding of the [SMS] message. Enumeration Values [GSM-7, UCS-2]"
          },
          "country": {
            "type": "string",
            "description": "ISO code of the recipients number"
          }
        }
      },
      "MessageResponseWrapperDto": {
        "type": "object",
        "properties": {
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MessageResponseDto"
              },
              {
                "properties": {
                  "price": {
                    "type": "number",
                    "description": "Amount charged for the message in accounts currency"
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "links": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/LinksSelf"
                      },
                      {
                        "$ref": "#/components/schemas/LinksAccount"
                      }
                    ]
                  }
                }
              }
            ]
          }
        }
      },
      "LinksSelf": {
        "type": "object",
        "properties": {
          "self": {
            "type": "string",
            "description": "URL of the requested resource"
          }
        }
      },
      "LinksAccount": {
        "type": "object",
        "properties": {
          "account": {
            "type": "string",
            "description": "URL of the account"
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Dexatel-Key"
      }
    }
  }
}
```