Rentals
.md

Accept the rental terms of service

POST/v1/rentals/tos-accept

Rentals require accepting the rental terms once per account (same record the dashboard uses). Idempotent — calling it again is a no-op. Until accepted, POST /rentals answers 412 RENTAL_TOS_NOT_ACCEPTED.

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

Accepted (or already accepted).

application/json
OBJECT
{
data: {
accepted: boolean
Allowed: true
}
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.