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>"
}
}
}Create a new tenant user (internal staff/team member). The user is created directly without sending an invitation email. The user will have ‘pending’ status until they set up their password.
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>"
}
}
}Use your API key as a Bearer token. API keys can be generated in Settings → Integrations → API Access.
User created successfully
Show child attributes