DogeSMS API

API Overviewv2026.11

Buy temporary phone numbers and read SMS verification codes from your own code.

.md

Use the DogeSMS API to buy a temporary phone number for a service and country, then read the SMS verification code it receives — all from your own server.

New here? Follow the Quick start: one API key and four requests get you from zero to a code.

Working with an AI assistant? Connect it to DogeSMS and let it check prices, buy after you confirm, and read the code back.

Every page has a Copy page as Markdown button, and the whole site is available to tools as /llms.txt and /llms-full.txt.


Order flow

This is the request order for buying a number and reading its code.

  1. Authenticate every request with your API key: Authentication.
  2. Find a service and country, and the price you will lock: GET /catalog/prices.
  3. Create an order with an Idempotency-Key: POST /orders.
  4. Get the number and the code by polling GET /orders, or through webhooks.
  5. No code yet? Cancel for a refund after 2 minutes: POST /orders/{id}/cancel.

Base URL

https://api.dogesms.com/v1

Response envelope

Every response is wrapped in an envelope carrying a request_id (also echoed in the X-Request-Id header — include it when contacting support):

{ "data": { ... }, "request_id": "req_..." }          // success
{ "error": { "code": "...", "message": "..." }, "request_id": "req_..." }  // error

Authentication failures emitted before request-id middleware use a flat shape without request_id:

{ "error": "Missing API Key", "code": "API_KEY_MISSING" }

Access-gate and rate-limit errors use the standard envelope. Branch on the code field in both shapes; it is stable across releases.

Amounts

All money amounts are integer cents (USD). 250 means $2.50.