Numbers
Buy number
POST
/
v1
/
numbers
/
buy
curl --request POST \
--url https://api.fluents.ai/v1/numbers/buy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"area_code": "415",
"phone_number": "+1234567890",
"telephony_provider": "twilio",
"telephony_account_connection": "550e8400-e29b-41d4-a716-446655440000",
"inbound_agent": "Agent Name"
}'
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"user_id": "550e8400-e29b-41d4-a716-446655440000",
"number": "+1234567890",
"active": true,
"label": "My Phone Number",
"inbound_agent_name": "Agent Name",
"outbound_only": false,
"example_context": {},
"telephony_provider": "twilio",
"description": "Business line for customer service",
"inbound_agent": "agent_123",
"telephony_account_connection": "550e8400-e29b-41d4-a716-446655440000"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
201
application/json
The response is of type object
.
curl --request POST \
--url https://api.fluents.ai/v1/numbers/buy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"area_code": "415",
"phone_number": "+1234567890",
"telephony_provider": "twilio",
"telephony_account_connection": "550e8400-e29b-41d4-a716-446655440000",
"inbound_agent": "Agent Name"
}'
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"user_id": "550e8400-e29b-41d4-a716-446655440000",
"number": "+1234567890",
"active": true,
"label": "My Phone Number",
"inbound_agent_name": "Agent Name",
"outbound_only": false,
"example_context": {},
"telephony_provider": "twilio",
"description": "Business line for customer service",
"inbound_agent": "agent_123",
"telephony_account_connection": "550e8400-e29b-41d4-a716-446655440000"
}
Assistant
Responses are generated using AI and may contain mistakes.