---
updatedAt: 2025-07-15T16:26:23.000Z
agentTools:
  projectIndex: https://developers.kaleyra.io/llms.txt
---

# Send SMS using XML

You can send bulk message using XML. To send marketing messages use "type" value as "MKT". To send transactional messages use "type" value as "TXN".To send otp messages use "type" value as "OTP". To send SMS to multiple numbers use Comma separated values in "to". **Note**: Select the base URL by clicking the arrow next to the Base URL (right pane).

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Kaleyra.io SMS APIs",
    "description": "kaleyra.io SMS API collections.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "api.in.kaleyra.io"
    },
    {
      "url": "api.ap.kaleyra.io"
    },
    {
      "url": "api.eu.kaleyra.io"
    }
  ],
  "tags": [
    {
      "name": "Bulk SMS APIs"
    }
  ],
  "paths": {
    "/v1/{sid}/messages/xml": {
      "post": {
        "tags": [
          "Bulk SMS APIs"
        ],
        "summary": "Send SMS using XML",
        "description": "To send marketing messages use \"type\" value as \"MKT\".\nTo send transactional messages use \"type\" value as \"TXN\".\nTo send otp messages use \"type\" value as \"OTP\".\nTo send SMS to multiple numbers use Comma separated values in \"to\"",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {
                "type": "string",
                "example": "\" <api>\\r\\n     <channel>sms</channel>\\r\\n     <from>{{sender_id}}</from>\\r\\n     <body>{{body}}</body>\\r\\n     <sms>\\r\\n         <to>{{to}}</to>\\r\\n         <body>{{body}}</body>\\r\\n     </sms>\\r\\n     <sms>\\r\\n         <to>{{to}}</to>\\r\\n     </sms>\\r\\n </api>\\r\\n\""
              }
            }
          }
        },
        "parameters": [
          {
            "name": "api-key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "API Key generated by kaleyra.io. Example - Ac4XXXXX21f",
            "example": "{{api-key}}"
          },
          {
            "name": "Content-Type",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The format in which the data is sent.",
            "example": "application/xml"
          },
          {
            "name": "sid",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```