HTTP API
The origin-api access-token model for advanced integrations — prefer the OriginAI CLI.
Coding agents should use the OriginAI CLI. The underlying origin-api Edge Function documented here is intended for the CLI itself and for advanced automation. If you're not building an integration, you don't need this page.
The auth model
origin-api does not use Supabase JWT auth. Instead:
- It authenticates a user-level access token created in OriginAI Settings.
- The server hashes the token and matches it against
access_tokens.token_hashusing the service-role client. - The function runs with
verify_jwt = false, so the token match is the gate.
To create a token, see Access tokens.
What reads return by default
| Mode | Behavior |
|---|---|
| Default | The latest published release snapshot. |
read_type: "workspace" | The live workspace file tree (for pre-release indexing). |
release_tag: "<hash>" | Pins the read to a specific release. |
After the first release
There is no create_change_request action. The first write_document / delete_document creates a Change Request (suggested: true plus proposal_id, the CR id). Kernel names stay *_proposal.
Create a complete CR:
list_proposalswithstatus: "all"— readdismiss_reason; do not file the same dismissed CR.validate, thenwrite_document(passproposal_idto continue,new_proposal: trueto open another).describe_proposalwith Issue (title,note) and Decisions + Changelog (rationale).submit_proposalwhen the batch is done.
describe_proposal does not mark the request ready. Apply, dismiss, and recording a conclusion stay in the workbench. list_proposals includes decided_items[] with dismiss_reason. Staged write / describe / submit responses include a next field with this same loop so MCP agents do not have to guess.
Agents still read published releases by default, so staging keeps in-progress workbench edits from being overwritten.
Public skill discovery
These endpoints require no token:
GET https://getoriginai.com/.well-known/agent-skills/index.jsonGET https://getoriginai.com/skills-full.txt
Related
- OriginAI CLI
- MCP & agent install — a Streamable HTTP adapter over this API.
- Agent skills
- Access tokens