Lakpura Customers API

The Customers API from Lakpura — 2 operation(s) for customers.

GitHub OpenAPI

Operations 2

GET /customers List customers #
GET /customers/{id} Get a customer #

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-customers-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-customers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lakpura® Customers 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: Customers
paths:
  /customers:
    get:
      tags:
      - Customers
      summary: List customers
      parameters:
      - name: search
        in: query
        required: false
        schema:
          type: string
        description: Filter by name or phone, e.g. ?search=silva
      responses:
        '200':
          description: Customers
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Customer'
        '401':
          $ref: '#/components/responses/Error'
          description: Unauthenticated
      operationId: getCustomers
      x-operation-id-source: derived
  /customers/{id}:
    get:
      tags:
      - Customers
      summary: Get a customer
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Customer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Customer'
        '401':
          $ref: '#/components/responses/Error'
          description: Unauthenticated
        '404':
          $ref: '#/components/responses/Error'
          description: Customer not found
      operationId: getCustomersById
      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
    Customer:
      type: object
      properties:
        id:
          type: string
          example: '123'
        name:
          type: string
          example: Nimal Silva
        phone:
          type: string
          example: '+94771234567'
        email:
          type: string
          example: nimal@example.com
        address:
          type: string
          example: 12 Galle Rd, Colombo, Western, 00300, Sri Lanka
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT