Dockflow V3Document API

The V3Document API from Dockflow, for v3document.

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 /v3/downstream/documents/types List document types #
POST /v3/downstream/documents Upload a document to a tradeflow #
POST /v3/downstream/documents/upload-url Get a link to upload a document's file to #
GET /v3/downstream/documents/{reference} List the documents of a tradeflow #
DELETE /v3/downstream/documents/{reference} Delete a document #
PATCH /v3/downstream/documents/{reference} Update a document #
GET /v3/downstream/documents/{reference}/download-url Get a short-lived link to a document's file #
GET /v3/downstream/documents/{reference}/content Get a document's file, base64-encoded #

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/dockflow-com:dockflow-com-v3document-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

dockflow-com-v3document-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dockflow v3 V3Document API
  version: 3.0.0
servers:
- url: https://api.dockflow.com
  description: Production
- url: https://uat.dockflow.com
  description: UAT
security:
- ApiKey: []
tags:
- name: V3Document
paths:
  /v3/downstream/documents/types:
    get:
      operationId: documents-types
      summary: List document types
      tags:
      - V3Document
      responses:
        '200':
          description: The document types a document can be uploaded as.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    type:
                      type: string
                    description:
                      type: string
                  required:
                  - type
                  - description
  /v3/downstream/documents:
    post:
      operationId: v3-document-post
      summary: Upload a document to a tradeflow
      tags:
      - V3Document
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DocumentUpload'
      responses:
        '202':
          description: The document was stored on the tradeflow.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                  tradeflow_reference:
                    type:
                    - string
                    - 'null'
                  document_type:
                    type:
                    - string
                    - 'null'
                  filename:
                    type: string
                  filetype:
                    type: string
                  container_reference:
                    type:
                    - string
                    - 'null'
                  created_at:
                    type:
                    - string
                    - 'null'
                required:
                - id
                - tradeflow_reference
                - document_type
                - filename
                - filetype
                - container_reference
                - created_at
        '500':
          description: ''
          content:
            application/json:
              schema:
                type: string
                const: Failed to create document.
        '400':
          description: ''
          content:
            application/json:
              schema:
                anyOf:
                - type: string
                - type: string
                  const: Content was not a valid JSON object.
                - type: string
                  const: Content was not a valid JSON string.
  /v3/downstream/documents/upload-url:
    post:
      operationId: v3-document-upload-url
      summary: Get a link to upload a document's file to
      tags:
      - V3Document
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DocumentUploadUrlRequest'
      responses:
        '201':
          description: PUT the raw file to upload_url, without an API key, before it expires. It can be used once.
          content:
            application/json:
              schema:
                type: object
                properties:
                  upload_url:
                    type: string
                  method:
                    type: string
                    const: PUT
                  expires_at:
                    type: string
                required:
                - upload_url
                - method
                - expires_at
        '400':
          description: The body is not a JSON object, or a field is missing or invalid.
          content:
            application/json:
              schema:
                anyOf:
                - type: string
                - type: string
                  const: Content was not a valid JSON object.
  /v3/downstream/documents/{reference}:
    get:
      operationId: v3-document-get
      summary: List the documents of a tradeflow
      tags:
      - V3Document
      parameters:
      - name: reference
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The documents attached to the tradeflow.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                        name:
                          type: string
                        filetype:
                          type: string
                        input_name:
                          type:
                          - string
                          - 'null'
                        version:
                          type: integer
                        document_type:
                          type:
                          - object
                          - 'null'
                          properties:
                            name:
                              type: string
                            description:
                              type: string
                          required:
                          - name
                          - description
                        metadata:
                          type:
                          - object
                          - 'null'
                        created_at:
                          type:
                          - string
                          - 'null'
                        updated_at:
                          type:
                          - string
                          - 'null'
                      required:
                      - id
                      - name
                      - filetype
                      - input_name
                      - version
                      - document_type
                      - metadata
                      - created_at
                      - updated_at
                  tradeflow_reference:
                    type: string
                  count:
                    type: integer
                    minimum: 0
                required:
                - data
                - tradeflow_reference
                - count
        '404':
          description: No tradeflow with this reference belongs to the token's entity.
          content:
            application/json:
              schema:
                type: string
                const: Tradeflow not found.
    delete:
      operationId: v3-document-delete
      summary: Delete a document
      tags:
      - V3Document
      parameters:
      - name: reference
        in: path
        required: true
        schema:
          type: string
      responses:
        '500':
          description: ''
          content:
            application/json:
              schema:
                type: string
                const: Failed to delete document.
        '204':
          description: The document was deleted.
        '404':
          description: No document with this id is visible to the token's entity.
          content:
            application/json:
              schema:
                type: string
                const: Document not found.
    patch:
      operationId: v3-document-patch
      summary: Update a document
      tags:
      - V3Document
      parameters:
      - name: reference
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DocumentUpdate'
      responses:
        '500':
          description: ''
          content:
            application/json:
              schema:
                type: string
                const: Failed to update document.
        '200':
          description: The updated document.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                  name:
                    type: string
                  filetype:
                    type: string
                  input_name:
                    type:
                    - string
                    - 'null'
                  version:
                    type: integer
                  document_type:
                    type:
                    - object
                    - 'null'
                    properties:
                      name:
                        type: string
                      description:
                        type: string
                    required:
                    - name
                    - description
                  metadata:
                    type:
                    - object
                    - 'null'
                  created_at:
                    type:
                    - string
                    - 'null'
                  updated_at:
                    type:
                    - string
                    - 'null'
                required:
                - id
                - name
                - filetype
                - input_name
                - version
                - document_type
                - metadata
                - created_at
                - updated_at
        '400':
          description: ''
          content:
            application/json:
              schema:
                anyOf:
                - type: string
                  const: Content was not a valid JSON object.
                - type: string
                  const: Content was not a valid JSON string.
        '404':
          description: No document with this id is visible to the token's entity.
          content:
            application/json:
              schema:
                type: string
                const: Document not found.
  /v3/downstream/documents/{reference}/download-url:
    get:
      operationId: v3-document-download-url
      summary: Get a short-lived link to a document's file
      tags:
      - V3Document
      parameters:
      - name: reference
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: A signed link that downloads the file without an API key until it expires.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                  filename:
                    type: string
                  download_url:
                    type: string
                  expires_at:
                    type: string
                required:
                - id
                - filename
                - download_url
                - expires_at
        '410':
          description: The document exists but its file is no longer stored.
          content:
            application/json:
              schema:
                type: string
                const: The file of this document is no longer stored.
        '503':
          description: This environment cannot sign download links.
          content:
            application/json:
              schema:
                type: string
                const: Download links are unavailable.
        '404':
          description: No document with this id is visible to the token's entity.
          content:
            application/json:
              schema:
                type: string
                const: Document not found.
  /v3/downstream/documents/{reference}/content:
    get:
      operationId: v3-document-content
      summary: Get a document's file, base64-encoded
      tags:
      - V3Document
      parameters:
      - name: reference
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The file, in the shape POST /v3/downstream/documents accepts.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                  filename:
                    type: string
                  document_filename:
                    type:
                    - string
                    - 'null'
                  document_extension:
                    type: string
                  document_type:
                    type:
                    - string
                    - 'null'
                  document_payload_base64:
                    type: string
                required:
                - id
                - filename
                - document_filename
                - document_extension
                - document_type
                - document_payload_base64
        '410':
          description: The document exists but its file is no longer stored.
          content:
            application/json:
              schema:
                type: string
                const: The file of this document is no longer stored.
        '404':
          description: No document with this id is visible to the token's entity.
          content:
            application/json:
              schema:
                type: string
                const: Document not found.
