Web application API definition (1.0.0)

Download OpenAPI specification:

Emails

Check email change

Check email change token and retrieve email change data.

query Parameters
token
required
string

The token given in the email change link.

Responses

Response samples

Content type
application/json
{
  • "code": 0,
  • "data": {
    }
}

Confirm email change

Change the user's email by the new specified one.

Request Body schema: application/json
required

Info to authenticate the email change.

email_token
required
string = 10 characters

The mail change token.

email
required
string <email>

The new email address.

Responses

Request samples

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

Response samples

Content type
application/json
{
  • "code": 0
}

Confirm email

Confirm the email of the user using the validation token.

Request Body schema: application/json
required

Info to authenticate the email conformation.

token
required
string = 10 characters

The mail change token.

Responses

Request samples

Content type
application/json
{
  • "token": "stringstri"
}

Response samples

Content type
application/json
{
  • "code": 0,
  • "label_name": "string",
  • "email": "user@example.com",
  • "android_store_url": "string",
  • "ios_store_url": "string"
}

Users

Get complete registration token info

Check the token validity and get the associated info.

query Parameters
token
required
string = 10 characters

Responses

Response samples

Content type
application/json
{
  • "code": 0,
  • "data": {
    }
}

Complete registration

Complete the registration of an account created by someone else on the dashboard.

Request Body schema: application/json
required

Info about the user.

token
required
string = 10 characters

The complete registration token.

password
required
string [ 8 .. 255 ] characters

The user's password.

object

The user's consents.

trip_retention_in_months
integer or null [ 3 .. 24 ]

The trip retention in months. Null means forever, if not provided, defaults to null.

Responses

Request samples

Content type
application/json
{
  • "token": "stringstri",
  • "password": "stringst",
  • "consents": {
    },
  • "trip_retention_in_months": 3
}

Response samples

Content type
application/json
{
  • "code": 0,
  • "data": {
    }
}

Get reset password token info

Check the token validity and get the associated info.

query Parameters
token
required
string = 10 characters

Responses

Response samples

Content type
application/json
{
  • "code": 0,
  • "data": {
    }
}

Reset password

Reset the password to the new specified one.

Request Body schema: application/json
required

The new password.

password_token
required
string = 10 characters

The change password token.

password
required
string [ 8 .. 255 ] characters

The user's password.

Responses

Request samples

Content type
application/json
{
  • "password_token": "stringstri",
  • "password": "stringst"
}

Response samples

Content type
application/json
{
  • "code": 0
}