ulams tokens
Generated from front/cli (ulams schema)
ulams tokens agent-audit
Section titled “ulams tokens agent-audit”Agent audit log.
Kind: read (idempotent). Stability: stable. MCP tool: tokens_agent_audit. Scopes: learner:read.
Endpoints: GET /api/admin/agent-audit.
| Flag | Type | Required | Description |
|---|---|---|---|
--token-id |
string | ||
--user-id |
integer | ||
--from |
string | ||
--to |
string |
# Agent audit logulams tokens agent-audit --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "token_id": { "type": "string" }, "user_id": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "from": { "type": "string" }, "to": { "type": "string" } }, "additionalProperties": {}}ulams tokens audit
Section titled “ulams tokens audit”Audit log of one token.
Kind: read (idempotent). Stability: stable. MCP tool: tokens_audit. Scopes: learner:read.
Endpoints: GET /api/admin/tokens/{id}/audit.
| Flag | Type | Required | Description |
|---|---|---|---|
--id (positional) |
string | yes |
# Audit log of one tokenulams tokens audit text --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ], "additionalProperties": {}}ulams tokens create
Section titled “ulams tokens create”Create a scoped personal access token (shown once).
Kind: write. Stability: stable. MCP tool: tokens_create. Scopes: learner:write.
Endpoints: POST /api/auth/tokens.
| Flag | Type | Required | Description |
|---|---|---|---|
--agent-name |
string | ||
--expires-in-days |
integer | ||
--kind |
string | ||
--name |
string | yes | |
--rate-limit-per-minute |
integer | ||
--scopes |
array | yes | Scopes or @presets (read-only, author, admin, learner, ci) |
# A CI token that can edit courses and run the builder, for 30 daysulams tokens create --name ci --scopes @ci --expires-in-days 30 --kind ci --json# A read-only token for an agentulams tokens create --name reader --scopes @read-only --kind agent --agent-name claude-code --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "agent_name": { "type": [ "string", "null" ] }, "expires_in_days": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "kind": { "type": "string", "enum": [ "cli", "agent", "ci", "integration" ] }, "name": { "type": "string" }, "rate_limit_per_minute": { "anyOf": [ { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, { "type": "null" } ] }, "scopes": { "type": "array", "items": { "type": "string" }, "description": "Scopes or @presets (read-only, author, admin, learner, ci)" } }, "required": [ "name", "scopes" ], "additionalProperties": {}}ulams tokens current
Section titled “ulams tokens current”The token this request is authenticated with.
Kind: read (idempotent). Stability: stable. MCP tool: tokens_current. Scopes: learner:read.
Endpoints: GET /api/auth/tokens/current.
# The token this request is authenticated withulams tokens current --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": {}, "additionalProperties": {}}ulams tokens list
Section titled “ulams tokens list”My scoped API tokens.
Kind: read (idempotent). Stability: stable. MCP tool: tokens_list. Scopes: learner:read.
Endpoints: GET /api/auth/tokens.
| Flag | Type | Required | Description |
|---|---|---|---|
--include-revoked |
boolean |
# My scoped API tokensulams tokens list --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "include_revoked": { "type": "boolean" } }, "additionalProperties": {}}ulams tokens list-all
Section titled “ulams tokens list-all”Every user’s scoped API tokens.
Kind: read (idempotent). Stability: stable. MCP tool: tokens_list_all. Scopes: learner:read.
Endpoints: GET /api/admin/tokens.
| Flag | Type | Required | Description |
|---|---|---|---|
--user-id |
integer | ||
--kind |
string | ||
--include-revoked |
boolean | ||
--per-page |
integer |
# Every user's scoped API tokensulams tokens list-all --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "user_id": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "kind": { "type": "string", "enum": [ "cli", "agent", "ci", "integration" ] }, "include_revoked": { "type": "boolean" }, "per_page": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "additionalProperties": {}}ulams tokens revoke
Section titled “ulams tokens revoke”Revoke one of my scoped tokens.
Kind: destructive (idempotent). Stability: stable. MCP tool: tokens_revoke. Scopes: learner:write.
Endpoints: DELETE /api/auth/tokens/{id}.
| Flag | Type | Required | Description |
|---|---|---|---|
--id (positional) |
string | yes |
# Revoke one of my scoped tokensulams tokens revoke text --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ], "additionalProperties": {}}ulams tokens revoke-any
Section titled “ulams tokens revoke-any”Revoke any scoped token.
Kind: destructive (idempotent). Stability: stable. MCP tool: tokens_revoke_any. Scopes: learner:write.
Endpoints: DELETE /api/admin/tokens/{id}.
| Flag | Type | Required | Description |
|---|---|---|---|
--id (positional) |
string | yes |
# Revoke any scoped tokenulams tokens revoke-any text --jsonInput JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ], "additionalProperties": {}}