---
updatedAt: 2026-04-21T09:18:29.000Z
agentTools:
  projectIndex: https://docs.esputnik.com/llms.txt
---

# Search for SMS messages

The method is used to search for SMS messages using a part of their names or a tag.
 By default, a rate limit of 500 requests per hour applies. <br/>The method returns a maximum of 500 messages per request. <br/>The <b>TotalCount</b> header contains the number of messages returned by the query.<br/>

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "esputnik.com",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://esputnik.com"
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "tags": [
    {
      "name": "Messages"
    }
  ],
  "paths": {
    "/api/v1/messages/sms": {
      "get": {
        "tags": [
          "Messages"
        ],
        "summary": "Search for SMS messages",
        "description": "The method is used to search for SMS messages using a part of their names or a tag.\n By default, a rate limit of 500 requests per hour applies. <br/>The method returns a maximum of 500 messages per request. <br/>The <b>TotalCount</b> header contains the number of messages returned by the query.<br/>",
        "operationId": "searchSms",
        "parameters": [
          {
            "name": "search",
            "in": "query",
            "description": "Search condition (a part of the message name or a tag)",
            "schema": {
              "type": "string"
            },
            "example": "New arrivals"
          },
          {
            "name": "startindex",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "maxrows",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 500
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json; charset=UTF-8": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BaseSmsMessage"
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests:<br><ul><li>More than 500 requests per 1 hour.</li></ul>"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BaseSmsMessage": {
        "required": [
          "from",
          "name",
          "text"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Message ID.",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Message name."
          },
          "languageCode": {
            "type": "string",
            "description": "Language code."
          },
          "tags": {
            "type": "array",
            "description": "List of tags.",
            "items": {
              "type": "string",
              "description": "List of tags."
            }
          },
          "subscriptionsKeys": {
            "type": "array",
            "description": "Subscription categories keys, assigned to a message.",
            "items": {
              "type": "string",
              "description": "Subscription categories keys, assigned to a message."
            }
          },
          "languages": {
            "type": "array",
            "description": "An array with the language codes for multilingual messages. Available for the GET method only.",
            "items": {
              "type": "string",
              "description": "An array with the language codes for multilingual messages. Available for the GET method only."
            }
          },
          "from": {
            "type": "string",
            "description": "Sender name."
          },
          "text": {
            "type": "string",
            "description": "Message text."
          },
          "trackUrls": {
            "type": "boolean",
            "description": "The parameter determines whether to track links in a message or not. The default value is ‘false’."
          },
          "translations": {
            "type": "array",
            "description": "An array with translations to other languages. Available for the GET method only.",
            "items": {
              "$ref": "#/components/schemas/SmsMessage"
            }
          }
        }
      },
      "SmsMessage": {
        "required": [
          "from",
          "name",
          "text"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Message ID.",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Message name."
          },
          "languageCode": {
            "type": "string",
            "description": "Language code."
          },
          "tags": {
            "type": "array",
            "description": "List of tags.",
            "items": {
              "type": "string",
              "description": "List of tags."
            }
          },
          "subscriptionsKeys": {
            "type": "array",
            "description": "Subscription categories keys, assigned to a message.",
            "items": {
              "type": "string",
              "description": "Subscription categories keys, assigned to a message."
            }
          },
          "languages": {
            "type": "array",
            "description": "An array with the language codes for multilingual messages. Available for the GET method only.",
            "items": {
              "type": "string",
              "description": "An array with the language codes for multilingual messages. Available for the GET method only."
            }
          },
          "from": {
            "type": "string",
            "description": "Sender name."
          },
          "text": {
            "type": "string",
            "description": "Message text."
          },
          "trackUrls": {
            "type": "boolean",
            "description": "The parameter determines whether to track links in a message or not. The default value is ‘false’."
          }
        },
        "description": "An array with translations to other languages. Available for the GET method only."
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  }
}
```