Lumethic Requests API
The Requests API from Lumethic — 2 operation(s) for requests.
The Requests API from Lumethic — 2 operation(s) for requests.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/lumethic-com:lumethic-com-requests-api"
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.
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: 3.2.0
info:
title: Lumethic - Integration Requests 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: Requests
paths:
/v1/requests:
post:
summary: Create a verification request
description: 'Create a request and return its link.
The provider opens ``url`` (or scans its QR code), uploads a camera original
and the delivered JPEG, and needs no account. The verification runs under
this account and counts against its monthly allowance at the normal
metered price. ``token`` is a bearer secret and is returned on every read.'
operationId: create_request_v1_requests_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/VerificationRequestCreate'
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/VerificationRequestResponse'
'400':
description: Account name required
content:
application/json:
example:
detail:
error_code: REQUEST_OWNER_NAME_REQUIRED
message: Set an account name before creating a request; the landing page shows it to the provider.
suggestion: Set the account name on the profile page.
'422':
description: Invalid request
content:
application/json:
example:
detail:
error_code: VALIDATION_ERROR
message: max_submissions exceeds the plan ceiling of 25.
details:
ceiling: 25
tags:
- Requests
get:
summary: List the account's verification requests
description: List requests newest first, optionally filtered by derived status.
operationId: list_requests_v1_requests_get
security:
- OAuth2PasswordBearer: []
parameters:
- name: offset
in: query
required: false
schema:
type: integer
minimum: 0
default: 0
title: Offset
- name: size
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
default: 20
title: Size
- name: status
in: query
required: false
schema:
anyOf:
- $ref: '#/components/schemas/RequestStatus'
- type: 'null'
description: 'Filter by derived status. The three values partition the list: ''open'' is stored-open and not yet past expires_at, ''expired'' is stored-open past expires_at, ''closed'' is stored-closed.'
title: Status
description: 'Filter by derived status. The three values partition the list: ''open'' is stored-open and not yet past expires_at, ''expired'' is stored-open past expires_at, ''closed'' is stored-closed.'
- name: X-API-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/VerificationRequestListResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Requests
/v1/requests/{request_id}:
get:
summary: Read a verification request
description: Read one request, including its token and link, so the requester page can re-show and re-print them.
operationId: get_request_v1_requests__request_id__get
security:
- OAuth2PasswordBearer: []
parameters:
- name: request_id
in: path
required: true
schema:
type: string
format: uuid
title: Request Id
- name: X-API-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/VerificationRequestResponse'
'404':
description: Request not found
content:
application/json:
example:
detail:
error_code: REQUEST_NOT_FOUND
message: Request not found.
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Requests
patch:
summary: Close or edit a verification request
description: Close a request (terminal) or edit its subject, instructions, expiry, cap or share default.
operationId: update_request_v1_requests__request_id__patch
security:
- OAuth2PasswordBearer: []
parameters:
- name: request_id
in: path
required: true
schema:
type: string
format: uuid
title: Request Id
- 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/VerificationRequestUpdate'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/VerificationRequestResponse'
'404':
description: Request not found
content:
application/json:
example:
detail:
error_code: REQUEST_NOT_FOUND
message: Request not found.
'422':
description: Invalid update
content:
application/json:
example:
detail:
error_code: VALIDATION_ERROR
message: expires_at must be in the future.
tags:
- Requests
delete:
summary: Delete a verification request that has no submissions
description: Delete a request while it has no submissions. Once it has any, close it; deleting would detach records.
operationId: delete_request_v1_requests__request_id__delete
security:
- OAuth2PasswordBearer: []
parameters:
- name: request_id
in: path
required: true
schema:
type: string
format: uuid
title: Request Id
- name: X-API-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
responses:
'204':
description: Successful Response
'404':
description: Request not found
content:
application/json:
example:
detail:
error_code: REQUEST_NOT_FOUND
message: Request not found.
'409':
description: Request has submissions
content:
application/json:
example:
detail:
error_code: REQUEST_HAS_SUBMISSIONS
message: This request has received submissions and cannot be deleted.
suggestion: Close it instead; the records keep their 'in answer to' line.
details:
submission_count: 3
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Requests
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
VerificationRequestResponse:
properties:
id:
type: string
format: uuid
title: Id
subject:
type: string
title: Subject
instructions:
anyOf:
- type: string
- type: 'null'
title: Instructions
mode:
$ref: '#/components/schemas/RequestMode'
status:
$ref: '#/components/schemas/RequestStatus'
description: 'Derived: ''expired'' is ''open'' past expires_at.'
expires_at:
type: string
format: date-time
title: Expires At
closed_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Closed At
max_submissions:
type: integer
title: Max Submissions
submission_count:
type: integer
title: Submission Count
description: Accepted uploads so far (counted, never stored).
share_with_provider:
type: boolean
title: Share With Provider
token:
type: string
title: Token
description: 'Bearer secret: anyone holding it can open the landing page and upload to this request until it closes, expires or fills. Returned on every owner read; listing requests exposes every open link of the account.'
url:
type: string
title: Url
description: 'The landing page link (and the QR code''s content): {FRONTEND_URL}/r/{token}.'
created_at:
type: string
format: date-time
title: Created At
updated_at:
type: string
format: date-time
title: Updated At
type: object
required:
- id
- subject
- instructions
- mode
- status
- expires_at
- closed_at
- max_submissions
- submission_count
- share_with_provider
- token
- url
- created_at
- updated_at
title: VerificationRequestResponse
RequestMode:
type: string
enum:
- existing_original
- capture
title: RequestMode
description: 'How the provider answers a request: an uploaded camera original, or a capture with Lumethic Capture.'
RequestStatus:
type: string
enum:
- open
- closed
- expired
title: RequestStatus
description: 'Derived status of a verification request.
``open`` and ``closed`` are stored; ``expired`` is ``open`` past ``expires_at``
and is never written to the row.'
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
VerificationRequestCreate:
properties:
subject:
type: string
maxLength: 200
minLength: 1
title: Subject
description: The requester's own words for what is being asked ('front of the item', 'entry 48392'). Shown on the landing page and the record, labelled as the requester's words; never something Lumethic verified. Control characters are rejected.
instructions:
anyOf:
- type: string
maxLength: 2000
- type: 'null'
title: Instructions
description: Free text for the landing page. Control characters other than newlines are rejected.
expires_at:
type: string
format: date-time
title: Expires At
description: After this instant the public routes answer 410 REQUEST_EXPIRED. Must be in the future and at most 365 days out.
max_submissions:
anyOf:
- type: integer
minimum: 1.0
- type: 'null'
title: Max Submissions
description: Cap on accepted uploads. Defaults by plan (free 5, paid 25) and is limited by a plan ceiling (free 5, Basic 25, Professional 250, Enterprise unlimited); above the ceiling is 422.
share_with_provider:
type: boolean
title: Share With Provider
description: Create the public share for every submission at upload, so the provider reaches the record.
default: true
mode:
$ref: '#/components/schemas/RequestMode'
description: '''existing_original'' takes an uploaded camera original. ''capture'' takes a photograph made with Lumethic Capture: the app mints its challenge and validates its attestation with the request token in the X-Lumethic-Request-Token header, and the upload must carry that attestation_id (iOS only today).'
default: existing_original
type: object
required:
- subject
- expires_at
title: VerificationRequestCreate
VerificationRequestUpdate:
properties:
status:
anyOf:
- type: string
const: closed
- type: 'null'
title: Status
description: 'The only transition: ''closed'' is terminal and cannot be reopened.'
subject:
anyOf:
- type: string
maxLength: 200
minLength: 1
- type: 'null'
title: Subject
instructions:
anyOf:
- type: string
maxLength: 2000
- type: 'null'
title: Instructions
expires_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Expires At
max_submissions:
anyOf:
- type: integer
minimum: 1.0
- type: 'null'
title: Max Submissions
share_with_provider:
anyOf:
- type: boolean
- type: 'null'
title: Share With Provider
type: object
title: VerificationRequestUpdate
VerificationRequestListResponse:
properties:
items:
items:
$ref: '#/components/schemas/VerificationRequestResponse'
type: array
title: Items
total:
type: integer
title: Total
description: Total number of requests matching the filter
offset:
type: integer
title: Offset
size:
type: integer
title: Size
total_pages:
type: integer
title: Total Pages
type: object
required:
- items
- total
- offset
- size
- total_pages
title: VerificationRequestListResponse
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>'