insureMO ocr API

OCR capability APIs of eco-service. Multi-vendor OCR config management and recognition processing.

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 10

POST /eco/ocr/config/add/one CreateConfig #
POST /eco/ocr/config/add/share Share config #
POST /eco/ocr/config/delete/one DeleteConfig #
GET /eco/ocr/config/get/one GetConfig #
GET /eco/ocr/config/get/paged PagedListConfigs #
GET /eco/ocr/config/get/shared List shared configs #
POST /eco/ocr/config/update/one UpdateConfig #
GET /eco/ocr/config/vendors GetConfigVendors #
POST /eco/ocr/process/binary ProcessOCRBinary #
POST /eco/ocr/process/json ProcessOCRJSON #

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/insuremo-com:insuremo-ocr-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

insuremo-com-ocr-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: ECO OCR Service
  description: OCR capability APIs of eco-service. Multi-vendor OCR config management and recognition processing.
  version: '1.0'
servers:
- url: http://eco-service/
tags:
- name: ocr
- name: ocr-config
paths:
  /eco/ocr/config/add/one:
    post:
      tags:
      - ocr-config
      summary: CreateConfig
      description: create config
      operationId: CreateConfig
      requestBody:
        description: create config request
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateConfigRequest'
        required: true
      responses:
        '200':
          description: the created config
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataResponseModel-Config'
        '499':
          description: client error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '599':
          description: server error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-codegen-request-body-name: body
  /eco/ocr/config/add/share:
    post:
      tags:
      - ocr-config
      summary: Share config
      description: Share config
      operationId: ShareConfig
      requestBody:
        description: share config request
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ShareConfigRequest'
        required: true
      responses:
        '200':
          description: get config result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataResponseModel-Config'
        '499':
          description: client error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '599':
          description: server error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-codegen-request-body-name: body
  /eco/ocr/config/delete/one:
    post:
      tags:
      - ocr-config
      summary: DeleteConfig
      description: delete config
      operationId: DeleteConfig
      requestBody:
        description: update config request
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteConfigRequest'
        required: true
      responses:
        '200':
          description: the successful message
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonModel'
        '499':
          description: client error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '599':
          description: server error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-codegen-request-body-name: body
  /eco/ocr/config/get/one:
    get:
      tags:
      - ocr-config
      summary: GetConfig
      description: get config
      operationId: GetConfig
      parameters:
      - name: code
        in: query
        description: config code
        required: true
        style: form
        explode: true
        schema:
          type: string
      responses:
        '200':
          description: get config result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataResponseModel-Config'
        '499':
          description: client error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '599':
          description: server error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
  /eco/ocr/config/get/paged:
    get:
      tags:
      - ocr-config
      summary: PagedListConfigs
      description: paged list configs
      operationId: PagedListConfigs
      parameters:
      - name: code_filter
        in: query
        required: false
        style: form
        explode: true
        schema:
          type: string
      - name: current_page
        in: query
        required: false
        style: form
        explode: true
        schema:
          type: integer
          default: 1
      - name: language_filter
        in: query
        required: false
        style: form
        explode: true
        schema:
          type: string
      - name: page_size
        in: query
        required: false
        style: form
        explode: true
        schema:
          type: integer
          default: 10
          maximum: 200
      - name: type
        in: query
        required: false
        style: form
        explode: true
        schema:
          type: string
      - name: vendor
        in: query
        required: false
        style: form
        explode: true
        schema:
          type: string
      responses:
        '200':
          description: list configs result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PagedResponseModel-Config'
        '499':
          description: client error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '599':
          description: server error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
  /eco/ocr/config/get/shared:
    get:
      tags:
      - ocr-config
      summary: List shared configs
      description: List shared configs
      operationId: ListSharedConfigs
      parameters:
      - name: code
        in: query
        description: shared config code
        required: true
        style: form
        explode: true
        schema:
          type: string
      responses:
        '200':
          description: get config result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArrayResponseModel-Config'
        '499':
          description: client error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '599':
          description: server error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
  /eco/ocr/config/update/one:
    post:
      tags:
      - ocr-config
      summary: UpdateConfig
      description: update config
      operationId: UpdateConfig
      requestBody:
        description: update config request
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateConfigRequest'
        required: true
      responses:
        '200':
          description: the updated config
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataResponseModel-Config'
        default:
          description: the failure response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-codegen-request-body-name: body
  /eco/ocr/config/vendors:
    get:
      tags:
      - ocr-config
      summary: GetConfigVendors
      description: get config vendors
      operationId: GetConfigVendors
      responses:
        '200':
          description: get config types result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArrayResponseModel-WebType'
        default:
          description: the failure response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
  /eco/ocr/process/binary:
    post:
      tags:
      - ocr
      summary: ProcessOCRBinary
      description: Process OCR
      operationId: ProcessOCRBinary
      parameters:
      - name: code
        in: query
        description: process ocr config code
        required: true
        style: form
        explode: true
        schema:
          type: string
      - name: vendor_action
        in: query
        description: the action code
        required: false
        style: form
        explode: true
        schema:
          type: string
      - name: template_id
        in: query
        description: the template id
        required: false
        style: form
        explode: true
        schema:
          type: string
      - name: vendor_params_json
        in: query
        description: the ocr request parameters in json format
        required: false
        style: form
        explode: true
        schema:
          type: string
      - name: vendor_param_xxx
        in: query
        description: vendor parameter xxx
        required: false
        style: form
        explode: true
        schema:
          type: string
      requestBody:
        description: file content
        content:
          '*/*':
            schema:
              type: string
              format: binary
        required: true
      responses:
        '200':
          description: the ocr result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataResponseModel-ProcessOCRResponse'
        '499':
          description: client error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '599':
          description: server error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-codegen-request-body-name: body
  /eco/ocr/process/json:
    post:
      tags:
      - ocr
      summary: ProcessOCRJSON
      description: Process OCR
      operationId: ProcessOCRJSON
      requestBody:
        description: process ocr request
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProcessOCRJSONRequest'
        required: true
      responses:
        '200':
          description: the ocr result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataResponseModel-ProcessOCRResponse'
        '499':
          description: client error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
        '599':
          description: server error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-codegen-request-body-name: body
components:
  schemas:
    ArrayResponseModel-Config:
      type: object
      properties:
        code:
          type: string
        data:
          type: array
          items:
            $ref: '#/components/schemas/Config'
        date:
          type: string
        env_name:
          type: string
        message:
          type: string
        message_params:
          type: array
          items:
            type: string
        total:
          type: integer
        trace_id:
          type: string
    ArrayResponseModel-WebType:
      type: object
      properties:
        code:
          type: string
        data:
          type: array
          items:
            $ref: '#/components/schemas/WebType'
        date:
          type: string
        env_name:
          type: string
        message:
          type: string
        message_params:
          type: array
          items:
            type: string
        total:
          type: integer
        trace_id:
          type: string
    CodeWithParams:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        message_params:
          type: array
          items:
            type: string
    CommonModel:
      type: object
      properties:
        code:
          type: string
        date:
          type: string
        env_name:
          type: string
        message:
          type: string
        message_params:
          type: array
          items:
            type: string
        trace_id:
          type: string
    Config:
      type: object
      properties:
        code:
          type: string
        config_checksum:
          type: string
        create_time:
          type: string
          format: date-time
        creator:
          type: string
        description:
          type: string
        id:
          type: string
        language:
          type: string
        modifier:
          type: string
        modify_time:
          type: string
          format: date-time
        source_tenant:
          type: string
        tenant:
          type: string
        type:
          type: string
        vendor:
          type: string
        vendor_endpoint:
          type: string
        vendor_properties:
          $ref: '#/components/schemas/Content'
        vendor_secret:
          type: string
        vendor_user:
          type: string
    Content:
      type: object
      additionalProperties:
        type: string
    CreateConfigRequest:
      type: object
      properties:
        code:
          type: string
          description: 'Code The config code, unique in a tenant

            - required

            - minimum length of 1. maximum length of 40

            - can contain only alphanumeric characters(0-9,a-z,A-Z), underscores (_), and dashes (-)'
          example: config-code-sample
          maxLength: 40
          minLength: 1
        description:
          type: string
          description: Description The description of the config
        language:
          type: string
          description: 'Language The ocr language, follow the [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) Tags.

            - required

            - `en` or `zh` for simple language

            - `en-us` or `zh-cn` for specific region

            - `mul` for multiple language'
          example: zh-cn
        type:
          type: string
          description: 'Type The ocr type, specify the type of ocr result

            - required

            - such as `id-card`, `vehicle-card`...

            - `custom` for customized type'
          example: id-card
        vendor:
          type: string
          description: 'Vendor The ocr vendor

            - required

            - Enum: `default`, ``'
          example: huawei
        vendor_endpoint:
          type: string
          description: VendorEndpoint The endpoint of the vendor
        vendor_properties:
          allOf:
          - $ref: '#/components/schemas/Content'
          description: VendorProperties Additional properties of the vendor
        vendor_secret:
          type: string
          description: VendorSecret The password / secret key of the vendor
        vendor_user:
          type: string
          description: VendorUser The user / access key of the vendor
      required:
      - code
      - language
      - type
    DataResponseModel-Config:
      type: object
      properties:
        code:
          type: string
        data:
          $ref: '#/components/schemas/Config'
        date:
          type: string
        env_name:
          type: string
        message:
          type: string
        message_params:
          type: array
          items:
            type: string
        trace_id:
          type: string
    DataResponseModel-ProcessOCRResponse:
      type: object
      properties:
        code:
          type: string
        data:
          $ref: '#/components/schemas/ProcessOCRResponse'
        date:
          type: string
        env_name:
          type: string
        message:
          type: string
        message_params:
          type: array
          items:
            type: string
        trace_id:
          type: string
    DeleteConfigRequest:
      type: object
      properties:
        cascade:
          type: boolean
        code:
          type: string
          description: 'Code The config code, unique in a tenant

            - required

            - minimum length of 1. maximum length of 40

            - can contain only alphanumeric characters(0-9,a-z,A-Z), underscores (_), and dashes (-)'
          example: config-code-sample
          maxLength: 40
          minLength: 1
        force:
          type: boolean
          example: false
      required:
      - code
    ErrorResponseModel:
      type: object
      properties:
        code:
          type: string
        date:
          type: string
        env_name:
          type: string
        errors:
          type: array
          items:
            $ref: '#/components/schemas/CodeWithParams'
        message:
          type: string
        message_params:
          type: array
          items:
            type: string
        trace_id:
          type: string
    PagedResponseModel-Config:
      type: object
      properties:
        code:
          type: string
        current_page:
          type: integer
        data:
          type: array
          items:
            $ref: '#/components/schemas/Config'
        date:
          type: string
        env_name:
          type: string
        message:
          type: string
        message_params:
          type: array
          items:
            type: string
        page_size:
          type: integer
        total:
          type: integer
        trace_id:
          type: string
    ProcessOCRJSONRequest:
      type: object
      properties:
        code:
          type: string
          description: 'Code The config code, unique in a tenant

            - required

            - minimum length of 1. maximum length of 40

            - can contain only alphanumeric characters(0-9,a-z,A-Z), underscores (_), and dashes (-)'
          example: config-code-sample
          maxLength: 40
          minLength: 1
        content:
          type: string
          description: Content the base64 format of file
        content_type:
          type: string
          description: ContentType the content type of file
        template_id:
          type: string
          description: TemplateId the template id
        url:
          type: string
          description: URL the url of file
        vendor_action:
          type: string
          description: VendorAction the action code
        vendor_params:
          type: object
          additionalProperties:
            type: string
          description: VendorParams the ocr request parameters
      required:
      - code
    ProcessOCRResponse:
      type: object
      properties:
        process_id:
          type: string
        result:
          type: object
    ShareConfigRequest:
      type: object
      properties:
        code:
          type: string
          description: 'Code The config code, unique in a tenant

            - required

            - minimum length of 1. maximum length of 40

            - can contain only alphanumeric characters(0-9,a-z,A-Z), underscores (_), and dashes (-)'
          example: config-code-sample
          maxLength: 40
          minLength: 1
        description:
          type: string
          description: Description The description of the config
        targetTenant:
          type: string
        vendor_properties:
          allOf:
          - $ref: '#/components/schemas/Content'
          description: VendorProperties Additional properties of the vendor
      required:
      - code
    UpdateConfigRequest:
      type: object
      properties:
        code:
          type: string
          description: 'Code The config code, unique in a tenant

            - required

            - minimum length of 1. maximum length of 40

            - can contain only alphanumeric characters(0-9,a-z,A-Z), underscores (_), and dashes (-)'
          example: config-code-sample
          maxLength: 40
          minLength: 1
        description:
          type: string
          description: Description The description of the config
        vendor_endpoint:
          type: string
          description: VendorEndpoint The endpoint of the vendor
        vendor_properties:
          allOf:
          - $ref: '#/components/schemas/Content'
          description: VendorProperties Additional properties of the vendor
        vendor_secret:
          type: string
          description: VendorSecret The password / secret key of the vendor
        vendor_user:
          type: string
          description: VendorUser The user / access key of the vendor
      required:
      - code
    WebOption:
      type: object
      properties:
        description:
          type: string
        enums:
          type: array
          items:
            type: string
        extend_model:
          type: boolean
        field:
          type: string
        label:
          type: string
        required:
          type: boolean
        type:
          $ref: '#/components/schemas/WebOptionType'
    WebOptionType:
      type: string
      enum:
      - text
      - number
      - selector
      - secret
      x-enum-varnames:
      - WebOptionTypeText
      - WebOptionTypeNumber
      - WebOptionTypeSelector
      - WebOptionTypeSecret
    WebType:
      type: object
      properties:
        config_options:
          type: array
          items:
            $ref: '#/components/schemas/WebOption'
        description:
          type: string
        index:
          type: integer
        label:
          type: string
        language:
          type: string
        runtime_options:
          type: array
          items:
            $ref: '#/components/schemas/WebOption'
        type:
          type: string
        value:
          type: string
jsonSchemaDialect: https://spec.openapis.org/oas/3.1/dialect/base
x-mo-gateway-auth-enabled: true
x-mo-gateway-cors-enabled: true
x-original-swagger-version: '2.0'