Verifa Document Types API

The documentTypes API from Verifa, for documenttypes.

GitHub OpenAPI
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).

Operations 8

GET /api/v1/settings/document-types List document types #
POST /api/v1/settings/document-types Create a document type #
DELETE /api/v1/settings/document-types/{type_id} Delete a document type #
PATCH /api/v1/settings/document-types/{type_id} Update a document type #
GET /api/v1/settings/document-groups List document groups #
POST /api/v1/settings/document-groups Create a document group #
DELETE /api/v1/settings/document-groups/{group_id} Delete a document group #
PATCH /api/v1/settings/document-groups/{group_id} Update a document group #

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/withverifa-com:withverifa-com-documenttypes-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

withverifa-com-documenttypes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Reference Document Types API
  version: 1.0.0
servers:
- url: https://api.withverifa.com
  description: https://api.withverifa.com
tags:
- name: documentTypes
paths:
  /api/v1/settings/document-types:
    get:
      operationId: documentTypes_listDocumentTypes
      summary: List document types
      description: 'Returns all custom document types configured for your organization.


        **Required scope:** `documents:read`.'
      tags:
      - documentTypes
      parameters:
      - name: Verifa-Version
        in: header
        description: 'API version date string (e.g. `2026-02-01`). If omitted, the version

          pinned to your API key is used.

          '
        required: false
        schema:
          type: string
          format: date
      responses:
        '200':
          description: A list of document types.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Document_Types_listDocumentTypes_Response_200'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - ApiKeyAuth: []
    post:
      operationId: documentTypes_createDocumentType
      summary: Create a document type
      description: 'Creates a new custom document type for your organization. Document types

        define how documents of a given kind are classified, extracted, and verified.


        **Required scope:** `settings:write` (or legacy `documents:write`).'
      tags:
      - documentTypes
      parameters:
      - name: Idempotency-Key
        in: header
        description: 'Unique key for idempotent requests. Cached for 24 hours. Sending the

          same key with different parameters returns `422`.

          '
        required: false
        schema:
          type: string
          maxLength: 255
      - name: Verifa-Version
        in: header
        description: 'API version date string (e.g. `2026-02-01`). If omitted, the version

          pinned to your API key is used.

          '
        required: false
        schema:
          type: string
          format: date
      responses:
        '201':
          description: Document type created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentType'
        '400':
          description: Invalid request parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Request validation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                slug:
                  type: string
                  pattern: ^[a-z0-9_-]+$
                  description: URL-safe identifier for this document type.
                label:
                  type: string
                  description: Human-readable display label.
                description:
                  type: string
                  description: Optional description of this document type.
                category:
                  type: string
                  description: Document category (e.g. identity, address, financial).
                extraction_hints:
                  type: object
                  additionalProperties:
                    description: Any type
                  description: OCR and extraction configuration hints.
                check_suite:
                  type: object
                  additionalProperties:
                    description: Any type
                  description: Verification check suite configuration.
              required:
              - slug
              - label
              - category
      security:
      - ApiKeyAuth: []
  /api/v1/settings/document-types/{type_id}:
    delete:
      operationId: documentTypes_deleteDocumentType
      summary: Delete a document type
      description: 'Permanently deletes a custom document type. Cannot be deleted if

        documents are currently using this type.


        **Required scope:** `settings:write` (or legacy `documents:write`).'
      tags:
      - documentTypes
      parameters:
      - name: type_id
        in: path
        description: Document type ID.
        required: true
        schema:
          type: string
      - name: Verifa-Version
        in: header
        description: 'API version date string (e.g. `2026-02-01`). If omitted, the version

          pinned to your API key is used.

          '
        required: false
        schema:
          type: string
          format: date
      responses:
        '204':
          description: Document type deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Document_Types_deleteDocumentType_Response_204'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Resource not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Request validation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - ApiKeyAuth: []
    patch:
      operationId: documentTypes_updateDocumentType
      summary: Update a document type
      description: 'Updates mutable fields on a custom document type.


        **Required scope:** `settings:write` (or legacy `documents:write`).'
      tags:
      - documentTypes
      parameters:
      - name: type_id
        in: path
        description: Document type ID.
        required: true
        schema:
          type: string
      - name: Verifa-Version
        in: header
        description: 'API version date string (e.g. `2026-02-01`). If omitted, the version

          pinned to your API key is used.

          '
        required: false
        schema:
          type: string
          format: date
      responses:
        '200':
          description: Document type updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentType'
        '400':
          description: Invalid request parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Resource not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Request validation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                label:
                  type: string
                  description: Human-readable display label.
                description:
                  type:
                  - string
                  - 'null'
                  description: Description of this document type.
                category:
                  type: string
                  description: Document category.
                extraction_hints:
                  type:
                  - object
                  - 'null'
                  additionalProperties:
                    description: Any type
                  description: OCR and extraction configuration hints.
                check_suite:
                  type:
                  - object
                  - 'null'
                  additionalProperties:
                    description: Any type
                  description: Verification check suite configuration.
                is_active:
                  type: boolean
                  description: Whether this document type is active.
      security:
      - ApiKeyAuth: []
  /api/v1/settings/document-groups:
    get:
      operationId: documentTypes_listDocumentGroups
      summary: List document groups
      description: 'Returns all document groups configured for your organization. Groups

        bundle related document types with shared routing and check configuration.


        **Required scope:** `documents:read`.'
      tags:
      - documentTypes
      parameters:
      - name: Verifa-Version
        in: header
        description: 'API version date string (e.g. `2026-02-01`). If omitted, the version

          pinned to your API key is used.

          '
        required: false
        schema:
          type: string
          format: date
      responses:
        '200':
          description: A list of document groups.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Document_Types_listDocumentGroups_Response_200'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - ApiKeyAuth: []
    post:
      operationId: documentTypes_createDocumentGroup
      summary: Create a document group
      description: 'Creates a new document group for your organization.


        **Required scope:** `settings:write` (or legacy `documents:write`).'
      tags:
      - documentTypes
      parameters:
      - name: Idempotency-Key
        in: header
        description: 'Unique key for idempotent requests. Cached for 24 hours. Sending the

          same key with different parameters returns `422`.

          '
        required: false
        schema:
          type: string
          maxLength: 255
      - name: Verifa-Version
        in: header
        description: 'API version date string (e.g. `2026-02-01`). If omitted, the version

          pinned to your API key is used.

          '
        required: false
        schema:
          type: string
          format: date
      responses:
        '201':
          description: Document group created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentGroup'
        '400':
          description: Invalid request parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Request validation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Human-readable group name.
                description:
                  type: string
                  description: Optional description of this group.
                classifications:
                  type: array
                  items:
                    type: string
                  description: Document classifications included in this group.
                extraction_config:
                  type: object
                  additionalProperties:
                    description: Any type
                  description: Extraction configuration applied to documents in this group.
                check_config:
                  type: object
                  additionalProperties:
                    description: Any type
                  description: Check suite configuration for documents in this group.
                recency_config:
                  type: object
                  additionalProperties:
                    description: Any type
                  description: Recency/expiry rules for documents in this group.
                is_default:
                  type: boolean
                  description: Whether this is the default group for unmatched documents.
                priority:
                  type: integer
                  description: Evaluation priority order (lower is higher priority).
              required:
              - name
      security:
      - ApiKeyAuth: []
  /api/v1/settings/document-groups/{group_id}:
    delete:
      operationId: documentTypes_deleteDocumentGroup
      summary: Delete a document group
      description: 'Permanently deletes a document group.


        **Required scope:** `settings:write` (or legacy `documents:write`).'
      tags:
      - documentTypes
      parameters:
      - name: group_id
        in: path
        description: Document group ID.
        required: true
        schema:
          type: string
      - name: Verifa-Version
        in: header
        description: 'API version date string (e.g. `2026-02-01`). If omitted, the version

          pinned to your API key is used.

          '
        required: false
        schema:
          type: string
          format: date
      responses:
        '204':
          description: Document group deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Document_Types_deleteDocumentGroup_Response_204'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Resource not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - ApiKeyAuth: []
    patch:
      operationId: documentTypes_updateDocumentGroup
      summary: Update a document group
      description: 'Updates mutable fields on a document group.


        **Required scope:** `settings:write` (or legacy `documents:write`).'
      tags:
      - documentTypes
      parameters:
      - name: group_id
        in: path
        description: Document group ID.
        required: true
        schema:
          type: string
      - name: Verifa-Version
        in: header
        description: 'API version date string (e.g. `2026-02-01`). If omitted, the version

          pinned to your API key is used.

          '
        required: false
        schema:
          type: string
          format: date
      responses:
        '200':
          description: Document group updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentGroup'
        '400':
          description: Invalid request parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Resource not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Request validation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Human-readable group name.
                description:
                  type:
                  - string
                  - 'null'
                  description: Description of this group.
                classifications:
                  type: array
                  items:
                    type: string
                  description: Document classifications included in this group.
                extraction_config:
                  type:
                  - object
                  - 'null'
                  additionalProperties:
                    description: Any type
                  description: Extraction configuration for this group.
                check_config:
                  type:
                  - object
                  - 'null'
                  additionalProperties:
                    description: Any type
                  description: Check suite configuration for this group.
                recency_config:
                  type:
                  - object
                  - 'null'
                  additionalProperties:
                    description: Any type
                  description: Recency/expiry rules for this group.
                is_default:
                  type: boolean
                  description: Whether this is the default group for unmatched documents.
                is_active:
                  type: boolean
                  description: Whether this group is active.
                priority:
                  type: integer
                  description: Evaluation priority order (lower is higher priority).
      security:
      - ApiKeyAuth: []
