cURL
curl --request POST \ --url https://web-api.clerk.chat/public/admin/phone-assignments \ --header 'Content-Type: application/json' \ --header 'apiKey: <api-key>' \ --data '{ "userId": "<string>", "phoneId": "<string>" }'
{ "id": "<string>", "name": "<string>", "email": "<string>", "phone": "<string>" }
Assigns a phone number to a specific user
Request to assign a phone number to a user
ID of the user to assign the phone to
ID of the phone number to assign
The user with assigned phone
Response containing user information
The ID of the user
The name of the user
The email of the user
The assigned phone number