Buy a Number
Authorizations
HTTPRequired
Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')
Path parameters
workspaceIdstring · uuidRequiredExample:
The ID for the workspace.
d386a801-ee8d-4aba-a7e4-78671bd3b11eBody
numberStockItemIdsstring · uuid[] · max: 25Required
The unique identifiers of the numbers you want to buy. You can buy up to 25 numbers at a time. This operation will incur wallet charges for the numbers. Before buying the number, you must reserve it.
Responses
201
Created
application/json
404
Long Code Number not found
application/json
422
Validation error
application/json
post
/workspaces/{workspaceId}/numbers-long-codeAssigns Long Code Numbers to the current workspace, charging the wallet for their subscription price. When creating LCNs as a User, all specified Number Stock Items should be reserved.
Authorizations
AuthorizationstringRequired
An access token issued to a user.
Path parameters
workspaceIdstringRequired
Body
numberStockItemIdsstring · uuid[] · max: 25Required
Responses
201
Created
application/json
422
Validation error
application/json
post
/workspaces/{workspaceId}/numbers-long-codeLast updated
Was this helpful?

