PeerTube · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for PeerTube Session API

6 actions 6 updates phrasing extends openapi/peertube-session-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for PeerTube's API. It is a proposal applied on top of the contract, not a document PeerTube publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 6

$.info
$.paths['/api/v1/oauth-clients/local'].get
$.paths['/api/v1/users/token'].post
$.paths['/api/v1/users/revoke-token'].post
$.paths['/api/v1/users/{id}/token-sessions'].get
$.paths['/api/v1/users/{id}/token-sessions/{tokenSessionId}/revoke'].get

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for PeerTube Session API
  version: 1.0.0
extends: openapi/peertube-session-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-22'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 5
- target: $.paths['/api/v1/oauth-clients/local'].get
  update:
    x-apievangelist-phrasing:
      intent: Get the local OAuth client credentials
      effect: read
      questions:
      - Where do I get the client ID and secret needed to log in to PeerTube?
      - What do I need before I can authenticate a user?
      instructions:
      - text: Get the local OAuth client credentials.
      - text: Fetch the client ID and secret for login.
      method: generated
      generated: '2026-11-22'
- target: $.paths['/api/v1/users/token'].post
  update:
    x-apievangelist-phrasing:
      intent: Log in and get access and refresh tokens
      effect: write
      questions:
      - How do I exchange my client credentials for an access token?
      - Can I log in with two-factor authentication?
      instructions:
      - text: Log in and get an access and refresh token.
      - text: Get a new session token using my client credentials.
      method: generated
      generated: '2026-11-22'
- target: $.paths['/api/v1/users/revoke-token'].post
  update:
    x-apievangelist-phrasing:
      intent: Log out and end the current session
      effect: destructive
      questions:
      - How do I log out and destroy my current session?
      - Does logging out revoke both the access and refresh tokens?
      instructions:
      - text: Log out and revoke my current session.
      - text: End my current session and destroy the refresh token.
      method: generated
      generated: '2026-11-22'
- target: $.paths['/api/v1/users/{id}/token-sessions'].get
  update:
    x-apievangelist-phrasing:
      intent: List a user's token sessions
      effect: read
      questions:
      - Which sessions are still active for a user?
      - Can I see all the token sessions a user has?
      instructions:
      - text: List the token sessions for user {id}.
        slots:
          id: path.id
      - text: Show every active session of user {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-22'
- target: $.paths['/api/v1/users/{id}/token-sessions/{tokenSessionId}/revoke'].get
  update:
    x-apievangelist-phrasing:
      intent: Revoke one of a user's token sessions
      effect: destructive
      questions:
      - How do I revoke a single session of a user?
      - Can I kill just one token session without logging out the user?
      instructions:
      - text: Revoke token session {tokenSessionId} for user {id}.
        slots:
          tokenSessionId: path.tokenSessionId
          id: path.id
      - text: End only session {tokenSessionId} of user {id}.
        slots:
          tokenSessionId: path.tokenSessionId
          id: path.id
      method: generated
      generated: '2026-11-22'

Work with this as data

Every overlay 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 openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • 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 overlay
curl "https://apis.io/api/v1/overlays/peertube-session-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?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.