Lakpura Users API

The Users API from Lakpura — 2 operation(s) for users.

GitHub OpenAPI

Operations 2

GET /users/count Total registered users (admin only) #
POST /users/create Create a user (admin only) #

Specifications

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-users-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-users-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lakpura® Users 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: Users
paths:
  /users/count:
    get:
      tags:
      - Users
      summary: Total registered users (admin only)
      responses:
        '200':
          description: Count
          content:
            application/json:
              schema:
                type: object
                properties:
                  count:
                    type: integer
                    example: 104
        '401':
          $ref: '#/components/responses/Error'
          description: Unauthenticated
        '403':
          $ref: '#/components/responses/Error'
          description: Administrator access required
      operationId: getUsersCount
      x-operation-id-source: derived
  /users/create:
    post:
      tags:
      - Users
      summary: Create a user (admin only)
      description: 'Creates a staff account. user_code, user_name and phone extension are

        auto-generated; the user defaults to the Solutions division and can be

        refined in the web admin afterwards.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - email
              - password
              - full_name
              properties:
                email:
                  type: string
                  format: email
                password:
                  type: string
                full_name:
                  type: string
                is_admin:
                  type: boolean
                  default: false
      responses:
        '200':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
        '409':
          $ref: '#/components/responses/Error'
          description: A user with this email already exists
        '401':
          $ref: '#/components/responses/Error'
          description: Unauthenticated
        '403':
          $ref: '#/components/responses/Error'
          description: Administrator access required
      operationId: postUsersCreate
      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
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT