ajor API (0.1.0)

Download OpenAPI specification:

Thrift savings backend. Every response uses the same envelope.

auth

Registration, verification and login

Start a signup and send a verification code

Request Body schema: application/json
required
firstName
required
string [ 2 .. 32 ] characters
lastName
required
string [ 2 .. 32 ] characters
email
required
string <email> <= 254 characters
phone
required
string^\+(?:234|44)[0-9]{10}$

Responses

Request samples

Content type
application/json
{
  • "firstName": "string",
  • "lastName": "string",
  • "email": "user@example.com",
  • "phone": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "statusCode": 0,
  • "message": "string",
  • "data": null
}

Verify a phone number with the code that was sent

Request Body schema: application/json
required
phone
required
string^\+(?:234|44)[0-9]{10}$
code
required
string = 6 characters ^[0-9]+$

Responses

Request samples

Content type
application/json
{
  • "phone": "string",
  • "code": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "statusCode": 0,
  • "message": "string",
  • "data": null
}

Send a fresh verification code

Request Body schema: application/json
required
phone
required
string^\+(?:234|44)[0-9]{10}$

Responses

Request samples

Content type
application/json
{
  • "phone": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "statusCode": 0,
  • "message": "string",
  • "data": null
}

Log in

Request Body schema: application/json
required
email
required
string <email> <= 32 characters
password
required
string <= 48 characters

Responses

Request samples

Content type
application/json
{
  • "email": "user@example.com",
  • "password": "string"
}

Response samples

Content type
application/json
{
  • "success": true,
  • "statusCode": 0,
  • "message": "string",
  • "data": null
}