Skip to main content
POST
/
phone-numbers
/
purchase
Purchase number
curl --request POST \
  --url https://api.goyappr.com/phone-numbers/purchase \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phoneNumber": "+972551234567"
}
'
{
  "success": true,
  "phoneNumber": "<string>",
  "monthlyPrice": 123,
  "currency": "<string>",
  "status": "active"
}

Authorizations

Authorization
string
header
required

Your Yappr API key (e.g. ypr_live_...). Generate one in the dashboard under Settings → API Keys.

Body

application/json
phoneNumber
string
required
Example:

"+972551234567"

Response

200 - application/json

Purchase result

success
boolean
phoneNumber
string
monthlyPrice
integer

Monthly cost in cents

currency
string
status
enum<string>
Available options:
active,
pending_requirements