Auth

Our API uses JSON Web Tokens (JWTs) for authentication. JWTs are a secure and efficient way to authenticate users.

To authenticate with our API, users must first create an account. Once they have created an account, they can generate a JWT by providing their username and password.

JWTs are signed with a secret key, which ensures that they are tamper-proof. They also contain an expiration date, which helps to prevent them from being used after they have expired.

To authenticate with our API, users must include their JWT in the Authorization header of their HTTP requests. The format of the Authorization header is as follows:

Authorization: Bearer <jwt>

where <jwt> is the JWT token.

Once the API has verified the JWT, it will grant the user access to the resources that they are authorized to access.

Login

POST {{BASE_URL}}/api/login

User authentication via email and password fields.

Request Body

NameTypeDescription

email*

String

password*

String

{
    "userToken": "userToken",
    "vaultToken": "teamToken"
}

Create User

POST {{BASE_URL}}/api/register

User Registration. After registration you will need to confirm your email.

Request Body

NameTypeDescription

email*

String

password*

String

name*

String

{
    "userToken": "userToken",
    "vaultToken": "teamToken"
}

After registration, a confirmation email will be sent to the user.

Verify email

GET {{BASE_URL}}/api/verify-email/{token}

User confirmation via email.

Path Parameters

NameTypeDescription

token*

String

Bearer Token

{
    "userToken": "userToken",
    "vaultToken": "teamToken"
}

After verification, a default team and a default project will be created for the client.

If the letter has not arrived in the post, you can use the endpoint below to resend it.

Resend email verification

GET {{BASE_URL}}/api/resend-email-verification

Request to resend the user's confirmation email to the user's email.

Query Parameters

NameTypeDescription

capcha*

String

Headers

NameTypeDescription

Authorization*

String

Bearer Token

{
    "userToken": "userToken",
    "vaultToken": "teamToken"
}

Refresh token

GET {{BASE_URL}}/api/refresh

Update jwt tokens.

Headers

NameTypeDescription

Authorization*

String

Bearer Token

{
    "userToken": "userToken",
    "vaultToken": "teamToken"
}

If a customer forgets their password, they can use the endpoint below. An email will then be sent to the user to recover the password.

Forgot password

POST {{BASE_URL}}/api/forgot-passsword

Password recovery via email.

Headers

NameTypeDescription

Authorization*

String

Bearer Token

Request Body

NameTypeDescription

email*

String

{
    "status": "ok"
}

Reset password

POST {{BASE_URL}}/api/reset-passsword

Updates the password for the user.

Headers

NameTypeDescription

Authorization*

String

Bearer Token

Request Body

NameTypeDescription

token*

String

Bearer Token

newPassword*

String

{
    "status": "ok"
}

Before registering a user, you can check if there is a user with that email address.

Check if a user with this email address exists

GET {{BASE_URL}}/api/exist-email/{email}

Check if there is a user with the specified email address.

Path Parameters

NameTypeDescription

email*

String

true | false

Last updated