cURL
curl --request POST \ --url https://api.ravan.ai/api/v1/phone-numbers/buy/ \ --header 'Content-Type: application/json' \ --header 'X-Api-Key: <api-key>' \ --data ' { "phone_number": "<string>", "price": 123, "per_minute_price_inbound": 123, "per_minute_price_outbound": 123 } '
{ "success": true, "message": "Request completed successfully", "data": { "phone_number": "+14155550100", "price": 1.99, "status": "active", "purchased_at": "2026-03-14T12:00:00Z" } }
Buy Phone Number.
Show data
Phone number to purchase (E.164 format)
Purchase price
Per-minute inbound call price
Per-minute outbound call price
Successful response
Show child attributes