Self.ID Pins API

Manage persistent pinning of streams on the local node

Operations 3

GET /api/v0/pins/{streamId} Get Pin Status #
POST /api/v0/pins/{streamId} Pin Stream #
DELETE /api/v0/pins/{streamId} Unpin Stream #

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/self-id-pins-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

self-id-pins-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ceramic HTTP Commits Pins API
  description: Low-level REST HTTP API for the Ceramic node (js-ceramic), providing the underlying transport for all Self.ID SDK operations. Exposes endpoints to create/load streams by StreamID or CommitID, batch-load streams via multiQuery, manage anchoring and pinning, and access the Data Feed for custom indexers.
  version: 0.1.0
  contact:
    name: Ceramic Network
    url: https://ceramic.network
  license:
    name: Apache-2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: https://gateway.ceramic.network
  description: Ceramic Gateway (read-only)
- url: https://ceramic-clay.3boxlabs.com
  description: Clay testnet node
tags:
- name: Pins
  description: Manage persistent pinning of streams on the local node
paths:
  /api/v0/pins/{streamId}:
    get:
      tags:
      - Pins
      summary: Get Pin Status
      description: Retrieves the pinning status of a stream on the local Ceramic node.
      operationId: getPinStatus
      parameters:
      - name: streamId
        in: path
        required: true
        description: The StreamID to check pin status for
        schema:
          type: string
          example: kjzl6cwe1jw147ww5d8pswh1hjh686257r81ifgom1bou37r6vgdmk7jtnka91t
      responses:
        '200':
          description: Pin status retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PinStatusResponse'
        '404':
          description: Stream not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    post:
      tags:
      - Pins
      summary: Pin Stream
      description: Pins a stream to the local Ceramic node, ensuring it is persistently stored and not garbage collected.
      operationId: pinStream
      parameters:
      - name: streamId
        in: path
        required: true
        description: The StreamID to pin
        schema:
          type: string
          example: kjzl6cwe1jw147ww5d8pswh1hjh686257r81ifgom1bou37r6vgdmk7jtnka91t
      responses:
        '200':
          description: Stream pinned successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PinResponse'
        '400':
          description: Invalid stream ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    delete:
      tags:
      - Pins
      summary: Unpin Stream
      description: Removes the pin for a stream from the local Ceramic node, allowing it to be garbage collected.
      operationId: unpinStream
      parameters:
      - name: streamId
        in: path
        required: true
        description: The StreamID to unpin
        schema:
          type: string
          example: kjzl6cwe1jw147ww5d8pswh1hjh686257r81ifgom1bou37r6vgdmk7jtnka91t
      responses:
        '200':
          description: Stream unpinned successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PinResponse'
        '404':
          description: Stream not pinned or not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    PinResponse:
      type: object
      properties:
        streamId:
          type: string
          description: The StreamID that was pinned or unpinned
          example: kjzl6cwe1jw147ww5d8pswh1hjh686257r81ifgom1bou37r6vgdmk7jtnka91t
        isPinned:
          type: boolean
          description: Whether the stream is now pinned
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message
    PinStatusResponse:
      type: object
      properties:
        streamId:
          type: string
          description: The StreamID
          example: kjzl6cwe1jw147ww5d8pswh1hjh686257r81ifgom1bou37r6vgdmk7jtnka91t
        pinnedStreamIds:
          type: array
          description: List of pinned StreamIDs (contains the requested ID if pinned)
          items:
            type: string