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 Codes 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: Codes
paths:
/v1/codes/redeem:
post:
summary: Redeem a code that unlocks the app
description: 'The app''s code box asks the engine about codes it does not recognise itself.
The split is deliberate: the app''s own registry holds tools and toys and stays client-side, while
anything that grants a plan is decided here — `codes.ts` is explicit that a code may never change
entitlement on its own, and only the engine knows what a customer is actually entitled to.
Not a public route: a code has to be applied to the account that asked, so a key is required and
the middleware rejects a keyless call before this body runs. That is also why a wrong code can be
answered honestly — the caller is a known account, and the attempt is rate-limited per network.'
operationId: codes_redeem_endpoint_v1_codes_redeem_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CodeRedeemRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Codes
components:
schemas:
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
CodeRedeemRequest:
properties:
code:
type: string
title: Code
type: object
required:
- code
title: CodeRedeemRequest
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>'