Skip to main content
POST
/
api
/
public
/
v1
/
users
Create user
curl --request POST \
  --url https://app.msportal.ai/api/public/v1/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]",
  "roleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "fullName": "<string>"
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "email": "[email protected]",
    "fullName": "<string>",
    "avatarUrl": "<string>",
    "status": "active",
    "isPrimaryAdmin": true,
    "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)

roleId
string<uuid>
required

Role ID to assign to the user (required)

fullName
string

Full name (optional, defaults to email prefix)

Required string length: 1 - 255

Response

User created successfully

data
object
required