DevelopersAPI Reference
Click to dial
Originate a live call from a user's extension to a destination number.
Click to dial
POST /api/v1/click2dial rings the user's extension first, then bridges to destination when they answer.
| Permission | click2dial |
| User header | Required — that user's extension places the call |
This is a live call on the production phone system. The user's phone must be registered. Do not fire this from the playground unless you intend to place the call.
Body
| Field | Required | Notes |
|---|---|---|
destination | Yes | 2–50 characters; sanitized before dial |
ringback | No | Optional custom ringback |
sipContact | No | Optional SIP contact for a specific device |
Success
data includes callId, status: "initiated", from, to, and a message that the user's phone will ring first.
Errors specific to this route
| Code | HTTP | Meaning |
|---|---|---|
NO_EXTENSION | 400 | User has no extension |
PBX_NOT_CONFIGURED | 400 | Phone system is not configured for this organization |
INVALID_DESTINATION | 400 | Number rejected |
PHONE_NOT_REGISTERED | 409 | Extension is not registered |
CALL_IN_PROGRESS | 409 | That user already has a click-to-dial call |
RATE_LIMIT_EXCEEDED | 429 | Origination guard |
CALL_FAILED | 500 | Originate failed |