Collate Attachments API

APIs related to uploading attachments.

Operations 5

GET /v1/attachments/{id} Get asset by id #
DELETE /v1/attachments/{id} Delete attachment #
GET /v1/attachments/{id}/download Download asset #
GET /v1/attachments/fqn/{fqn}/{assetType} List attachments by fqn #
POST /v1/attachments/upload Upload attachment #

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/collate:collate-attachments-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

collate-attachments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OpenMetadata Attachments API
  description: Common types and API definition for OpenMetadata
  contact:
    name: OpenMetadata
    url: https://open-metadata.org
    email: openmetadata-dev@googlegroups.com
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  version: 2.0.5
servers:
- url: /api
  description: Current Host
- url: http://localhost:8585/api
  description: Endpoint URL
security:
- BearerAuth: []
tags:
- name: Attachments
  description: APIs related to uploading attachments.
paths:
  /v1/attachments/{id}:
    get:
      tags:
      - Attachments
      operationId: getAssetById
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        default:
          description: default response
          content:
            application/json: {}
      summary: Get asset by id
      x-summary-source: derived
    delete:
      tags:
      - Attachments
      operationId: deleteAttachment
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: hardDelete
        in: query
        schema:
          type: boolean
          default: false
      responses:
        default:
          description: default response
          content:
            application/json: {}
      summary: Delete attachment
      x-summary-source: derived
  /v1/attachments/{id}/download:
    get:
      tags:
      - Attachments
      operationId: downloadAsset
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: expiry
        in: query
        schema:
          type: integer
          format: int32
          default: 3600
      - name: direct
        in: query
        schema:
          type: boolean
          default: false
      responses:
        default:
          description: default response
          content:
            application/json: {}
      summary: Download asset
      x-summary-source: derived
  /v1/attachments/fqn/{fqn}/{assetType}:
    get:
      tags:
      - Attachments
      operationId: listAttachmentsByFqn
      parameters:
      - name: fqn
        in: path
        required: true
        schema:
          type: string
      - name: assetType
        in: path
        required: true
        schema:
          type: string
          enum:
          - Inline
          - External
      - name: sortBy
        in: query
        schema:
          type: string
      - name: sortOrder
        in: query
        schema:
          type: string
      - name: limit
        in: query
        schema:
          type: integer
          format: int32
      - name: offset
        in: query
        schema:
          type: integer
          format: int32
          default: 0
      responses:
        default:
          description: default response
          content:
            application/json: {}
      summary: List attachments by fqn
      x-summary-source: derived
  /v1/attachments/upload:
    post:
      tags:
      - Attachments
      operationId: uploadAttachment
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  $ref: '#/components/schemas/FormDataContentDisposition'
                entityLink:
                  type: string
                assetType:
                  type: string
                  default: Inline
                  enum:
                  - Inline
                  - External
      responses:
        default:
          description: default response
          content:
            application/json: {}
      summary: Upload attachment
      x-summary-source: derived
components:
  schemas:
    FormDataContentDisposition:
      type: object
      properties:
        type:
          type: string
        parameters:
          type: object
          additionalProperties:
            type: string
        fileName:
          type: string
        creationDate:
          type: string
          format: date-time
        modificationDate:
          type: string
          format: date-time
        readDate:
          type: string
          format: date-time
        size:
          type: integer
          format: int64
        name:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
x-provenance:
  method: harvested
  publisher: Collate
  source: https://sandbox.open-metadata.org/swagger.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)