curl --request POST \
--url http://localhost:8080/api/phone-numbers/import \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '
{
"provider": "twilio",
"phone_number": "+14157774444",
"account_sid": "AC1234567890abcdef1234567890abcdef",
"auth_token": "your_auth_token",
"nickname": "Customer Service Line",
"inbound_agent_id": "agent_abc123",
"outbound_agent_id": "agent_xyz789"
}
'{
"message": "Phone number validated and imported successfully",
"status": "success",
"error": null,
"data": {
"phone_number": {
"phone_number": "+14157774444",
"organization_id": "org_123",
"phone_number_pretty": "+1 (415) 777-4444",
"phone_number_type": "ZUDU_PLIVO",
"nickname": "Customer Service Line",
"inbound_agent_id": "agent_abc123",
"outbound_agent_id": "agent_xyz789",
"number_provider": "plivo",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
}
}Imports a phone number (current behavior).
curl --request POST \
--url http://localhost:8080/api/phone-numbers/import \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '
{
"provider": "twilio",
"phone_number": "+14157774444",
"account_sid": "AC1234567890abcdef1234567890abcdef",
"auth_token": "your_auth_token",
"nickname": "Customer Service Line",
"inbound_agent_id": "agent_abc123",
"outbound_agent_id": "agent_xyz789"
}
'{
"message": "Phone number validated and imported successfully",
"status": "success",
"error": null,
"data": {
"phone_number": {
"phone_number": "+14157774444",
"organization_id": "org_123",
"phone_number_pretty": "+1 (415) 777-4444",
"phone_number_type": "ZUDU_PLIVO",
"nickname": "Customer Service Line",
"inbound_agent_id": "agent_abc123",
"outbound_agent_id": "agent_xyz789",
"number_provider": "plivo",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
}
}API Key for MCP server and external service authentication
API Secret for MCP server and external service authentication