kylrix

Kylrix REST HTTP API

External agents, mobile apps, CLI tools, and integrations use Personal Access Tokens (PATs) or OAuth 2.1 tokens.

Wire any agent · MCP: mcp.md · Full route table: api/references/http-api.md


Base URI

Production: https://www.kylrix.space/api/v1

Self-hosted? See SELFHOST.md.

export KYLRIX_PAT='kyl_pat_…'
export KYLRIX_API_BASE='https://www.kylrix.space/api/v1'

Authentication

curl -H "Authorization: Bearer $KYLRIX_PAT" https://www.kylrix.space/api/v1/me

Mint tokens: Settings → Developers on kylrix.space.


Scopes

Scope Description
profile:read Profile and identity
notes:read / notes:write Ideas & markdown notes
goals:read / goals:write Goals & tasks
workspaces:read / workspaces:write Workspaces & nested projects
chats:read / chats:write Conversations, threads, messages
events:read / events:write Calendar
forms:read / forms:write Forms
flows:read / flows:write / flows:install Workflows
vault:read / vault:write Vault metadata (not plaintext secrets without unlock)
moments:read / moments:write Moments & feeds
tags:read / tags:write Tags
objects:read / objects:write Object links
trash:read / trash:write Trash restore / purge
agents:read / agents:write / agents:harness / agents:provision Agent sessions
pats:read / pats:write Manage PATs
tools:execute Run tools (restricted)

Endpoints (summary)

Token & PAT self-service

Profile

Notes & goals

Workspaces & projects

Events, forms, flows, feeds, moments, chats, vault, tags, trash, agents

See api/references/http-api.md for the full route table.

MCP and REST share the same ApiResources layer — same PAT, same scopes. Prefer MCP in IDEs; use REST for mobile apps, CI, and scripts.

Domain shapes: sdk/contracts/ (e.g. goals.ts).