List services
The country parameter is optional. Each result contains an ID, country, name, customer price and currency.
https://trustservice.io/api/v1/services?country=US
Use the API to list services, create an order, check for an SMS, cancel a waiting order and read your balance. Enable API access in your account and send the key in a request header, not in the URL.
API v1 returns JSON and allows up to 60 requests per minute for each user.
X-API-Key: YOUR_API_KEY
Authorization: Bearer YOUR_API_KEY
The country parameter is optional. Each result contains an ID, country, name, customer price and currency.
https://trustservice.io/api/v1/services?country=US
TrustService kiest automatisch het beste beschikbare nummer voor je aanvraag. Als de eerste optie niet beschikbaar is, controleert het systeem direct de volgende tegen dezelfde getoonde prijs. Je hoeft de bestelling niet opnieuw te plaatsen.
Content-Type: application/json
{"service_id": 123}
Possible statuses are waiting, completed and closed. After an SMS arrives, the message field contains its text.
https://trustservice.io/api/v1/orders/{order_id}
https://trustservice.io/api/v1/orders/{order_id}/cancel
https://trustservice.io/api/v1/balance
The API uses standard HTTP codes: 401 invalid or disabled key, 402 insufficient balance, 404 order not found, 409 order or cancellation failed, 422 invalid service, and 429 rate limit exceeded.