Catalog
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_centsis the pricePOST /orderslocks when you pass thatchannel_id— normally exactly what you are charged.rankis our recommended order within each service (1= best).qualityis a level from recent delivery results:high,medium,low, orunknown(not enough recent orders yet). It is informational, not a guarantee.channel_idis 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 returns422 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
QUERY PARAMETERS
| Name | Type | Required | Description |
|---|---|---|---|
| country_code | string | Required | ISO 3166-1 alpha-2, e.g. US. |
| service_code | string | Optional | Only return channels for this service, e.g. whatsapp. |
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.
{
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
| Status | Code | When |
|---|---|---|
| 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.