Lakpura Authentication API

The Authentication API from Lakpura — 3 operation(s) for authentication.

GitHub OpenAPI

Operations 3

POST /auth/login Log in and obtain a JWT #
POST /auth/register Register (disabled) #
POST /auth/logout Log out #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/lakpura-com:lakpura-com-authentication-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

lakpura-com-authentication-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lakpura® Authentication API
  version: 1.0.0
  description: 'REST API for the Lakpura mobile app (Android/iOS).


    **Authentication** is a JWT Bearer token (HS256). Obtain one from

    `POST /auth/login`, then send `Authorization: Bearer ` on every

    protected request. Tokens are **stateless** and expire after **1 hour**;

    there is no refresh token in v1, so on a `401` re-authenticate via

    `/auth/login`.


    **Errors** for every endpoint use the shape `{ "error": "message" }`. Branch

    on the HTTP status code, not the message text.


    Accounts are staff accounts; **self-registration is disabled**

    (`/auth/register` always returns 403). Administrators create accounts via

    `POST /users/create`.'
servers:
- url: https://api.lakpura.com/mobile/v1
  description: Production
- url: https://app.lakpura.com/api/mobile/v1
  description: Production (legacy base — kept for shipped app builds that pin it)
security:
- bearerAuth: []
tags:
- name: Authentication
paths:
  /auth/login:
    post:
      tags:
      - Authentication
      summary: Log in and obtain a JWT
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - email
              - password
              properties:
                email:
                  type: string
                  format: email
                  example: user@lakpura.com
                password:
                  type: string
                  format: password
                  example: secret
      responses:
        '200':
          description: Authenticated
          content:
            application/json:
              schema:
                type: object
                properties:
                  access_token:
                    type: string
                    example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
                  user:
                    $ref: '#/components/schemas/User'
        '400':
          $ref: '#/components/responses/Error'
          description: Missing fields or invalid JSON
        '401':
          $ref: '#/components/responses/Error'
          description: Invalid email or password
        '403':
          $ref: '#/components/responses/Error'
          description: Account inactive, or two-factor enabled (sign in on the web)
        '429':
          $ref: '#/components/responses/Error'
          description: Too many failed attempts (5 / 15 min per IP + email)
      operationId: postAuthLogin
      x-operation-id-source: derived
  /auth/register:
    post:
      tags:
      - Authentication
      summary: Register (disabled)
      description: Self-registration is disabled. Always returns 403. Admins create accounts via `POST /users/create`.
      security: []
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                password:
                  type: string
                full_name:
                  type: string
      responses:
        '403':
          $ref: '#/components/responses/Error'
          description: Registration is disabled
      operationId: postAuthRegister
      x-operation-id-source: derived
  /auth/logout:
    post:
      tags:
      - Authentication
      summary: Log out
      description: Tokens are stateless; the client should discard its token. This call just confirms intent.
      responses:
        '200':
          description: Logged out
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
        '401':
          $ref: '#/components/responses/Error'
          description: Unauthenticated
      operationId: postAuthLogout
      x-operation-id-source: derived
components:
  responses:
    Error:
      description: Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          example: Invalid email or password
    User:
      type: object
      properties:
        id:
          type: string
          description: User id (string)
          example: '5'
        email:
          type: string
          format: email
          example: user@lakpura.com
        full_name:
          type: string
          example: Jane Doe
        is_admin:
          type: boolean
          example: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT