TrustLayer Document Types API

The Document Types API from TrustLayer — 2 operation(s) for document types.

Operations 2

GET /document-types List Document Types #
GET /document-types/{documentTypeId} Fetch Document Type #

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/trustlayer-document-types-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

trustlayer-document-types-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Trustlayer Document Types API
  license:
    name: Apache 2.0
    url: https://apache.org/licenses/LICENSE-2.0
  x-refined-note:
  - x-deprecated differs across the merged source definitions and was not carried
  - x-deprecation-date differs across the merged source definitions and was not carried
  - x-sunset differs across the merged source definitions and was not carried
  version: '1.0'
  description: 'Operations tagged Document Types across 2 of this provider''s published API definitions: trustlayer-platform-v1-openapi.yaml, trustlayer-platform-v2-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: http://localhost:4000/v1
  description: Local
- url: https://api.trustlayer.io/v1
  description: Production
- url: https://api.trustlayer.io/v2
  description: Production Server
- url: https://api.integration.trustlayer.dev/v2
  description: Integration Server
- url: https://api.demo.trustlayer.dev/v2
  description: Demo Server
tags:
- name: Document Types
paths:
  /document-types:
    get:
      summary: List Document Types
      tags:
      - Document Types
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    $ref: '#/components/schemas/response-status'
                  data:
                    x-stoplight:
                      id: 0c0z0q9yanm9p
                    type: array
                    items:
                      $ref: '#/components/schemas/document-type'
                  meta:
                    $ref: '#/components/schemas/collection-meta'
      operationId: get-document-types
      deprecated: true
      description: This endpoint returns the complete list of document types. No pagination, filtering or sorting option is supported at the moment.
      security:
      - API Key: []
    servers:
    - url: http://localhost:4000/v1
      description: Local
    - url: https://api.trustlayer.io/v1
      description: Production
  /document-types/{documentTypeId}:
    parameters:
    - schema:
        type: string
      name: documentTypeId
      in: path
      required: true
    get:
      summary: Fetch Document Type
      tags:
      - Document Types
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    $ref: '#/components/schemas/response-status'
                  data:
                    $ref: '#/components/schemas/document-type'
        ? ''
        : content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    $ref: '#/components/schemas/response-status'
                  data:
                    $ref: '#/components/schemas/document-type'
      operationId: get-document-types-id
      deprecated: true
      description: This endpoint returns a single document type.
      security:
      - API Key: []
    servers:
    - url: http://localhost:4000/v1
      description: Local
    - url: https://api.trustlayer.io/v1
      description: Production
components:
  schemas:
    collection-meta:
      title: collection-meta
      type: object
      properties:
        count:
          type: number
          description: The number of documents according to the specified filters
        pages:
          type: number
        totalCount:
          type: number
          description: The total number of documents in the collection
        totalPages:
          type: number
      x-internal: true
    response-status:
      type: string
      title: Response Status
      enum:
      - success
      - fail
      - error
      readOnly: true
      x-examples:
        Success: success
      description: The possible values are "success", "fail", and "error".
      x-internal: true
    document-type:
      description: ''
      type: object
      title: Document Type
      x-examples:
        Certificate of insurance:
          type: document-types
          id: 60a27c517fd4e152a9642347
          name: Certificate of Insurance
          system: true
          pluralName: Certificates of Insurance
      properties:
        type:
          type: string
          default: document-types
          readOnly: true
        id:
          type: string
        name:
          type: string
          minLength: 1
        system:
          type: boolean
        pluralName:
          type: string
          minLength: 1
      required:
      - id
      - name
      - system
      - pluralName
    objectId:
      title: ObjectId
      type: string
      format: ObjectId
      examples:
      - 507f1f77bcf86cd799439011
  securitySchemes:
    Token:
      name: Authorization
      type: apiKey
      in: header
      description: ''
    Bearer_Auth:
      type: http
      scheme: bearer
      description: 'Enter your API token:'
x-refined-from:
- trustlayer-platform-v1-openapi.yaml
- trustlayer-platform-v2-openapi.yaml