notepad.page Sharing API
Explicit sharing and share-token management.
Explicit sharing and share-token management.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/notepad-page:notepad-page-sharing-api"
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.
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: 3.2.0
info:
title: Notepad Page Sharing API
version: 0.3.0
description: 'Operations tagged Sharing 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: Sharing
description: Explicit sharing and share-token management.
paths:
/shares:
get:
security:
- bearer: []
operationId: listShares
tags:
- Sharing
summary: List active shares
description: Returns owner-visible share inventory across the notepad, optionally filtered to one page. Claimed invite URLs are returned for owner reference but flagged as unusable for other recipients.
parameters:
- name: pageId
in: query
required: false
description: Optional owner-scoped page id.
schema:
type: string
maxLength: 100
responses:
'200':
description: Active share inventory
content:
application/json:
schema:
type: object
required:
- shares
properties:
shares:
type: array
items:
$ref: '#/components/schemas/ShareInventoryRow'
additionalProperties: false
'404':
description: Filtered page not found in this notepad
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
/pages/{id}/share:
post:
security:
- bearer: []
tags:
- Sharing
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Page id returned by create, list, recall, or get.
operationId: sharePage
summary: Share a page
description: Private pages remain owner-only until this succeeds. Shared views are read-only for page content; on living pages, share recipients can interact with server-side form state (unless the share sets interactive:false), while public-page visitors always see live state read-only. Sharing runs the full abuse scan and may block with a relayable 422 reason; a recipient batch runs one scan before minting its links.
requestBody:
$ref: '#/components/requestBodies/Share'
responses:
'201':
description: Share details
content:
application/json:
schema:
$ref: '#/components/schemas/ShareResponse'
'409':
description: Archived page must be restored before sharing
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: Sharing scan blocked the page
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
/pages/{id}/unshare:
post:
security:
- bearer: []
tags:
- Sharing
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Page id returned by create, list, recall, or get.
operationId: unsharePage
summary: Revoke active shares
description: Provide shareId to revoke one active share, or omit it to revoke all active shares. The page returns to private when no active shares remain.
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
shareId:
type: string
maxLength: 100
additionalProperties: false
responses:
'200':
description: Revocation result
content:
application/json:
schema:
type: object
required:
- revoked
- remainingShares
properties:
revoked:
type: boolean
remainingShares:
type: integer
minimum: 0
additionalProperties: false
servers:
- url: https://api.notepad.page/v1
description: Version 1
- url: https://api.notepad.page
description: Unversioned alias for version 1
/pages/{id}/rotate:
post:
security:
- bearer: []
tags:
- Sharing
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Page id returned by create, list, recall, or get.
operationId: rotatePageShare
summary: Rotate the active share token
description: Revokes active shares, mints a new one, and runs the sharing scan. If mode is omitted, the existing mode is reused, defaulting private pages to link.
requestBody:
$ref: '#/components/requestBodies/ShareRotate'
responses:
'200':
description: New share details
content:
application/json:
schema:
$ref: '#/components/schemas/ShareResponse'
'409':
description: Archived page must be restored before rotation
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: Sharing scan blocked the page
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:
ShareInventoryRow:
type: object
required:
- shareId
- pageSlug
- mode
- access
- prebound
- email
- label
- state
- createdAt
- expiresAt
- allowedIps
- url
- urlUsable
properties:
shareId:
type: string
pageSlug:
type: string
mode:
type: string
enum:
- public
- link
access:
type: string
enum:
- invite
- anyone
prebound:
type: boolean
email:
type:
- string
- 'null'
format: email
label:
type:
- string
- 'null'
state:
type: string
enum:
- open
- waiting
- claimed
createdAt:
type: string
format: date-time
expiresAt:
type:
- string
- 'null'
format: date-time
allowedIps:
type: array
items:
type: string
url:
type:
- string
- 'null'
format: uri
urlUsable:
type: boolean
description: False for claimed invite URLs and legacy shares whose token is unavailable.
additionalProperties: false
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
message:
type: string
additionalProperties: false
additionalProperties: false
ShareResponse:
anyOf:
- type: object
required:
- shareId
- mode
- token
- tokenShownOnce
- url
- expiresAt
- allowedIps
properties:
shareId:
type: string
mode:
type: string
enum:
- link
- public
access:
type: string
enum:
- invite
- anyone
token:
type: string
description: The share token; its SHA-256 hash remains the lookup key.
tokenShownOnce:
type: boolean
url:
type: string
format: uri
expiresAt:
type:
- string
- 'null'
format: date-time
allowedIps:
type: array
items:
type: string
email:
type:
- string
- 'null'
format: email
label:
type:
- string
- 'null'
prebound:
type: boolean
additionalProperties: false
- type: object
required:
- mode
- access
- expiresAt
- allowedIps
- shares
properties:
mode:
type: string
enum:
- link
access:
type: string
enum:
- invite
expiresAt:
type:
- string
- 'null'
format: date-time
allowedIps:
type: array
items:
type: string
shares:
type: array
maxItems: 10
items:
type: object
required:
- shareId
- mode
- token
- tokenShownOnce
- url
- expiresAt
- allowedIps
- email
- label
- prebound
properties:
shareId:
type: string
mode:
type: string
enum:
- link
- public
access:
type: string
enum:
- invite
- anyone
token:
type: string
description: The share token; its SHA-256 hash remains the lookup key.
tokenShownOnce:
type: boolean
url:
type: string
format: uri
expiresAt:
type:
- string
- 'null'
format: date-time
allowedIps:
type: array
items:
type: string
email:
type:
- string
- 'null'
format: email
label:
type:
- string
- 'null'
prebound:
type: boolean
additionalProperties: false
additionalProperties: false
requestBodies:
ShareRotate:
required: false
content:
application/json:
schema:
type: object
properties:
mode:
type: string
enum:
- link
- public
description: link creates an unlisted read-only token URL; public creates a read-only non-token URL and public-index entry.
shareId:
type: string
maxLength: 100
description: Optional active share to reissue without revoking the page's other links. Recipient pre-binding is preserved.
interactive:
type: boolean
description: Default true. When false, share recipients see living state read-only instead of being able to tick checkboxes and fill inputs. Reissue preserves the original share's setting.
expiresAt:
type: string
format: date-time
description: Optional future ISO timestamp.
allowedIps:
type: array
items:
type: string
maxLength: 80
description: Optional IP addresses or CIDR ranges allowed to view the share.
additionalProperties: false
Share:
required: true
content:
application/json:
schema:
type: object
properties:
mode:
type: string
enum:
- link
- public
description: link creates an unlisted read-only token URL; public creates a read-only non-token URL and public-index entry.
access:
type: string
enum:
- invite
- anyone
description: 'For link mode: invite requires verified email; anyone makes the token URL the only access gate.'
recipients:
type: array
maxItems: 10
description: For link invite mode, mint one creation-time email-locked link per recipient.
items:
type: object
required:
- email
properties:
email:
type: string
format: email
maxLength: 320
label:
type: string
maxLength: 200
additionalProperties: false
interactive:
type: boolean
description: Default true. When false, share recipients see living state read-only instead of being able to tick checkboxes and fill inputs. Reissue preserves the original share's setting.
expiresAt:
type: string
format: date-time
description: Optional future ISO timestamp.
allowedIps:
type: array
items:
type: string
maxLength: 80
description: Optional IP addresses or CIDR ranges allowed to view the share.
additionalProperties: false
required:
- mode
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