Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
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.
openapi: 3.2.0
info:
title: Mervext Keys API
description: Documents in. Structured fields out. Extract validated JSON from invoices, receipts, contracts and Danish leases. Per-field confidence. Zero-retention.
version: 0.7.15
security:
- X-API-Key: []
tags:
- name: Keys
paths:
/v1/keys/free:
post:
summary: Create free API key (one-time free allowance)
operationId: free_key_endpoint_v1_keys_free_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/FreeKeyRequest'
default: {}
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Keys
/v1/keys/seat:
post:
summary: Mint a pairing token so a second phone joins this subscription
description: 'Hand the caller a one-use token that lets one more phone join **their** subscription.
§Seats in the app''s sync design (V, 23 Sep 2026): the engine mints an N-seat pairing token —
metadata only, so the seat limit is enforced without spending data reaching the server. The token
is a secret, shown once on the inviting phone; the joining phone redeems it on /v1/keys/device
and gets its own key for the same account, so the plan''s imports stay one pot metered here.
A token is minted only for a plan with a free second seat, and it is spent once. The refusal
travels as a 409 with the sentence to show, because "you have a single-phone plan" and "both
seats are taken" are different things to tell someone, and neither is an authentication failure.'
operationId: seat_token_endpoint_v1_keys_seat_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Keys
/v1/keys/device:
post:
summary: Mint a per-device key for a signed-out install
description: 'Give a phone that has not signed in its own key, so the app works fully without Google.
The device id is hashed with the same salt as the Google identity marker *before* it touches the
database, so nothing personal is stored. The one-time free allowance is counted against that hash
exactly as it is for a signed-in account; a reinstall makes a new id and so a fresh ten, which is
accepted and bounded by the per-network rate limit rather than fought with a device fingerprint.
With a `seat_token` the same call instead joins the subscription that minted it: this device gets
its own key on that account, and the plan''s allowance is what it spends. That path runs ahead of
the public-access gate on purpose — pausing *new* accounts must not lock a paying couple out of
their second phone — and it cannot open a new account, because it needs a one-use token only an
existing customer can mint. The device-hash rebind keeps a later sign-in on this phone pointing
at the plan rather than back at the account it left.'
operationId: device_key_endpoint_v1_keys_device_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DeviceKeyRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Keys
/v1/keys:
get:
summary: The phones on this subscription
description: 'What a "remove a phone" screen lists: one row per phone, oldest first.
`seat_role` is the same answer the app labels a plan card with, so the phone that joined never
reads "denne telefon" about a subscription someone else bought.'
operationId: list_keys_endpoint_v1_keys_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Keys
/v1/keys/{key_id}:
delete:
summary: Remove one phone from this subscription
description: 'Take one phone off the subscription, so it falls back to its own plan.
This is the route that has to exist because a couple can end: the person paying must be able to
stop sharing without the other phone''s co-operation, and the other phone must not be able to do
the reverse. So only the owner may remove a phone, never the phone making the call, and nothing is
transferred — imports and typed receipts are counted against the account, so what stays is
untouched and the phone that leaves simply stops spending it.'
operationId: revoke_key_endpoint_v1_keys__key_id__delete
parameters:
- name: key_id
in: path
required: true
schema:
type: string
title: Key Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Keys
/v1/keys/claim:
post:
summary: Issue API key after Creem checkout
operationId: claim_key_endpoint_v1_keys_claim_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ClaimKeyRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Keys
components:
schemas:
DeviceKeyRequest:
properties:
device_id:
type: string
title: Device Id
seat_token:
anyOf:
- type: string
- type: 'null'
title: Seat Token
label:
anyOf:
- type: string
- type: 'null'
title: Label
type: object
required:
- device_id
title: DeviceKeyRequest
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
ClaimKeyRequest:
properties:
checkout_id:
type: string
title: Checkout Id
type: object
required:
- checkout_id
title: ClaimKeyRequest
FreeKeyRequest:
properties:
email:
anyOf:
- type: string
- type: 'null'
title: Email
type: object
title: FreeKeyRequest
securitySchemes:
X-API-Key:
type: apiKey
in: header
name: X-API-Key
description: 'Your Mervext API key. Free key: POST /v1/keys/free (when open) or your purchased master/key. Header: X-API-Key: <key>'