VoiceDock Docs
ApiNumbers

Register a phone number

Register a new phone number in your organization. The number must be configured with your SIP provider to forward calls to HMS Sovereign.

POST
/numbers

Register a new phone number in your organization. The number must be configured with your SIP provider to forward calls to HMS Sovereign.

Authorization

BearerAuth
AuthorizationBearer <token>

API key authentication. Get your key from the dashboard.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/numbers" \  -H "Content-Type: application/json" \  -d '{    "phone_number": "+31850835037"  }'
{
  "number": {
    "number": "+31850835037",
    "name": "HMS Sovereign Demo"
  }
}
{
  "error": "Invalid API key",
  "message": "string"
}
{
  "error": "Invalid API key",
  "message": "string"
}
{
  "error": "Invalid API key",
  "message": "string"
}