Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.
Olexander edited this page Aug 30, 2023 · 17 revisions

Navigation

Endpoints


Post /v2/auth/register/verifyEmail/:token

Authorization

Request options

{
  params: {
    token: string,
  },
}

Response body

{
  refreshToken: string,
  accessToken: string,
}

Expected exceptions

400 InvalidVerificationTokenException: 'Verification token is expired or invalid'

Get /v2/auth/verifyIsRegistered

Authorization

Request options

{
  query: {
    username?: string,
    email?: string,
  },
}

Response body

true | false

Expected exceptions

400 InvalidBodyException: 'Username is not correct (a-zA-Z0-9_), or too short (min: 2), or too long (max: 40)' 
400 InvalidBodyException: 'Username is empty'

400 InvalidBodyException: 'Email is not email'
400 InvalidBodyException: 'Email is empty'

Get /v2/auth/checkCaptain/:groupId

Authorization

Request options

{
  params: {
    groupId: string,
  },
}

Response body

true | false

Expected exceptions


Get /v2/auth/checkResetToken/:token

Authorization

Request options

{
  params: {
    token: string,
  },
}

Response body

{
  isAvailable: boolean,
}

Expected exceptions


Get /v2/auth/checkRegisterTelegram/:token

Authorization

Request options

{
  params: {
    token: string,
  },
}

Response body

{
  isRegistered: boolean,
}

Expected exceptions

Clone this wiki locally