Bitcall logoBitcall API
Add your Key ID and Secret to send test requests.

OTP API Reference

Every OTP endpoint, grouped by what it does. Requests go through the gateway and are authenticated with your key id and secret — see Authentication.

Activations

List activationsget

Returns your activations, newest first, optionally filtered by status.

Receive SMSpost

Rents a number for a service and country, and starts waiting for its code. The rental is charged on success and the activation begins in `waiting`. `serviceId` identifies the offer to rent and comes from [GET /v1/otp/services](/openapi/otp/catalog/listOtpServices). It is opaque: send it back as published.

Get an activationget

Returns one activation, including the received code once it arrives. Poll this after renting a number.

Cancel an activationpost

Releases a number before its code arrives and refunds the rental while the activation is still cancellable. Immediately after purchase, cancellation may be temporarily unavailable while the provider enforces a short minimum-hold: during this window the call returns 409 CANCELLATION_NOT_AVAILABLE_YET — wait a short while, then retry. The block lifts on its own, nothing is charged for the refused attempt, and a successful cancellation still refunds the rental. Once it is no longer cancellable — already cancelled, or a code has already arrived — the call returns 409 CONFLICT and nothing changes.

Ask for the code againpost

Requests another send of the code on the same number. Subject to a cooldown, and chargeable where the activation carries a resend price.

Reactivate an activationpost

Reopens an expired or cancelled activation on the same number so it can receive a further code. Chargeable. Only available for a short window after the activation ends, on supported number pools — the `canReactivate` flag on an activation is a best-effort hint from its state, so reactivation can still be refused (409 REACTIVATION_UNAVAILABLE) when the provider window has closed; start a new activation in that case.