POST
/
reseller
/
teams
/
{teamId}
/
users
curl --request POST \
  --url https://partners.clerk.chat/reseller/teams/{teamId}/users \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "jsmith@example.com",
  "firstname": "<string>",
  "lastname": "<string>",
  "role": "workspace_owner"
}'
{
  "id": "<string>",
  "firstname": "<string>",
  "lastname": "<string>",
  "email": "<string>",
  "created": "2023-11-07T05:31:56Z",
  "updated": "2023-11-07T05:31:56Z",
  "inboxes": [
    {
      "id": "<string>",
      "phone": "<string>",
      "externalId": "<string>",
      "created": "2023-11-07T05:31:56Z",
      "updated": "2023-11-07T05:31:56Z"
    }
  ],
  "role": {
    "type": "workspace_owner"
  },
  "acceptedTermsOfService": true
}

Path Parameters

teamId
string
required

Body

application/json
email
string
required
firstname
string
lastname
string
role
enum<string>
Available options:
workspace_owner,
admin,
agent,
manager,
member

Response

200
application/json
id
string
required
firstname
string
required
lastname
string
required
email
string
required
created
string
required
updated
string
required
inboxes
object[]
required
role
object
required
acceptedTermsOfService
boolean
required