cURL
curl --request POST \ --url https://api.trillet.ai/v1/api/twilio/purchase-number \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --header 'x-workspace-id: <x-workspace-id>' \ --data ' { "country": "<string>", "type": "<string>", "phoneNumber": "<string>", "addressSid": "<string>", "coupon": "<string>" } '
{ "success": true, "phoneNumber": { "_id": "665a1b2c3d4e5f6a7b8c9d0e", "phoneNumber": "+14155551234", "country": "US", "type": "local", "status": "active", "workspaceId": "664a1b2c3d4e5f6a7b8c9d0e" } }
Purchase a phone number for your workspace.