AIQA API (1.1.1)

Download OpenAPI specification:Download

Authentication

bearerAuth

Security Scheme Type HTTP
HTTP Authorization Scheme bearer

authorize

Authorize

Authorization in the system.

Request Body schema: application/json
email
required
string
password
required
string

Responses

200

Sucess.

400

Incorrect request body.

401

Login error / User inactive.

post /api/authorize

Prod server

https://app.aiqa.tech/api/authorize

Test server

https://http://test.aiqa.tech/api/authorize

Local environment

https://app.aiqa.lh/api/authorize

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "email": "string",
  • "password": "string"
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "token": "string",
  • "user":
    {
    }
}

Logging out of the system.

Authorizations:

Responses

200

Sucess.

403

Incorrect Bearer token.

get /api/authorize/logout

Prod server

https://app.aiqa.tech/api/authorize/logout

Test server

https://http://test.aiqa.tech/api/authorize/logout

Local environment

https://app.aiqa.lh/api/authorize/logout

Registration in the system.

Request Body schema: application/json
firstName
required
string
lastName
required
string
email
required
string
password
required
string

Responses

201

Valid creation of the record.

400

Incorrect request body.

501

Registration temporaly locked.

post /api/authorize/register

Prod server

https://app.aiqa.tech/api/authorize/register

Test server

https://http://test.aiqa.tech/api/authorize/register

Local environment

https://app.aiqa.lh/api/authorize/register

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "firstName": "string",
  • "lastName": "string",
  • "email": "string",
  • "password": "string"
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "id": 0,
  • "firstName": "string",
  • "lastName": "string",
  • "enabled": true,
  • "isRodoAccepted": true,
  • "isSuperUser": true,
  • "email": "string",
  • "createdAt": "string",
  • "updatedAt": "string"
}

Currently logged in user.

Responses

200

Correctly fetched currently logged in user.

get /api/authorize/user

Prod server

https://app.aiqa.tech/api/authorize/user

Test server

https://http://test.aiqa.tech/api/authorize/user

Local environment

https://app.aiqa.lh/api/authorize/user

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "id": 0,
  • "firstName": "string",
  • "lastName": "string",
  • "enabled": true,
  • "isRodoAccepted": true,
  • "isSuperUser": true,
  • "email": "string",
  • "createdAt": "string",
  • "updatedAt": "string"
}

Request an email with form to reset password in the system

Request Body schema: application/json
email
required
string

Responses

200

Valid request for email.

403

Change password error

post /api/authorize/forgot-password

Prod server

https://app.aiqa.tech/api/authorize/forgot-password

Test server

https://http://test.aiqa.tech/api/authorize/forgot-password

Local environment

https://app.aiqa.lh/api/authorize/forgot-password

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "email": "string"
}

Resetting the password in the system.

path Parameters
resetToken
required
string

Token for resetting the password

Request Body schema: application/json
password
required
string

Responses

200

Correct password change.

400

Change password error / password is incorrect.

post /api/authorize/reset/{resetToken}

Prod server

https://app.aiqa.tech/api/authorize/reset/{resetToken}

Test server

https://http://test.aiqa.tech/api/authorize/reset/{resetToken}

Local environment

https://app.aiqa.lh/api/authorize/reset/{resetToken}

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "password": "string"
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "id": 0,
  • "firstName": "string",
  • "lastName": "string",
  • "enabled": true,
  • "isRodoAccepted": true,
  • "isSuperUser": true,
  • "email": "string",
  • "createdAt": "string",
  • "updatedAt": "string"
}

config