LeadsyGroup
  1. Users
LeadsyGroup
  • API V1
    • Users
      • Remove a user avatar
        DELETE
      • Upload a user avatar
        PUT
      • 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
      • Update a user
        PUT
    • Stages
      • List stages
    • Companies
      • Remove a company avatar
      • Upload a company avatar
      • Create company
      • List companies
      • Get an specific company
    • User Onboarding
      • Mark as completed the onboarding
      • Approve T&C
    • User Company Relation
      • Create user_accesses for a user
      • Show user_accesses for a user
      • Remove an specific user_access
      • Update user_accesses for a user
    • Accesses
      • List all available accesses
      • List access by id
    • Memberships
      • List available memberships
      • Info of a membership
    • Legal Terms
      • Current available for signature
      • Get legal terms per id
    • Invitations
      • Creates user invitation
      • Get pending invitations by email
    • Import
      • List of ImportFiles
      • Check status of an import
  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 19:55:10
Previous
Upload a user avatar
Next
Validate JWT
Built with