Notion

Search authorized Notion titles and read selected page, data-source and block evidence.

4 implemented operations

connector.yaml
page.readRead one page's metadata and properties; page body requires separately bounded block reads.content.read
notion page.readread#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
Runx scope
content.read
Target
{"$concat":["https://api.notion.com/v1/pages/",{"$argument":"/page_id"}]}
Credentials
Any of access_token
Local implementation
Declared HTTP requests: api.notion.com
Inputs
Field and constraintsType / valuesRequired
page_idPattern: ^(?:[0-9a-fA-F]{32}|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$stringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "page_id"
  ],
  "properties": {
    "page_id": {
      "type": "string",
      "pattern": "^(?:[0-9a-fA-F]{32}|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
    }
  },
  "additionalProperties": false
}

Result fields page

Operation digest sha256:656637ea7951a2347ca31e694e233c3376b0c42f788144e6799a79cf411ecf53Implementation sha256:64a4319ae3023b553a9878ae54d7ebcbf6e0468cafa72086640c6474001dadd9

blocks.listRead one bounded page of immediate child blocks, preserving has_more and next_cursor; does not recursively traverse children.content.read
notion blocks.listread#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
Runx scope
content.read
Target
{"$concat":["https://api.notion.com/v1/blocks/",{"$argument":"/block_id"},"/children"]}
Credentials
Any of access_token
Local implementation
Declared HTTP requests: api.notion.com
Inputs
Field and constraintsType / valuesRequired
block_idPattern: ^(?:[0-9a-fA-F]{32}|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$stringYes
page_sizeMinimum 1Maximum 100integerYes
start_cursorMin. 1 characterMax. 4096 charactersstringNo

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "block_id",
    "page_size"
  ],
  "properties": {
    "block_id": {
      "type": "string",
      "pattern": "^(?:[0-9a-fA-F]{32}|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
    },
    "page_size": {
      "type": "integer",
      "maximum": 100,
      "minimum": 1
    },
    "start_cursor": {
      "type": "string",
      "maxLength": 4096,
      "minLength": 1
    }
  },
  "additionalProperties": false
}

Result fields blocks

Operation digest sha256:ed8946122a2a80d274ec6cbf924a715c808de26392d49c3eb09f601ccb604d00Implementation sha256:2ceef682c72426134f7073092ea60ffc990e3586ec2340abf877bc9db1776c8a

datasource.readRead one authorized data-source schema and properties; does not query its rows.content.read
notion datasource.readread#
  • LocalReadyThe runtime sends the operation's declared HTTP requests.
Runx scope
content.read
Target
{"$concat":["https://api.notion.com/v1/data_sources/",{"$argument":"/data_source_id"}]}
Credentials
Any of access_token
Local implementation
Declared HTTP requests: api.notion.com
Inputs
Field and constraintsType / valuesRequired
data_source_idPattern: ^(?:[0-9a-fA-F]{32}|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$stringYes

Required fields apply within their containing object. Unlisted fields are rejected.

Full input schema
{
  "type": "object",
  "required": [
    "data_source_id"
  ],
  "properties": {
    "data_source_id": {
      "type": "string",
      "pattern": "^(?:[0-9a-fA-F]{32}|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
    }
  },
  "additionalProperties": false
}

Result fields data_source

Operation digest sha256:d57b7bb8b8f0b83337a54c11a2e11fa95f44043b960547daf50c7578e96c2ef9Implementation sha256:0efa9c4c6e8cb3388c1a1abf6d8d20c5affc6514dde3e9da5a6047ba8f3289ed

Authentication

Commands here are for runx 0.11.1.

Notion accepts a stored credential.

Stored credential access_token
A api_key with one field: access_token (Notion integration token with read content capability). Sent only to api.notion.com. Supply it through standard input in the project where the skill runs; Runx stores the profile and selects it for this connector.
runx connector use notion

Authentication methods describe what the provider requires. They do not imply Runx supports every way the provider authenticates, and they do not grant access to your account.

Permissions

Each operation requires every Runx scope it declares. The account or key behind an instance must also reach the target on Notion’s side; setting one up adds no Notion permissions.

A stored credential may do everything its scopes allow. Add --scope to runx connector use --credential to narrow it.