ID Analyzer Contract API

Contract template management and document generation

Operations 6

POST /generate Generate contract document #
GET /contract List contract templates #
POST /contract Create contract template #
GET /contract/{templateId} Get contract template #
POST /contract/{templateId} Update contract template #
DELETE /contract/{templateId} Delete contract template #

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/idanalyzer-contract-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

idanalyzer-contract-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ID Analyzer Scanner Account Contract API
  description: REST API for scanning and performing OCR on government-issued identity documents including passports, driver licenses, and national ID cards from 190+ countries. Extracts structured data fields, performs anti-forgery analysis with 20+ fraud detection models, and validates MRZ codes, holograms, and watermarks. Supports full KYC scan with biometric face verification, quick OCR scan, and very-quick OCR scan variants.
  version: '2.0'
  contact:
    name: ID Analyzer Support
    url: https://www.idanalyzer.com/contact-us
    email: support@idanalyzer.com
  termsOfService: https://www.idanalyzer.com/en/terms-of-service
  license:
    name: Proprietary
    url: https://www.idanalyzer.com
servers:
- url: https://api2.idanalyzer.com
  description: US Region
- url: https://api2-eu.idanalyzer.com
  description: EU Region
security:
- ApiKeyHeader: []
tags:
- name: Contract
  description: Contract template management and document generation
paths:
  /generate:
    post:
      tags:
      - Contract
      operationId: generateContract
      summary: Generate contract document
      description: Generate a contract document using a template and optionally populate it with data from a transaction. Supports PDF, DOCX, and HTML output formats.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContractGenerateRequest'
      responses:
        '200':
          description: Generated contract document
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractGenerateResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /contract:
    get:
      tags:
      - Contract
      operationId: listTemplates
      summary: List contract templates
      description: Retrieve a paginated list of contract templates.
      parameters:
      - $ref: '#/components/parameters/order'
      - $ref: '#/components/parameters/limit'
      - $ref: '#/components/parameters/offset'
      - name: templateId
        in: query
        description: Filter result by template ID
        schema:
          type: string
      responses:
        '200':
          description: List of contract templates
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemplateListResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
    post:
      tags:
      - Contract
      operationId: createTemplate
      summary: Create contract template
      description: Create a new contract template with HTML content.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TemplateCreateRequest'
      responses:
        '200':
          description: Created contract template
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemplateResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /contract/{templateId}:
    get:
      tags:
      - Contract
      operationId: getTemplate
      summary: Get contract template
      description: Retrieve a single contract template by ID.
      parameters:
      - name: templateId
        in: path
        required: true
        description: Template ID
        schema:
          type: string
      responses:
        '200':
          description: Contract template details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemplateResponse'
        '404':
          $ref: '#/components/responses/NotFound'
    post:
      tags:
      - Contract
      operationId: updateTemplate
      summary: Update contract template
      description: Update an existing contract template.
      parameters:
      - name: templateId
        in: path
        required: true
        description: Template ID
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TemplateCreateRequest'
      responses:
        '200':
          description: Updated contract template
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemplateResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
    delete:
      tags:
      - Contract
      operationId: deleteTemplate
      summary: Delete contract template
      description: Delete a contract template by ID.
      parameters:
      - name: templateId
        in: path
        required: true
        description: Template ID
        schema:
          type: string
      responses:
        '200':
          description: Template deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  responses:
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    BadRequest:
      description: Bad request - invalid parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Unauthorized - invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    TemplateResponse:
      type: object
      properties:
        templateId:
          type: string
          description: Template ID
        name:
          type: string
          description: Template name
        content:
          type: string
          description: Template HTML content
        orientation:
          type: string
        timezone:
          type: string
        font:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    TemplateListResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/TemplateResponse'
        total:
          type: integer
    ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorObject'
    ContractGenerateRequest:
      type: object
      required:
      - templateId
      properties:
        templateId:
          type: string
          description: Contract template ID
        format:
          type: string
          description: Output format
          enum:
          - PDF
          - DOCX
          - HTML
          default: PDF
        transactionId:
          type: string
          description: Fill template with data from this transaction ID
        fillData:
          type: object
          description: Key-value pairs to autofill template dynamic fields
          additionalProperties: true
    ErrorObject:
      type: object
      properties:
        code:
          type: integer
          description: Error code
        message:
          type: string
          description: Human-readable error message
    TemplateCreateRequest:
      type: object
      required:
      - name
      - content
      properties:
        name:
          type: string
          description: Template name
        content:
          type: string
          description: Template HTML content
        orientation:
          type: string
          description: Page orientation (0=Portrait, 1=Landscape)
          enum:
          - '0'
          - '1'
          default: '0'
        timezone:
          type: string
          description: Template timezone (TZ database name)
          default: UTC
          example: America/New_York
        font:
          type: string
          description: Template font
          default: Open Sans
    SuccessResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Whether the operation was successful
          example: true
    ContractGenerateResponse:
      type: object
      properties:
        document:
          type: string
          description: Base64-encoded generated document or download URL
        format:
          type: string
          description: Output format used
        error:
          $ref: '#/components/schemas/ErrorObject'
  parameters:
    offset:
      name: offset
      in: query
      description: Start the list from this entry index
      schema:
        type: integer
        minimum: 0
        default: 0
    order:
      name: order
      in: query
      description: Sort results by newest (-1) or oldest (1)
      schema:
        type: integer
        enum:
        - -1
        - 1
        default: -1
    limit:
      name: limit
      in: query
      description: Number of items to return per call (1-99)
      schema:
        type: integer
        minimum: 1
        maximum: 99
        default: 10
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-Api-Key
      description: API key obtained from portal2.idanalyzer.com