POST
/
public
/
admin
/
phone-assignments
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>"
}

Authorizations

apiKey
string
header
required

Body

application/json

Request to assign a phone number to a user

userId
string
required

ID of the user to assign the phone to

phoneId
string
required

ID of the phone number to assign

Response

201
application/json
The user with assigned phone

Response containing user information

id
string
required

The ID of the user

name
string
required

The name of the user

email
string
required

The email of the user

phone
string

The assigned phone number