Krobar.ai Attachments API

Endpoints for managing file attachments

GitHub OpenAPI

Operations 4

GET /attachments/{attachment_id} Get a signed URL for an attachment #
DELETE /attachments/{attachment_id} Delete an attachment #
POST /attachments Upload a file attachment (max 10MB, allowed types: PDF, Office, images, text… #
GET /attachments List attachments for the current user #

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/krobar-ai:krobar-ai-attachments-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

krobar-ai-attachments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Krobar AI Attachments API
  description: '# API Krobar AI


    Welcome to the Krobar AI API! A FastAPI-based service that is the backend for Krobar.ai


    ## Authentication

    **IMPORTANT**: This API requires an API key for all endpoints except for /health. The API key must be provided in the `X-API-Key` header.


    ```bash

    curl -H "X-API-Key: your-api-key" https://api.krobar.ai/endpoint

    ```'
  contact:
    name: API Support
    email: tristan@kromatic.com
  version: 1.0.0
tags:
- name: Attachments
  description: Endpoints for managing file attachments
paths:
  /attachments/{attachment_id}:
    get:
      tags:
      - Attachments
      summary: Get a signed URL for an attachment
      operationId: get_attachment_attachments__attachment_id__get
      security:
      - APIKeyCookie: []
      parameters:
      - name: attachment_id
        in: path
        required: true
        schema:
          type: string
          title: Attachment Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Attachments
      summary: Delete an attachment
      operationId: delete_attachment_endpoint_attachments__attachment_id__delete
      security:
      - APIKeyCookie: []
      parameters:
      - name: attachment_id
        in: path
        required: true
        schema:
          type: string
          title: Attachment Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /attachments:
    post:
      tags:
      - Attachments
      summary: 'Upload a file attachment (max 10MB, allowed types: PDF, Office, images, text…'
      description: 'Upload a file attachment.


        **File size limit:** 10MB


        **Allowed file types:**

        - PDF: application/pdf

        - Word: application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document

        - Excel: application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

        - PowerPoint: application/vnd.ms-powerpoint, application/vnd.openxmlformats-officedocument.presentationml.presentation

        - CSV: text/csv

        - Plain Text: text/plain

        - Markdown: text/markdown

        - JSON: application/json

        - HTML: text/html, application/xhtml+xml

        - RTF: application/rtf

        - Images: image/png, image/jpeg, image/gif, image/webp'
      operationId: upload_attachment_endpoint_attachments_post
      security:
      - APIKeyCookie: []
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_upload_attachment_endpoint_attachments_post'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileAttachmentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - Attachments
      summary: List attachments for the current user
      operationId: list_attachments_attachments_get
      security:
      - APIKeyCookie: []
      parameters:
      - name: related_object_type
        in: query
        required: false
        schema:
          $ref: '#/components/schemas/src__db__models__attachment__RelatedObjectType'
      - name: related_object_id
        in: query
        required: false
        schema:
          type: string
          format: uuid
          title: Related Object Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AttachmentListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UrlAttachmentResponse:
      properties:
        type:
          type: string
          const: url
          title: Type
          default: url
        id:
          type: string
          format: uuid
          title: Id
        url:
          type: string
          title: Url
        uploaded_by:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Uploaded By
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        attachment_metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Attachment Metadata
      type: object
      required:
      - id
      - url
      - uploaded_by
      - created_at
      - updated_at
      title: UrlAttachmentResponse
    AttachmentListResponse:
      properties:
        attachments:
          items:
            anyOf:
            - $ref: '#/components/schemas/FileAttachmentResponse'
            - $ref: '#/components/schemas/DbObjectAttachmentResponse'
            - $ref: '#/components/schemas/UrlAttachmentResponse'
          type: array
          title: Attachments
        total:
          type: integer
          title: Total
      type: object
      required:
      - attachments
      - total
      title: AttachmentListResponse
    FileAttachmentResponse:
      properties:
        type:
          type: string
          const: file
          title: Type
          default: file
        id:
          type: string
          format: uuid
          title: Id
        original_filename:
          type: string
          title: Original Filename
        url:
          anyOf:
          - type: string
          - type: 'null'
          title: Url
        content_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Content Type
        file_size:
          anyOf:
          - type: integer
          - type: 'null'
          title: File Size
        uploaded_by:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Uploaded By
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        attachment_metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Attachment Metadata
      type: object
      required:
      - id
      - original_filename
      - url
      - content_type
      - file_size
      - uploaded_by
      - created_at
      - updated_at
      title: FileAttachmentResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    DbObjectAttachmentResponse:
      properties:
        type:
          type: string
          const: db_object
          title: Type
          default: db_object
        id:
          type: string
          format: uuid
          title: Id
        object_type:
          type: string
          title: Object Type
        object_id:
          type: string
          title: Object Id
        project_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Project Name
        graph_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Graph Name
        simulation_run_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Simulation Run Name
        sensitivity_analysis_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Sensitivity Analysis Name
        uploaded_by:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Uploaded By
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        attachment_metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Attachment Metadata
      type: object
      required:
      - id
      - object_type
      - object_id
      - uploaded_by
      - created_at
      - updated_at
      title: DbObjectAttachmentResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    src__db__models__attachment__RelatedObjectType:
      type: string
      enum:
      - user
      - graph
      - project
      - conversation
      - simulation_run
      - sensitivity_analysis
      - other
      title: RelatedObjectType
    Body_upload_attachment_endpoint_attachments_post:
      properties:
        file:
          type: string
          contentMediaType: application/octet-stream
          title: File
        related_object_type:
          $ref: '#/components/schemas/src__db__models__attachment__RelatedObjectType'
        related_object_id:
          type: string
          format: uuid
          title: Related Object Id
      type: object
      required:
      - file
      title: Body_upload_attachment_endpoint_attachments_post
  securitySchemes:
    APIKeyCookie:
      type: apiKey
      in: cookie
      name: access_token
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key