Kody Follows API

Follow a package or plain repo by @handle/name.

GitHub OpenAPI

Operations 3

GET /v1/follows List follows owned by the org this connection is bound to #
POST /v1/follows Follow a package or plain repo by @handle/name so this org receives… #
DELETE /v1/follows Unfollow a package or plain repo by @handle/name for the org this connection is… #

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/kody-codes:kody-codes-follows-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

kody-codes-follows-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Kody Follows API
  version: 1.0.0
  description: 'HTTP API for a Kody account. Versioned under `/v1`; changes within v1 are additive. See https://kody.codes/docs/api-versioning.md for deprecation windows and migration policy (we do not break users; phased migration with codemods when needed). Authenticate with `Authorization: Bearer kody_at_…`. Tokens are minted by the MCP `api` tool (`tokenCreate`) or by another token, and each carries explicit org-permission scopes. There is no write-implies-read hierarchy. Tokens require an explicit lifetime: lifetime "short" (3600s idle / 86400s max) or "long" (1209600s idle / 7776000s max), or both idle_ttl_seconds (60-1209600) and max_lifetime_seconds (up to 7776000). Each successful request slides expires_at forward, never past max_expires_at. At most 500 active tokens per account; a new mint reclaims the active token(s) with the least remaining life (sooner of idle deadline and absolute expiry), never the caller''s own token. Errors use `{ "error": { "code", "message", "details"? } }` (see components.schemas.Error). Documented 4xx/5xx responses reference that schema. Requests are rate limited per IP (600/min) and per token (300/min); HTTP 429 includes `Retry-After`. Edge-generated 429 responses also include a `RateLimit-Policy` advertisement; entitlement 429s send `Retry-After` only. `operationId` values match Kody capability names, except deprecated forwarders, which keep their old ids and forward to the capability their description names. Every id, deprecated ones included, works with the MCP `api` tool (`{ operationId, params }`, where params hold path, query, and body fields flat). Interactive docs: https://api-docs.kody.codes


    Scopes:

    - `file:read`: Granted `file:read` in this org. - `file:comment`: Granted `file:comment` in this org. - `file:write`: Granted `file:write` in this org. - `file:delete`: Granted `file:delete` in this org. - `file:manage_access`: Granted `file:manage_access` in this org. - `package:read`: Read saved packages and package-backed resources. - `package:execute`: Execute saved packages. - `package:write`: Change saved packages and package-backed resources. - `package:delete`: Delete saved packages. - `package:publish`: Publish packages to the community catalog. - `package:manage_access`: Manage package access grants. - `app:read`: Read package apps. - `app:execute`: Run package apps. - `app:write`: Granted `app:write` in this org. - `app:delete`: Granted `app:delete` in this org. - `app:manage_access`: Granted `app:manage_access` in this org. - `job:read`: Read package jobs and workflow runs. - `job:execute`: Run package jobs. - `job:write`: Granted `job:write` in this org. - `job:manage_access`: Granted `job:manage_access` in this org. - `secret:use`: Use secrets without reading plaintext. - `secret:read`: Granted `secret:read` in this org. - `secret:read_local`: Read secret values on this machine with the Kody CLI, only for secrets a person turned on local reads for. - `secret:write`: Change existing secrets (plaintext is never returned). - `secret:delete`: Granted `secret:delete` in this org. - `secret:manage_access`: Granted `secret:manage_access` in this org. - `integration:use`: Use connected integrations. - `integration:read`: Read OAuth integrations and connected MCP servers. - `integration:write`: Granted `integration:write` in this org. - `integration:delete`: Granted `integration:delete` in this org. - `integration:manage_access`: Granted `integration:manage_access` in this org. - `memory:read`: Read memories and MCP server instructions. - `memory:write`: Change existing memories. - `memory:delete`: Granted `memory:delete` in this org. - `memory:manage_access`: Granted `memory:manage_access` in this org. - `email:read`: Read inboxes and messages. - `email:send`: Send email. - `email:write`: Granted `email:write` in this org. - `email:delete`: Granted `email:delete` in this org. - `email:manage_access`: Granted `email:manage_access` in this org.'
servers:
- url: https://api.kody.codes
security:
- apiToken: []
tags:
- name: follows
  description: Follow a package or plain repo by @handle/name.
