Skip to main content
POST
/
v1
/
phone
/
{id}
/
assign
Assign agent to phone
curl --request POST \
  --url https://api.usenaive.ai/v1/phone/{id}/assign \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_id": "<string>",
  "permissions": [
    "<string>"
  ]
}
'
{}

Authorizations

Authorization
string
header
required

Workspace API key. Create one via the dashboard or POST /v1/auth/keys.

Path Parameters

id
string
required

Body

application/json
agent_id
string
required
permissions
string[]

Response

Assigned.

The response is of type object.