Authentication

Open https://t.me/apmfun_bot?start=connect in your browser and follow the instructions to obtain your Access Code.

Send the Access Code to the follwing endpoint to receive a JWT token.

Login with Access Code

post

Authenticate user with access code and return JWT token

Authorizations
Body
codestringRequired

Access code

Example: ABC123DEF456
Responses
200

Login successful

application/json
post
POST /login/access-code HTTP/1.1
Host: api.apm-api.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 23

{
  "code": "ABC123DEF456"
}
{
  "success": true,
  "data": {
    "token": "text",
    "tokenType": "Bearer",
    "user": {
      "user_id": 1,
      "email": "text",
      "username": "text"
    }
  },
  "msg": "Login successful"
}

Last updated