paths:
  /v1/follows:
    get:
      operationId: followList
      summary: List follows owned by the org this connection is bound to
      description: 'List follows owned by the org this connection is bound to. Each row is named by @handle/name. Status is active or paused. Paused follows stop receiving events until followAdd resumes them. recent_updates lists the newest follow events no enabled package subscription handled (Kody keeps them instead of dropping them). This list never includes internal ids.


        Org permission: `org:read`.'
      tags:
      - follows
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  follows:
                    type: array
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                          description: Target @handle/name.
                        kind:
                          type: string
                          enum:
                          - package
                          - repo
                        status:
                          type: string
                          enum:
                          - active
                          - paused
                        events:
                          type: array
                          items:
                            type: string
                            enum:
                            - published
                            - pushed
                          description: 'Events this follow delivers: published and/or pushed.'
                        created_at:
                          type: string
                        paused_at:
                          type:
                          - string
                          - 'null'
                        paused_reason:
                          anyOf:
                          - type: string
                            enum:
                            - target_missing
                            - access_lost
                          - type: 'null'
                          description: 'Why a paused follow paused: target_missing or access_lost. Null when active.'
                        last_delivery_skip_reason:
                          description: Set when a delivery was skipped before the handler ran, for example zero_credits.
                          type:
                          - string
                          - 'null'
                      required:
                      - name
                      - kind
                      - status
                      - events
                      - created_at
                      - paused_at
                      - paused_reason
                      - last_delivery_skip_reason
                      additionalProperties: false
                  recent_updates:
                    type: array
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                          description: Target @handle/name.
                        kind:
                          type: string
                          enum:
                          - package
                          - repo
                        event:
                          type: string
                          enum:
                          - published
                          - pushed
                        occurred_at:
                          type: string
                        summary:
                          type: string
                          description: 'For example "Published version abc1234" or "3 commits pushed to main: Fix typo".'
                      required:
                      - name
                      - kind
                      - event
                      - occurred_at
                      - summary
                      additionalProperties: false
                    description: Newest first, at most 20. Events no enabled package subscription in this org handled.
                required:
                - follows
                - recent_updates
                additionalProperties: false
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '409':
          $ref: '#/components/responses/Error'
        '413':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/Error'
        '503':
          $ref: '#/components/responses/Error'
        default:
          $ref: '#/components/responses/Error'
      security:
      - apiToken: []
      x-kody-permission: org:read
      x-kody-read-only: true
    post:
      operationId: followAdd
      summary: Follow a package or plain repo by @handle/name so this org receives…
      description: 'Follow a package or plain repo by @handle/name so this org receives follow.published when its live version moves and, when you can read it, follow.pushed when the default branch moves. Public targets are followable by any signed-in caller. Private targets require package:read (a use grant qualifies; execute-only does not) and a missing or unreadable target is reported as not found. Creating a follow that already exists returns it and, if it was paused, resumes it when you can still read the target. Pass events to choose published and/or pushed; omit them to keep the current choice (both for a new follow).


        Org permission: `org:read`.'
      tags:
      - follows
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                name:
                  type: string
                  minLength: 1
                  description: Target to follow, as @handle/name. handle is the owner org slug.
                kind:
                  description: package or repo. Omit to follow the package when both exist under that name, otherwise the plain repo.
                  type: string
                  enum:
                  - package
                  - repo
                events:
                  minItems: 1
                  type: array
                  items:
                    type: string
                    enum:
                    - published
                    - pushed
                  description: 'Events to deliver: published (follow.published, packages only) and/or pushed (follow.pushed, needs read access).'
              required:
              - name
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  follow:
                    type: object
                    properties:
                      name:
                        type: string
                        description: Target @handle/name.
                      kind:
                        type: string
                        enum:
                        - package
                        - repo
                      status:
                        type: string
                        enum:
                        - active
                        - paused
                      events:
                        type: array
                        items:
                          type: string
                          enum:
                          - published
                          - pushed
                        description: 'Events this follow delivers: published and/or pushed.'
                      created_at:
                        type: string
                      paused_at:
                        type:
                        - string
                        - 'null'
                      paused_reason:
                        anyOf:
                        - type: string
                          enum:
                          - target_missing
                          - access_lost
                        - type: 'null'
                        description: 'Why a paused follow paused: target_missing or access_lost. Null when active.'
                      last_delivery_skip_reason:
                        description: Set when a delivery was skipped before the handler ran, for example zero_credits.
                        type:
                        - string
                        - 'null'
                    required:
                    - name
                    - kind
                    - status
                    - events
                    - created_at
                    - paused_at
                    - paused_reason
                    - last_delivery_skip_reason
                    additionalProperties: false
                required:
                - follow
                additionalProperties: false
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '409':
          $ref: '#/components/responses/Error'
        '413':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/Error'
        '503':
          $ref: '#/components/responses/Error'
        default:
          $ref: '#/components/responses/Error'
      security:
      - apiToken: []
      x-kody-permission: org:read
      x-kody-read-only: false
    delete:
      operationId: followRemove
      summary: Unfollow a package or plain repo by @handle/name for the org this connection is…
      description: 'Unfollow a package or plain repo by @handle/name for the org this connection is bound to. Works for paused follows too, including ones whose target was deleted. Returns the removed follow.


        Org permission: `org:read`.'
      tags:
      - follows
      parameters:
      - name: name
        in: query
        required: true
        description: Followed target, as @handle/name (see followList).
        schema:
          type: string
          minLength: 1
          description: Followed target, as @handle/name (see followList).
      - name: kind
        in: query
        required: false
        description: package or repo, when the org follows both names.
        schema:
          description: package or repo, when the org follows both names.
          type: string
          enum:
          - package
          - repo
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  removed:
                    type: object
                    properties:
                      name:
                        type: string
                        description: Target @handle/name.
                      kind:
                        type: string
                        enum:
                        - package
                        - repo
                      status:
                        type: string
                        enum:
                        - active
                        - paused
                      events:
                        type: array
                        items:
                          type: string
                          enum:
                          - published
                          - pushed
                        description: 'Events this follow delivers: published and/or pushed.'
                      created_at:
                        type: string
                      paused_at:
                        type:
                        - string
                        - 'null'
                      paused_reason:
                        anyOf:
                        - type: string
                          enum:
                          - target_missing
                          - access_lost
                        - type: 'null'
                        description: 'Why a paused follow paused: target_missing or access_lost. Null when active.'
                      last_delivery_skip_reason:
                        description: Set when a delivery was skipped before the handler ran, for example zero_credits.
                        type:
                        - string
                        - 'null'
                    required:
                    - name
                    - kind
                    - status
                    - events
                    - created_at
                    - paused_at
                    - paused_reason
                    - last_delivery_skip_reason
                    additionalProperties: false
                required:
                - removed
                additionalProperties: false
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '409':
          $ref: '#/components/responses/Error'
        '413':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/Error'
        '503':
          $ref: '#/components/responses/Error'
        default:
          $ref: '#/components/responses/Error'
      security:
      - apiToken: []
      x-kody-permission: org:read
      x-kody-read-only: false
