AutoGPT Files API

The files API from AutoGPT — 1 operation(s) for files.

Operations 1

POST /api/files/upload Upload file to cloud storage #

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/autogpt:autogpt-files-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

autogpt-files-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AutoGPT Agent Server Files API
  summary: AutoGPT Agent Server
  description: This server is used to execute agents that are created by the AutoGPT system.
  version: '0.1'
tags:
- name: Files
paths:
  /api/files/upload:
    post:
      tags:
      - Files
      summary: Upload file to cloud storage
      description: 'Upload a file to cloud storage and return a storage key that can be used

        with FileStoreBlock and AgentFileInputBlock.


        Args:

        file: The file to upload

        user_id: The user ID

        provider: Cloud storage provider ("gcs", "s3", "azure")

        expiration_hours: Hours until file expires (1-48)


        Returns:

        Dict containing the cloud storage path and signed URL'
      operationId: postV1UploadFileToCloudStorage
      security:
      - HTTPBearerJWT: []
      parameters:
      - name: expiration_hours
        in: query
        required: false
        schema:
          type: integer
          default: 24
          title: Expiration Hours
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Body_postV1Upload_file_to_cloud_storage'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/backend__api__model__UploadFileResponse'
        '401':
          $ref: '#/components/responses/HTTP401NotAuthenticatedError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-operation-id-source: normalized
      x-operation-id-original: postV1Upload file to cloud storage
components:
  responses:
    HTTP401NotAuthenticatedError:
      description: Authentication required
      content:
        application/json:
          schema:
            type: object
            properties:
              detail:
                type: string
  schemas:
    Body_postV1Upload_file_to_cloud_storage:
      properties:
        file:
          type: string
          format: binary
          title: File
      type: object
      required:
      - file
      title: Body_postV1Upload file to cloud storage
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    backend__api__model__UploadFileResponse:
      properties:
        file_uri:
          type: string
          title: File Uri
        file_name:
          type: string
          title: File Name
        size:
          type: integer
          title: Size
        content_type:
          type: string
          title: Content Type
        expires_in_hours:
          type: integer
          title: Expires In Hours
      type: object
      required:
      - file_uri
      - file_name
      - size
      - content_type
      - expires_in_hours
      title: UploadFileResponse
    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
  securitySchemes:
    APIKeyAuthenticator-X-Postmark-Webhook-Token:
      type: apiKey
      in: header
      name: X-Postmark-Webhook-Token
    HTTPBearer:
      type: http
      scheme: bearer
    HTTPBearerJWT:
      type: http
      scheme: bearer
      bearerFormat: jwt