notepad.page Agent Tokens API

Sponsor-managed credentials for unattended REST clients.

GitHub OpenAPI

Operations 3

GET /agent-tokens List agent tokens for this notepad #
POST /agent-tokens Create a scoped agent token #
DELETE /agent-tokens/{id} Revoke an agent token #

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/notepad-page:notepad-page-agent-tokens-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

notepad-page-agent-tokens-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Notepad Page Agent Tokens API
  version: 0.3.0
  description: 'Operations tagged Agent Tokens across 2 of this provider''s published API definitions: notepad-page-openapi.json, openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.notepad.page/v1
  description: Version 1
- url: https://api.notepad.page
  description: Unversioned alias for version 1
tags:
- name: Agent Tokens
  description: Sponsor-managed credentials for unattended REST clients.
paths:
  /agent-tokens:
    get:
      security:
      - bearer: []
      operationId: listAgentTokens
      tags:
      - Agent Tokens
      summary: List agent tokens for this notepad
      description: Sponsor authentication is required. Agent tokens cannot call this endpoint. Secret values and hashes are never returned.
      responses:
        '200':
          description: Agent token list
          content:
            application/json:
              schema:
                type: object
                required:
                - tokens
                properties:
                  tokens:
                    type: array
                    items:
                      $ref: '#/components/schemas/AgentToken'
                additionalProperties: false
        '403':
          description: Sponsor authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    post:
      security:
      - bearer: []
      operationId: createAgentToken
      tags:
      - Agent Tokens
      summary: Create a scoped agent token
      description: Sponsor authentication is required. The np_ secret is returned only in this response and is stored only as a SHA-256 hash.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 60
                scope:
                  type: string
                  enum:
                  - publish
                  - full
                expiresInDays:
                  type: number
                  default: 90
                  description: Clamped to 1 through 365 days.
              additionalProperties: false
              required:
              - name
              - scope
      responses:
        '201':
          description: Agent token created
          content:
            application/json:
              schema:
                type: object
                required:
                - token
                - id
                - name
                - scope
                - expiresAt
                properties:
                  token:
                    type: string
                    pattern: ^np_[a-f0-9]{64}$
                    description: Shown once. Store it securely.
                  id:
                    type: string
                  name:
                    type: string
                  scope:
                    type: string
                    enum:
                    - publish
                    - full
                  expiresAt:
                    type: string
                    format: date-time
                additionalProperties: false
        '403':
          description: Sponsor authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://api.notepad.page/v1
      description: Version 1
    - url: https://api.notepad.page
      description: Unversioned alias for version 1
  /agent-tokens/{id}:
    delete:
      security:
      - bearer: []
      operationId: revokeAgentToken
      tags:
      - Agent Tokens
      summary: Revoke an agent token
      description: Sponsor authentication is required. The id must belong to the authenticated publisher.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          maxLength: 128
      responses:
        '200':
          description: Revocation result
          content:
            application/json:
              schema:
                type: object
                required:
                - revoked
                properties:
                  revoked:
                    type: boolean
                additionalProperties: false
        '403':
          description: Sponsor authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://api.notepad.page/v1
      description: Version 1
    - url: https://api.notepad.page
      description: Unversioned alias for version 1
components:
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
            message:
              type: string
          additionalProperties: false
      additionalProperties: false
    AgentToken:
      type: object
      required:
      - id
      - name
      - scope
      - created
      - expires
      - lastUsed
      - revoked
      properties:
        id:
          type: string
        name:
          type: string
        scope:
          type: string
          enum:
          - publish
          - full
        created:
          type: string
          format: date-time
        expires:
          type: string
          format: date-time
        lastUsed:
          type:
          - string
          - 'null'
          format: date-time
        revoked:
          type:
          - string
          - 'null'
          format: date-time
      additionalProperties: false
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: Active REST bearer token for a notepad grant, or an owner-minted np_ agent token on routes allowed by its publish or full scope. Agent tokens cannot manage tokens, sessions, sharing, appeals, or invites. MCP clients normally call the MCP worker, which signs internal API assertions instead of forwarding OAuth access tokens.
externalDocs:
  description: Canonical agent instructions
  url: https://notepad.page/llms.txt
x-refined-from:
- notepad-page-openapi.json
- openapi.json
x-notepad-policy:
  access: open-signup
  html:
    document: complete single-file HTML document
    maxBytes: 2097152
    viewportMetaRequired: true
  quotas:
    pages:
      hobby: 10
      pro: null
    activeHtmlBytes:
      hobby: 20971520
      pro: 1073741824
    publishesPerDay:
      hobby: 50
      pro: 500
    authenticatedRequestsPerMinute: 50
  lifecycle:
    inactivityExpiry: false
    restoreWindowDaysAfterArchive: 30
  visibility:
    default: private
    shareModes:
    - link
    - public
    ipAllowlistField: allowedIps