Lumethic API Keys API

Create and manage long-lived API keys for programmatic access to the Lumethic API.

GitHub OpenAPI

Operations 3

POST /v1/apikeys/ Create Api Key #
GET /v1/apikeys/ List Api Keys #
DELETE /v1/apikeys/{key_id} Revoke Api Key #

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/lumethic-com:lumethic-com-api-keys-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

lumethic-com-api-keys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lumethic - Integration API Keys API
  version: 1.0.0
  description: 'Lumethic verifies photo authenticity by comparing RAW camera files against their JPEG exports.

    Use this API to create verifications, share results, and license verified photos.


    ## Authentication


    All endpoints require either a **JWT Bearer token** or an **API Key** in the `X-API-Key` header.


    - Get a JWT via `POST /v1/accounts/login`

    - Create API keys via `POST /v1/apikeys/`


    ## Marketplace


    There is no public listing directory. Photos are only accessible to buyers who receive

    a direct link or email invite from the seller.


    ## MCP (Model Context Protocol)


    This API is also callable by AI agents via a remote MCP server exposed at `/mcp`

    (Streamable HTTP transport). Agents authenticate with the same API keys used here

    (passed as a bearer token), and a keyless free tier is available for trying it out.

    The MCP endpoint self-describes its tools via the protocol (`tools/list`) and does not

    appear in this OpenAPI schema.


    ## Error Handling


    All errors return a structured `ErrorResponse` with:

    - `error_code`: Machine-parseable error code (e.g., `VERIFICATION_NOT_FOUND`)

    - `message`: Human-readable error description

    - `suggestion`: Optional hint for how to resolve the error

    - `details`: Optional additional context'
  contact:
    name: Lumethic
    url: https://lumethic.com
    email: support@lumethic.com
servers:
- url: https://api.lumethic.com
  description: Production
security:
- BearerAuth: []
- ApiKeyAuth: []
tags:
- name: API Keys
  description: Create and manage long-lived API keys for programmatic access to the Lumethic API.
