Composity LogoComposity logoComposity logo
Get started free

Authentication

User Sign In

POST: /{db}secured/login/authentification

Endpoint to authenticate user credentials.
Response Samples:

{
"username": "jondoe@composity.com", "password": "Password1!"
}
ParameterTypeExampleRequired
namestringJohn DoeYes
countrystringBulgariaYes
emailstringemail@email.comYes
phonestring+11111111No
languagestringThe language code for the email content (e.g., bg_BG, en).Yes
templatestringsignupYes
passwordstringPassword1!Yes

Note: The user gets status 2 (non-verified).


User Password Reset

POST: /{db}/reset/password/send-email
To initiate password reset.
Succes Response

HTTP Status Code: 201 Created
{    "email": "test@email.com",  
"token": "recaptchaToken"
}

User Password Change

POST: /{db}/resetting/password/{confirmationToken}
To change user password.

{
    "password": "password",    
"token": "recaptchaToken" }

Send User Verification Email

POST: /{db}/api/post/account/attributes?verify=true

Access: Public (No authentication required)

This endpoint sends a verification email to the user. The email is used to confirm the user's identity.

ParameterTypeDescriptionRequired
tokenstringRecaptcha response token provided by the client.Yes
emailstringThe email address of the user to send the verification email.Yes
languagestringThe language code for the email content (e.g., bg_BG, en).No
templatestringThe alias of the email template to use (e.g., welcome_email).No

Response sample:

Succes Response
HTTP Status Code: 201 Created
{
    "message": "Email is sent"
}
        
Error Response:

HTTP Status Code: 400 BAD REQUEST

{
    "message": "Recaptcha token is missing."
}
        

HTTP Status Code: 401 UNAUTHORIZED

{
    "message": "User with username [email] doesn't exist."
}     

HTTP Status Code: 404 NOT FOUND

{
    "message": "Invalid recaptcha token."
}     

HTTP Status Code: 404 NOT FOUND

{
    "message": "Template is missing."
}
        

Confirm User Email

POST: /confirm/user/{token} 
Endpoint verifies a user’s email address using a confirmation token sent to the user. 
It first validates a reCAPTCHA token. If the reCAPTCHA verification succeeds, 
the user's status is updated to "verified".

ParameterTypeDescriptionRequired
tokenstringThe confirmation token sent to the user’s email.Yes
recaptchaTokenstringThe reCAPTCHA response token from the client-side form.Yes

Response sample:

Succes Response
HTTP Status Code: 200 OK
{
    "message": "User is verified"
}  

This response is returned when the reCAPTCHA verification is successful, and
 the user's email has been confirmed. 
The user's status has been updated to verified.

Error Response:

HTTP Status Code: 400 Bad Request

{
    "message": "Invalid recaptcha token."
}      

This error occurs when the reCAPTCHA token is invalid or cannot be verified.

HTTP Status Code: 400 Bad Request

{
    "message": "Invalid token."
}
        

This error occurs when the provided user confirmation token is invalid or not found in the system.

HTTP Status Code: 200 OK

{
    "message": "User is already verified."
}
        

This message is returned if the user has already verified their email address.

Footer Menu
logo

The affordable software that will make your life easier and your efforts more rewarding!

FacebookXLinkedIn

© 2025 Composity, All rights reserved.

Products

  • Composity CRM
  • Composity ERP
  • Composity POS
  • Composity BI
  • Composity eCommerce
  • Composity Helpdesk

Solutions

  • Small Business
  • Enterprise
  • Retail
  • Wholesale
  • Services

Alternatives

  • Alternative to Odoo
  • Alternative to Salesforce
  • Alternative to Shopify
  • Alternative to Zoho
  • Alternative to NetSuite
  • Alternative to Insightly

Resources

  • Blog
  • What is CRM?
  • What is ERP?
  • Implementing Composity
  • Business Partner Program
Contact us| Privacy Policy| Terms of Service| GDPR
  • Prices
  • About us
  • Blog