API Dokümantasyonu
Harici sistemlerinizden Bearer token ile güvenli entegrasyon. Panel oturumu yerine API anahtarı kullanın.
1. API anahtarı oluşturun
Giriş yaptıktan sonra Profil sayfasından API anahtarı oluşturun. Anahtar yalnızca bir kez gösterilir.
2. Kimlik doğrulama
Authorization: Bearer onl_xxxxxxxxxxxxxxxx
Base URL: https://www.onayli.net/api/v1
3. Sipariş oluşturma
POST https://www.onayli.net/api/v1/orders
Content-Type: application/json
Authorization: Bearer {api_key}
{
"country": "germany",
"service": "whatsapp"
}Alternatif: {"service_id": 123}
4. Sipariş durumu / SMS kodu
GET https://www.onayli.net/api/v1/orders/{id}
Authorization: Bearer {api_key}5. Diğer uçlar
GET /me— hesap bilgisiGET /balance— bakiyeGET /countries— ülkelerGET /services— servis listesi ve fiyatlarPOST /orders/{id}/cancel— iptalGET /api/v1/public/catalog— herkese açık fiyat/stok
Makine okunur şema: GET /api/v1/docs