components:
  responses:
    Error:
      description: 'Error envelope `{ "error": { "code", "message", "details"? } }`.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Too many requests (edge IP/token limit) or an entitlement / plan-cap limit. Wait at least `Retry-After` seconds before retrying.
      headers:
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
            minimum: 1
        RateLimit-Policy:
          description: 'Edge-generated 429s only: advertised policies (`ip` 600/min, `token` 300/min). Remaining counts are not exposed. Entitlement 429s omit this header.'
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
              enum:
              - invalid_request
              - unauthorized
              - insufficient_scope
              - profile_grant
              - profile_inactive
              - email_verification_required
              - account_suspended
              - guest_not_allowed
              - guest_claim_required
              - feature_unavailable
              - feature_disabled
              - not_found
              - method_not_allowed
              - account_deleting
              - payload_too_large
              - unsupported_media_type
              - rate_limited
              - entitlement_limit
              - capability_error
              - quarantined_inbound_reply
              - package_import_unresolved
              - package_import_unpublished
              - unsupported_dynamic_package_import
              - package_graph_resource_limit
              - publish_not_applied
              - internal_error
              - not_granted
              - context_revoked
              - chain_changed
              - chain_too_long
              - context_not_usable
              - no_execution_context_available
              - execution_context_unavailable
              - execution_context_binding_unavailable
              - execution_context_lease_invalid
              - execution_context_access_lost
              - context_not_revoked
              - commands_opt_in_local
              - commands_operator_only
              - execution_context_commands_off
              - execution_context_command_not_granted
              - execution_context_command_requires_context
              - context_paused
              - context_offline
              - not_service_managed
              - daemon_busy
              - daemon_outdated
              - daemon_timeout
              - daemon_control_failed
            message:
              type: string
            details: {}
  securitySchemes:
    apiToken:
      type: http
      scheme: bearer
      bearerFormat: kody_at_<id>_<secret>
      description: Scoped Kody API token. Each operation lists its required org permission in `x-kody-permission`. Credential scopes narrow that permission.
externalDocs:
  description: Interactive Kody API docs (Scalar)
  url: https://api-docs.kody.codes