Pinata Files API

Upload, list, and manage pinned files.

Operations 4

POST /v3/files Upload a file #
GET /v3/files/{network} List files on a network #
GET /v3/files/{network}/{id} Get a file by ID #
DELETE /v3/files/{network}/{id} Delete a file by ID #

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/pinata-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

pinata-files-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pinata Files API
  description: Pinata is an IPFS pinning and dedicated-gateway provider.
  version: 3.0.0
  contact:
    name: Pinata Documentation
    url: https://docs.pinata.cloud/api-reference
  license:
    name: Pinata Proprietary
servers:
- url: https://api.pinata.cloud
  description: Pinata core API base URL.
- url: https://uploads.pinata.cloud
  description: Pinata uploads base URL (multipart file upload).
security:
- bearerAuth: []
tags:
- name: Files
  description: Upload, list, and manage pinned files.
paths:
  /v3/files:
    post:
      tags:
      - Files
      summary: Upload a file
      description: 'Uploads a file to Pinata, pinning it to either the public IPFS

        network or to private storage depending on the `network` parameter.

        This endpoint is served from uploads.pinata.cloud.'
      operationId: uploadFile
      servers:
      - url: https://uploads.pinata.cloud
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
              - file
              - network
              properties:
                file:
                  type: string
                  format: binary
                network:
                  type: string
                  enum:
                  - public
                  - private
                name:
                  type: string
                  description: Optional name for the file.
                group_id:
                  type: string
                  description: Optional group identifier to associate the file with.
                keyvalues:
                  type: string
                  description: Optional JSON-encoded metadata.
      responses:
        '200':
          description: File uploaded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UploadResponse'
        '401':
          description: Missing or invalid Bearer token.
  /v3/files/{network}:
    parameters:
    - in: path
      name: network
      required: true
      schema:
        type: string
        enum:
        - public
        - private
    get:
      tags:
      - Files
      summary: List files on a network
      description: 'Returns a paginated list of files pinned on the specified Pinata

        network ("public" or "private").'
      operationId: listFiles
      servers:
      - url: https://api.pinata.cloud
      parameters:
      - in: query
        name: limit
        schema:
          type: integer
          default: 10
      - in: query
        name: pageToken
        schema:
          type: string
      - in: query
        name: name
        schema:
          type: string
      - in: query
        name: cid
        schema:
          type: string
      - in: query
        name: group
        schema:
          type: string
      responses:
        '200':
          description: A page of files.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileList'
  /v3/files/{network}/{id}:
    parameters:
    - in: path
      name: network
      required: true
      schema:
        type: string
        enum:
        - public
        - private
    - in: path
      name: id
      required: true
      schema:
        type: string
    get:
      tags:
      - Files
      summary: Get a file by ID
      operationId: getFileById
      servers:
      - url: https://api.pinata.cloud
      responses:
        '200':
          description: File metadata.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/File'
        '404':
          description: File not found.
    delete:
      tags:
      - Files
      summary: Delete a file by ID
      operationId: deleteFileById
      servers:
      - url: https://api.pinata.cloud
      responses:
        '200':
          description: File deleted.
components:
  schemas:
    FileList:
      type: object
      properties:
        data:
          type: object
          properties:
            files:
              type: array
              items:
                $ref: '#/components/schemas/File'
            next_page_token:
              type: string
              nullable: true
    UploadResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/File'
    File:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        cid:
          type: string
        size:
          type: integer
        mime_type:
          type: string
        number_of_files:
          type: integer
        group_id:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
        keyvalues:
          type: object
          additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Pinata JWT issued from the Pinata dashboard.
externalDocs:
  description: Pinata API reference
  url: https://docs.pinata.cloud/api-reference