Organizations
Add a phone number to the organization
Create a PhoneNumber resource. It may be linked to at most one user or one group of the organization (unlinked numbers are spares; the org default must be unlinked). grants is optional; every principal must belong to the organization and each grant is stamped with the calling admin. A number created here always stores a grant list ([] when none is sent). Setting isOrgDefault demotes the current default for the same provider in the same transaction. Admin or SuperAdmin.
Authorization
bearerAuth In: header
Path Parameters
The organization that owns the phone numbers.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/organizations/string/phone-numbers" \ -H "Content-Type: application/json" \ -d '{ "provider": "twilio", "phoneNumber": "+14165550102", "capabilities": [ "sms", "voice" ], "label": "Leasing team line", "linkedGroupId": "6650a1b2c3d4e5f6a7b8c9d2", "grants": [ { "principalType": "department", "principalId": "6650a1b2c3d4e5f6a7b8c9d3", "verbs": [ "read" ] } ] }'{ "success": true, "phoneNumber": { "_id": "string", "organizationId": "string", "provider": "string", "phoneNumber": "string", "isOrgDefault": true, "linkedType": "user", "linkedUserId": "string", "linkedGroupId": "string", "grants": [ { "principalType": "group", "principalId": "6650a1b2c3d4e5f6a7b8c9d2", "key": "group:6650a1b2c3d4e5f6a7b8c9d2", "verbs": [ "send", "read" ], "grantedBy": { "type": "user", "userId": "6650a1b2c3d4e5f6a7b8c9d0" }, "grantedAt": "2026-09-30T12:00:00.000Z" } ] }}