List phone numbers
Numbers in one workspace, offset-paginated.
Access: workspace_viewer · API key phone_numbers:read
api-keyAuthorizationBearer <sk_waylo_<lookup><secret><checksum>>page?number1 <= value <= 100001limit?number1 <= value <= 10025orderDirection?string"desc""asc""desc"workspaceId*stringuuidactive?booleanagentId?stringuuidconnectionId?stringuuidorderBy?string"e164""name""status""active""agentName""connectionName""createdAt""updatedAt"search?stringFree-text search over the searchBy fields.
1 <= length <= 255searchBy?stringComma-separated: e164, name.
Success
application/json- response
[index: integer]?curl -X GET 'https://api.poc.app.waylovoice.ai/phone-numbers?workspaceId=497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Authorization: Bearer sk_waylo_...'[ { "id": "string", "workspaceId": "string", "connectionId": "string", "connectionName": "string", "provider": "twilio", "e164": "string", "providerNumberId": "string", "name": "string", "agentId": "bc309ecf-5f66-4057-93c5-6611cc9cb7b2", "agentName": "string", "status": "activating", "statusReason": "string", "active": true, "createdByUserId": "4d2aef9a-17b0-44e6-902e-616812033620", "createdByUserName": "string", "updatedByUserId": "b38eaad7-8efa-49e7-b0aa-619916a3821e", "updatedByUserName": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }]Import phone number POST
Import a number the connected account already owns and attach it to the Waylo trunk. Importing replaces the number's current call routing at the carrier. Refused when the account does not own it (422), when another workspace or tenant has it active (409), or when the agent is not in the workspace (422). Answers with the number, `active` or `failed` with a `statusReason` — a failure is its state, not a failed request, retried with provision. **Access:** workspace_admin · API key `phone_numbers:write`
Provision phone number POST
Retry provisioning one number: attach it to the connection's trunk and ensure the dispatch rule. Answers with the number, `active` or `failed` with a `statusReason` — a failure is its state, not a failed request. **Access:** workspace_admin · API key `phone_numbers:write`