Rentals
.md

List rental plans

GET/v1/rentals/plans

Every rentable combination of country, service, duration and tier with its price. service_code: null means the plan accepts any service except those listed in its excluded_service_codes. Use the returned duration_days when creating a rental — valid durations are data-driven, not fixed. The same country / service / duration may appear twice with different tier values (standard and premium); pass the tier you want when creating a rental.

REQUEST
API Serverhttps://api.dogesms.com/v1
AuthenticationAuthorization: Bearer sk_live_… or X-API-Key
Request examples
curl "https://api.dogesms.com/v1/rentals/plans" \
  -H "Authorization: Bearer sk_live_…"
RESPONSE

Rental plans.

application/json
OBJECT
{
data: [{
country_code: stringnull
service_code: stringnull
null = any service.
duration_days: integer
tier: enum
Quality tier. premium plans (dedicated real-SIM numbers with higher delivery rates) are priced separately from standard ones for the same country / service / duration.
Allowed: standard | premium
price_cents: integer
original_price_cents: integer
Strike-through price during a promotion; present only when higher than price_cents.
currency: string
excluded_service_codes: [string]
Only on plans with service_code: null. Services that cannot be rented through this plan; present only when non-empty.
}]
request_id: string
}
ERROR CODES
StatusCodeWhen
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.

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