Catalog
.md

List channels for one country

GET/v1/catalog/channels

One row per channel you can order in the given country. A channel is one specific source of numbers for a service; ordering with its channel_id buys only from that channel, at its price_cents.

  • price_cents is the price POST /orders locks when you pass that channel_id — normally exactly what you are charged.
  • rank is our recommended order within each service (1 = best).
  • quality is a level from recent delivery results: high, medium, low, or unknown (not enough recent orders yet). It is informational, not a guarantee.
  • channel_id is stable: a channel keeps its ID, and an ID is never reused or pointed at another channel, so you can store it. When a channel is delisted it disappears from this list and ordering with its ID returns 422 CHANNEL_UNAVAILABLE.

Pass service_code to get a single service. An unknown country returns 404 COUNTRY_NOT_FOUND; an unknown service returns an empty list.

Cached — response carries Cache-Control: private, max-age=60. Send Accept-Encoding: gzip: large countries return thousands of rows. Counts toward the same price query limits as GET /catalog/prices.

REQUEST
API Serverhttps://api.dogesms.com/v1
AuthenticationAuthorization: Bearer sk_live_… or X-API-Key
QUERY PARAMETERS
NameTypeRequiredDescription
country_codestringRequiredISO 3166-1 alpha-2, e.g. US.
service_codestringOptionalOnly return channels for this service, e.g. whatsapp.
Request examples
curl "https://api.dogesms.com/v1/catalog/channels?country_code=US" \
  -H "Authorization: Bearer sk_live_…"
RESPONSE

Channel list, grouped by service and ordered by rank.

application/json
OBJECT
{
data: [{
service_code: string
channel_id: string
Stable channel ID; pass it as channel_id to POST /orders. Never reused or re-pointed.
price_cents: integer
Price POST /orders locks for this channel right now (cents). Normally the amount charged.
tier: enum
Allowed: standard | premium
available_count: enum
Stock level, meaning "at least this many". Not an exact count.
Allowed: 0 | 10 | 50 | 200 | 500
quality: enum
Level from recent delivery results; unknown when there are not enough recent orders. Informational, not a guarantee.
Allowed: high | medium | low | unknown
rank: integer
Recommended order within the service, 1 = best.
}]
request_id: string
}
ERROR CODES
StatusCodeWhen
400
INVALID_REQUEST
INVALID_REQUEST — missing or malformed country_code.
401
API_KEY_MISSING
API_KEY_INVALID_FORMAT
API_KEY_INVALID
API_KEY_REVOKED
Missing or invalid API key (API_KEY_MISSING, API_KEY_INVALID_FORMAT, API_KEY_INVALID, API_KEY_REVOKED). Emitted by the auth layer before the handler — flat shape, no request_id.
403
ACCOUNT_BANNED
EMAIL_NOT_VERIFIED
ACCOUNT_NOT_ACTIVE
Key is valid but the account is not eligible (ACCOUNT_BANNED, EMAIL_NOT_VERIFIED, ACCOUNT_NOT_ACTIVE). Emitted by the auth layer — flat shape.
404
COUNTRY_NOT_FOUND
COUNTRY_NOT_FOUND.
429
PRICE_RATE_LIMITED
PRICE_RATE_LIMITED — cache responses and retry after the returned reset time.

Branch on code, not on the message. Full list: Errors.