Skip to content

Commit 2c560d0

Browse files
khaliqgantProactive Runtime Botclaude
authored
docs: document POST /v1/tokens/path endpoint (#39)
Co-authored-by: Proactive Runtime Bot <agent@agent-relay.com> Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 385674d commit 2c560d0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ type PathTokenIssueRequest = {
5757

5858
- `POST /v1/tokens/workspace` returns a long-lived `relay_ws_*` workspace token.
5959
- `POST /v1/tokens/agent` accepts that workspace token via `x-api-key` and returns a short-lived `relay_ag_*` token pair for one `agentId`.
60+
- `POST /v1/tokens/path` accepts that same workspace token via `x-api-key` and returns a short-lived `relay_pa_*` token pair whose `relayfile:fs:*` scopes are intersected with the requested `paths`.
6061
- `POST /v1/tokens/refresh` rotates the current pair and preserves the agent-token lineage. Revoking the parent workspace token invalidates all derived agent tokens.
61-
- `POST /v1/tokens/path` is reserved for M5 path-scoped tokens. In M1 it deliberately returns `501 { error: "path_scoped_tokens_not_implemented", code: "not_implemented" }`.
62+
63+
`paths` uses the same filesystem constraint model as `relayfile:fs:*` scopes: exact paths or trailing-prefix globs such as `/linear/issues/*`. For compatibility, `/linear/issues/**` is normalized to `/linear/issues/*` during issuance.
6264

6365
The TypeScript SDK includes an `AgentTokenSession` helper for transparent agent-token rotation:
6466

0 commit comments

Comments
 (0)