LeadsyGroup
  1. Users
LeadsyGroup
  • API V1
    • Users
      • Create a user
        POST
      • Validate JWT
        GET
      • Find a user by email
        GET
      • Show all users
        GET
      • Login into the application
        POST
      • Reset user password
        POST
      • Show a user
        GET
      • Remove a user avatar
        DELETE
      • Update a user
        PUT
      • Upload a user avatar
        PUT
    • Stages
      • List stages
    • Companies
      • Remove a company avatar
      • Upload a company avatar
  1. Users

Create a user

POST
/api/v1/users
Create a new user. This endpoint does not requires a JWT, since the user can be created without session

Request

Body Params application/jsonRequired

Examples

Responses

🟢201
application/json
User created successfully
Body

🟠422
🔴500
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/users' \
--header 'Content-Type: application/json' \
--data-raw '{
    "first_name": "string",
    "last_name": "string",
    "email": "user@example.com",
    "user_accesses_attributes": [
        {
            "company_id": 0,
            "access_id": 0,
            "primary": true
        }
    ]
}'
Response Response Example
201 - Example 1
{
    "user": {
        "id": 0,
        "first_name": "string",
        "last_name": "string",
        "email": "user@example.com",
        "status": "string",
        "full_name": "string",
        "avatar_route": "string",
        "primary_access": {
            "id": 0,
            "company_id": 0,
            "access_id": 0,
            "access_name": "string"
        },
        "primary_company": {
            "id": 0,
            "name": "string",
            "default": true,
            "parent_company_id": 0
        }
    }
}
Modified at 2026-02-17 17:59:22
Next
Validate JWT
Built with