OpenProof Consent API
The consent-api API from OpenProof — 7 operation(s) for consent-api.
The consent-api API from OpenProof — 7 operation(s) for consent-api.
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/openproof-io:openproof-io-consent-api-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: Openproof Io Consent API
version: 1.0.0
description: 'Operations tagged consent-api across 2 of this provider''s published API definitions: openapi.json, openproof-io-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: consent-api
paths:
/v1/consent/categories:
get:
tags:
- consent-api
summary: List Api Categories
description: 'The active categories: the names to use in the other calls, and the notice text people were shown.'
operationId: list_api_categories_v1_consent_categories_get
parameters:
- name: X-OpenProof-Api-Key
in: header
required: true
schema:
type: string
title: X-Openproof-Api-Key
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/consent/check:
get:
tags:
- consent-api
summary: Check Consent
description: 'Returns the CURRENT status of the most recent decision for this
principal + category, if any exists. `identifier` matches whatever
was used to record consent for this principal -- an email (hosted
consent page), a customer id (signed widget identity or the record
API) or "device:" (a banner choice recorded only for a
browser, R5-01), since all are stored in the same
principal_identifier field. A device row never answers an email or
customer id. `category` matches
by NAME, case-insensitive, not by internal UUID -- a business''s own
backend code shouldn''t need to hardcode OpenProof''s category IDs.
allowed=False covers both an explicit rejection/withdrawal AND no
record existing at all -- callers that need to distinguish "never
asked" from "said no" should check `status` (null vs "rejected"/
"withdrawn"), not just `allowed`, since gating a real action on
consent should default to false whenever there''s any doubt.'
operationId: check_consent_v1_consent_check_get
parameters:
- name: identifier
in: query
required: true
schema:
type: string
title: Identifier
- name: category
in: query
required: true
schema:
type: string
title: Category
- name: X-OpenProof-Api-Key
in: header
required: true
schema:
type: string
title: X-Openproof-Api-Key
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- consent-api
summary: Check Consent Post
description: 'The same check as GET /v1/consent/check, with the identifier and category in a JSON body (27 Oct 2026).
POST is preferred: a URL, including its query string, can be written to logs by proxies, load balancers and other
intermediaries, and the identifier is often an email address. Same API key, same rate limit, same response.'
operationId: check_consent_post_v1_consent_check_post
parameters:
- name: X-OpenProof-Api-Key
in: header
required: true
schema:
type: string
title: X-Openproof-Api-Key
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CheckRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/consent/check-bulk:
post:
tags:
- consent-api
summary: Check Consent Bulk
description: 'Up to MAX_BULK_CHECKS checks in one call (for example, filtering a whole mailing list before a
campaign). Results come back in the same order. A pair that cannot be answered carries an `error`
("category_not_found" or "invalid_identifier") and allowed=false instead of failing the whole call.'
operationId: check_consent_bulk_v1_consent_check_bulk_post
parameters:
- name: X-OpenProof-Api-Key
in: header
required: true
schema:
type: string
title: X-Openproof-Api-Key
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/BulkCheckRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/consent/record:
post:
tags:
- consent-api
summary: Record Consent
description: 'Record a decision the business collected through its own channel (a mobile app, a call centre, a paper
form). It goes into the same tamper-evident chain as decisions made on the banner or the consent page.
The business is vouching for it -- OpenProof records WHAT was reported and WHEN it was reported.
Send an `Idempotency-Key` header (any unique string, up to 100 characters) so a retry after a timeout
cannot record the decision twice: the same key with the same request returns the original record
(200); the same key with a different request is a 409.'
operationId: record_consent_v1_consent_record_post
parameters:
- name: Idempotency-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Idempotency-Key
- name: X-OpenProof-Api-Key
in: header
required: true
schema:
type: string
title: X-Openproof-Api-Key
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RecordCreate'
responses:
'201':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/consent/expiring:
get:
tags:
- consent-api
summary: Consent Expiring
description: 'People whose accepted consent lapses within `within_days` (0 = only the ones that have already lapsed),
soonest first, so your own system can ask them again. Only categories with a validity period are covered;
only the latest decision per person and category counts, so someone who already renewed, rejected or
withdrew is not listed. `truncated` is true when more than `limit` matched.'
operationId: consent_expiring_v1_consent_expiring_get
parameters:
- name: within_days
in: query
required: false
schema:
type: integer
maximum: 365
minimum: 0
default: 30
title: Within Days
- name: limit
in: query
required: false
schema:
type: integer
maximum: 1000
minimum: 1
default: 200
title: Limit
- name: X-OpenProof-Api-Key
in: header
required: true
schema:
type: string
title: X-Openproof-Api-Key
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/consent/history:
get:
tags:
- consent-api
summary: Consent History
description: 'Every decision recorded for one principal, oldest first, across all categories -- what you need to
answer a person who asks what they have agreed to.'
operationId: consent_history_v1_consent_history_get
parameters:
- name: identifier
in: query
required: true
schema:
type: string
title: Identifier
- name: limit
in: query
required: false
schema:
type: integer
maximum: 1000
minimum: 1
default: 500
title: Limit
- name: X-OpenProof-Api-Key
in: header
required: true
schema:
type: string
title: X-Openproof-Api-Key
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- consent-api
summary: Consent History Post
description: 'The same as GET /v1/consent/history, with the identifier in a JSON body (27 Oct 2026). POST is preferred: a URL,
including its query string, can be written to logs by intermediaries, and the identifier is often an email address.'
operationId: consent_history_post_v1_consent_history_post
parameters:
- name: X-OpenProof-Api-Key
in: header
required: true
schema:
type: string
title: X-Openproof-Api-Key
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/HistoryRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/consent/records:
get:
tags:
- consent-api
summary: List Api Records
description: 'All decisions, OLDEST first, a page at a time: pass `next_cursor` back as `after` until it is null.
Oldest-first with a cursor means a sync job can resume where it stopped and never miss a record.'
operationId: list_api_records_v1_consent_records_get
parameters:
- name: limit
in: query
required: false
schema:
type: integer
maximum: 500
minimum: 1
default: 100
title: Limit
- name: after
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: After
- name: since
in: query
required: false
schema:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Since
- name: category
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Category
- name: status
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Status
- name: X-OpenProof-Api-Key
in: header
required: true
schema:
type: string
title: X-Openproof-Api-Key
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
BulkCheckItem:
properties:
identifier:
type: string
title: Identifier
category:
type: string
title: Category
type: object
required:
- identifier
- category
title: BulkCheckItem
HistoryRequest:
properties:
identifier:
type: string
title: Identifier
limit:
type: integer
maximum: 1000.0
minimum: 1.0
title: Limit
default: 500
type: object
required:
- identifier
title: HistoryRequest
RecordCreate:
properties:
identifier:
type: string
title: Identifier
category:
type: string
title: Category
status:
type: string
title: Status
source:
anyOf:
- type: string
- type: 'null'
title: Source
reference:
anyOf:
- type: string
- type: 'null'
title: Reference
notice_version:
anyOf:
- type: integer
- type: 'null'
title: Notice Version
language:
anyOf:
- type: string
- type: 'null'
title: Language
guardian_email:
anyOf:
- type: string
- type: 'null'
title: Guardian Email
type: object
required:
- identifier
- category
- status
title: RecordCreate
CheckRequest:
properties:
identifier:
type: string
title: Identifier
category:
type: string
title: Category
type: object
required:
- identifier
- category
title: CheckRequest
BulkCheckRequest:
properties:
checks:
items:
$ref: '#/components/schemas/BulkCheckItem'
type: array
title: Checks
type: object
required:
- checks
title: BulkCheckRequest
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
securitySchemes:
HTTPBearer:
type: http
scheme: bearer
x-refined-from:
- openapi.json
- openproof-io-openapi.json
x-provenance:
method: harvested
publisher: OpenProof
source: https://api.openproof.io/openapi.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)