components:
  schemas:
    DocumentUpdate:
      type: object
      description: Only the fields sent are changed.
      properties:
        document_filename:
          type: string
        document_type:
          type: string
          description: A type name from GET /v3/downstream/documents/types. An unknown name leaves the type unchanged.
        container_reference:
          type: string
          description: Links the document to this container; an unknown reference unlinks it.
      title: DocumentUpdate
    DocumentUpload:
      type: object
      properties:
        tradeflow_reference:
          type: string
          description: The tradeflow to attach the document to.
          examples:
          - PO4564268
        document_extension:
          type: string
          enum:
          - pdf
          - doc
          - docx
          - xls
          - xlsx
          - jpg
          - jpeg
          - png
          - gif
          - bmp
          - tif
          - tiff
          - svg
          - webp
        document_payload_base64:
          type: string
          description: The file contents, base64-encoded.
        document_type:
          type: string
          description: 'A type name from GET /v3/downstream/documents/types. Unknown or omitted: no type.'
        document_filename:
          type: string
          description: File name without extension, shown in Dockflow.
        container_reference:
          type: string
          description: Links the document to one container of the tradeflow.
      required:
      - tradeflow_reference
      - document_extension
      - document_payload_base64
      title: DocumentUpload
    DocumentUploadUrlRequest:
      type: object
      properties:
        tradeflow_reference:
          type: string
          description: The tradeflow to attach the document to.
          examples:
          - PO4564268
        document_extension:
          type: string
          enum:
          - pdf
          - doc
          - docx
          - xls
          - xlsx
          - jpg
          - jpeg
          - png
          - gif
          - bmp
          - tif
          - tiff
          - svg
          - webp
        document_type:
          type: string
          description: 'A type name from GET /v3/downstream/documents/types. Unknown or omitted: no type.'
        document_filename:
          type: string
          description: File name without extension, shown in Dockflow.
        container_reference:
          type: string
          description: Links the document to one container of the tradeflow.
      required:
      - tradeflow_reference
      - document_extension
      title: DocumentUploadUrlRequest
  securitySchemes:
    ApiKey:
      type: http
      description: An API key, `{env}_{entity-slug}_{secret}`.
      scheme: bearer