Skip to main content
POST
/
api
/
public
/
v1
/
companies
/
users
Create company user
curl --request POST \
  --url https://app.msportal.ai/api/public/v1/companies/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]",
  "fullName": "<string>",
  "companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "roleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "email": "[email protected]",
    "fullName": "<string>",
    "avatarUrl": "<string>",
    "status": "active",
    "lastLogin": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "role": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>"
    },
    "company": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

Use your API key as a Bearer token. API keys can be generated in Settings → Integrations → API Access.

Body

application/json
email
string<email>
required

User email address (required)

fullName
string
required

Full name (required)

Required string length: 1 - 255
companyId
string<uuid>
required

Company ID to associate the user with (required)

roleId
string<uuid>

Role ID to assign to the user (optional)

Response

Company user created successfully

data
object
required