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:
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
email*
String
password*
String
Create User
POST
{{BASE_URL}}/api/register
User Registration. After registration you will need to confirm your email.
Request Body
email*
String
password*
String
name*
String
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
token*
String
Bearer Token
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
capcha*
String
Headers
Authorization*
String
Bearer Token
Refresh token
GET
{{BASE_URL}}/api/refresh
Update jwt tokens.
Headers
Authorization*
String
Bearer Token
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
Authorization*
String
Bearer Token
Request Body
email*
String
Reset password
POST
{{BASE_URL}}/api/reset-passsword
Updates the password for the user.
Headers
Authorization*
String
Bearer Token
Request Body
token*
String
Bearer Token
newPassword*
String
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
email*
String
Last updated