paths:
  /v1/apikeys/:
    post:
      tags:
      - API Keys
      summary: Create Api Key
      description: 'Create a new API key for programmatic access to the Lumethic API.


        Generate a long-lived API key that can be used instead of JWT tokens for server-to-server

        integrations, CI/CD pipelines, and automated workflows. The raw key is returned only once

        in the response — store it securely.


        **Authentication Required**: Valid JWT token


        **Request Body**:

        - **account_id**: The account to associate the key with (must be an account you have access to)

        - **description**: Optional label to identify the key''s purpose

        - **expires_in_days**: Key lifetime in days (default 365, minimum 1)


        **Response**: Returns the created key metadata and the raw key string.


        **Status Codes**:

        - 201: API key created successfully

        - 403: You do not have access to the specified account'
      operationId: create_api_key_v1_apikeys__post
      security:
      - OAuth2PasswordBearer: []
      parameters:
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/APIKeyCreateRequest'
      responses:
        '201':
          description: API key created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIKeyCreateResponse'
              example:
                id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                prefix: ask_a1b2c3d4
                account_id: f47ac10b-58cc-4372-a567-0e02b2c3d479
                user_id: 550e8400-e29b-41d4-a716-446655440000
                description: CI/CD pipeline key
                expires_at: '2026-01-15T10:30:00Z'
                created_at: '2025-01-15T10:30:00Z'
                raw_key: ask_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        '403':
          description: Access denied
          content:
            application/json:
              example:
                detail:
                  error_code: ACCESS_DENIED
                  message: User does not have access to the specified account.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - API Keys
      summary: List Api Keys
      description: 'List all API keys for your current account.


        Retrieve metadata for all API keys associated with your account, including active and

        expired keys. Use this to audit key usage and manage key lifecycle.


        **Authentication Required**: Valid JWT token or API key


        **Response**: Returns an array of API key metadata objects. Note: raw key values are

        never returned after creation — only the prefix is shown for identification.


        **Status Codes**:

        - 200: List of API keys returned'
      operationId: list_api_keys_v1_apikeys__get
      security:
      - OAuth2PasswordBearer: []
      parameters:
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: List of API keys
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/APIKeyInfo'
                title: Response List Api Keys V1 Apikeys  Get
              example:
              - id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                prefix: ask_a1b2c3d4
                account_id: f47ac10b-58cc-4372-a567-0e02b2c3d479
                user_id: 550e8400-e29b-41d4-a716-446655440000
                description: CI/CD pipeline key
                expires_at: '2026-01-15T10:30:00Z'
                is_active: true
                last_used_at: '2025-06-01T14:22:00Z'
                created_at: '2025-01-15T10:30:00Z'
                updated_at: '2025-06-01T14:22:00Z'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/apikeys/{key_id}:
    delete:
      tags:
      - API Keys
      summary: Revoke Api Key
      description: 'Revoke an API key, permanently disabling it.


        Immediately invalidates the specified API key. Any requests using this key will be

        rejected after revocation. This action cannot be undone — create a new key if needed.


        **Authentication Required**: Valid JWT token or API key


        **Path Parameters**:

        - **key_id**: UUID of the API key to revoke


        **Status Codes**:

        - 204: Key revoked successfully (no response body)

        - 404: Key not found or you do not have permission to revoke it'
      operationId: revoke_api_key_v1_apikeys__key_id__delete
      security:
      - OAuth2PasswordBearer: []
      parameters:
      - name: key_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Key Id
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '204':
          description: Key revoked successfully
        '404':
          description: API key not found
          content:
            application/json:
              example:
                detail:
                  error_code: ACCOUNT_NOT_FOUND
                  message: API Key not found or you do not have permission to revoke it.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    APIKeyCreateResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: Unique identifier for the API key
        prefix:
          type: string
          title: Prefix
          description: Key prefix for identification (e.g., 'ask_a1b2c3d4')
        account_id:
          type: string
          format: uuid
          title: Account Id
          description: Account this key is associated with
        user_id:
          type: string
          format: uuid
          title: User Id
          description: User who created the key
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
          description: User-provided description of the key's purpose
        expires_at:
          type: string
          format: date-time
          title: Expires At
          description: ISO 8601 timestamp when the key expires
        created_at:
          type: string
          format: date-time
          title: Created At
          description: ISO 8601 timestamp when the key was created
        raw_key:
          type: string
          title: Raw Key
          description: The full API key string. Store this securely — it cannot be retrieved again after creation.
      type: object
      required:
      - id
      - prefix
      - account_id
      - user_id
      - description
      - expires_at
      - created_at
      - raw_key
      title: APIKeyCreateResponse
      description: Response after creating a new API key. Contains the raw key which is only shown once.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    APIKeyCreateRequest:
      properties:
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
        account_id:
          type: string
          format: uuid
          title: Account Id
        expires_in_days:
          anyOf:
          - type: integer
            exclusiveMinimum: 0.0
          - type: 'null'
          title: Expires In Days
          default: 365
        scope:
          anyOf:
          - type: string
            pattern: ^offload_upload$
          - type: 'null'
          title: Scope
      type: object
      required:
      - account_id
      title: APIKeyCreateRequest
      examples:
      - account_id: f47ac10b-58cc-4372-a567-0e02b2c3d479
        description: CI/CD pipeline key
        expires_in_days: 90
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    APIKeyInfo:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: Unique identifier for the API key
        prefix:
          type: string
          title: Prefix
          description: Key prefix for identification (e.g., 'ask_a1b2c3d4')
        account_id:
          type: string
          format: uuid
          title: Account Id
          description: Account this key is associated with
        user_id:
          type: string
          format: uuid
          title: User Id
          description: User who created the key
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
          description: User-provided description of the key's purpose
        expires_at:
          type: string
          format: date-time
          title: Expires At
          description: ISO 8601 timestamp when the key expires
        is_active:
          type: boolean
          title: Is Active
          description: Whether the key is currently active and usable
        last_used_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Used At
          description: ISO 8601 timestamp of last successful authentication with this key
        created_at:
          type: string
          format: date-time
          title: Created At
          description: ISO 8601 timestamp when the key was created
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: ISO 8601 timestamp when the key was last modified
      type: object
      required:
      - id
      - prefix
      - account_id
      - user_id
      - description
      - expires_at
      - is_active
      - last_used_at
      - created_at
      - updated_at
      title: APIKeyInfo
      description: API key metadata (without the raw key secret).
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT token from POST /v1/accounts/login
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'API key from POST /v1/apikeys/. Format: ask_<43 url-safe characters>'