components:
  schemas:
    DocumentGroup:
      type: object
      properties:
        id:
          type: string
          description: Document group ID.
        org_id:
          type: string
          description: Organization ID.
        name:
          type: string
          description: Human-readable group name.
        description:
          type:
          - string
          - 'null'
          description: Description of this group.
        classifications:
          type: array
          items:
            type: string
          description: 'Document classification slugs that match this group. When a

            document is uploaded and classified as one of these slugs, the

            group''s `check_config` and `recency_config` apply.

            '
        check_config:
          type:
          - array
          - 'null'
          items:
            type: array
            items:
              type: string
          description: 'Override the verification check suite for documents matched to

            this group. Each entry is a `[check_name, category, requirement]`

            tuple. Highest priority — beats document-type and org-level

            overrides.

            '
        recency_config:
          oneOf:
          - $ref: '#/components/schemas/DocumentGroupRecencyConfig'
          - type: 'null'
          description: 'Recency rule applied to documents in this group. When `enabled`

            is true, the `recency_check` reads the issue date from the

            document''s `extracted_fields` (`issue_date`, `statement_date`,

            `effective_date`, or `document_date`) and fails the check if

            the document is older than `max_age_days`.

            '
        is_default:
          type: boolean
          description: Whether this is the default group for unmatched documents.
        is_active:
          type: boolean
          description: Whether this group is active.
        priority:
          type: integer
          description: Evaluation priority order (lower is higher priority).
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
      - id
      - org_id
      - name
      - is_default
      - is_active
      - priority
      - created_at
      - updated_at
      title: DocumentGroup
    Document_Types_listDocumentTypes_Response_200:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/DocumentType'
      required:
      - data
      title: Document Types_listDocumentTypes_Response_200
    Document_Types_deleteDocumentGroup_Response_204:
      type: object
      properties: {}
      description: Empty response body
      title: Document Types_deleteDocumentGroup_Response_204
    Error:
      type: object
      properties:
        error:
          type: string
          description: Short error code.
        detail:
          type: string
          description: Human-readable error description.
        status_code:
          type: integer
          description: HTTP status code.
      required:
      - error
      - status_code
      title: Error
    DocumentType:
      type: object
      properties:
        id:
          type: string
          description: Document type ID.
        org_id:
          type: string
          description: Organization ID.
        slug:
          type: string
          description: URL-safe identifier for this document type.
        label:
          type: string
          description: Human-readable display label.
        description:
          type:
          - string
          - 'null'
          description: 'Free-text visual + content description of this document type.

            Used by Verifa''s document classifier

            to recognize uploaded documents and pick this type when it matches.

            Be specific about logos, layouts, and prominent fields — clearer

            descriptions give better classification accuracy.

            '
        category:
          type: string
          description: 'Parent category for grouping in the dashboard. One of:

            `financial`, `corporate`, `identity`, `address`, `vehicle`,

            `government`, or `other`.

            '
        extraction_hints:
          type:
          - object
          - 'null'
          additionalProperties:
            type: string
          description: 'Map of `{field_name: hint}` describing the structured fields to

            extract from documents of this type. Each hint is a short

            free-text description of how to identify the field — including

            common synonyms, expected format, and any disambiguation tips

            ("Member ID, sometimes labeled ''Subscriber ID'' or ''Policy #''").


            When set, uploaded documents of this type are passed through

            Verifa''s document extractor and the resulting fields appear on

            the document''s `extracted_fields` response field. All extraction

            runs on Verifa''s private infrastructure — document content is

            never sent to third-party services.

            '
        check_suite:
          type:
          - array
          - 'null'
          items:
            type: array
            items:
              type: string
          description: 'Optional override of the verification check suite for documents

            of this type. Each entry is a `[check_name, category, requirement]`

            tuple. When set, this overrides the org-level check_config and

            the hardcoded default suite for the matching classification.

            '
        is_active:
          type: boolean
          description: Whether this document type is active.
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
      - id
      - org_id
      - slug
      - label
      - category
      - is_active
      - created_at
      - updated_at
      title: DocumentType
    DocumentGroupRecencyConfig:
      type: object
      properties:
        enabled:
          type: boolean
          description: Whether the recency check is active for this group.
        max_age_days:
          type: integer
          minimum: 1
          description: Maximum allowed document age in days.
      description: 'Recency rule applied to documents in this group. When `enabled`

        is true, the `recency_check` reads the issue date from the

        document''s `extracted_fields` (`issue_date`, `statement_date`,

        `effective_date`, or `document_date`) and fails the check if

        the document is older than `max_age_days`.

        '
      title: DocumentGroupRecencyConfig
    Document_Types_deleteDocumentType_Response_204:
      type: object
      properties: {}
      description: Empty response body
      title: Document Types_deleteDocumentType_Response_204
    Document_Types_listDocumentGroups_Response_200:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/DocumentGroup'
      required:
      - data
      title: Document Types_listDocumentGroups_Response_200
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Organization API key. Keys are prefixed with `vk_live_` (production) or

        `vk_sandbox_` (sandbox).

        '
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Admin JWT token via `Authorization: Bearer <token>`.'