Reason Machines Secrets API

Encrypted credentials injected into the agent's sandbox. Write-only: values can be set but never read back.

GitHub OpenAPI

Operations 5

GET /v3/organizations/{orgId}/secrets List secret names #
POST /v3/organizations/{orgId}/secrets Create or update a secret #
POST /v3/organizations/{orgId}/secrets/bulk Create or update workspace secrets in a batch #
POST /v3/organizations/{orgId}/secrets/seal Seal a value to propose later #
DELETE /v3/organizations/{orgId}/secrets/{secretId} Delete a secret #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/reasonmachines-com:reasonmachines-com-secrets-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

reasonmachines-com-secrets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Reason Secrets API
  version: 3.0.0
  description: 'The Reason HTTP API. Drive cloud software-engineering agents: open sessions against your repositories, stream their work, and manage the secrets, skills, and automations they run with.


    Authenticate with a Reason API key sent as a bearer token. New keys use `reason_`; legacy `ara_` keys remain accepted. Every resource is scoped to an organization; resolve your `org_id` once with `GET /v3/self`.'
servers:
- url: https://api.reasonmachines.com
security:
- reasonApiKey: []
tags:
- name: Secrets
  description: 'Encrypted credentials injected into the agent''s sandbox. Write-only: values can be set but never read back.'
paths:
  /v3/organizations/{orgId}/secrets:
    parameters:
    - $ref: '#/components/parameters/orgId'
    get:
      operationId: listSecrets
      tags:
      - Secrets
      summary: List secret names
      description: 'List secret names and metadata for one scope: the workspace''s shared secrets or the caller''s own personal secrets. Values are never returned.


        Lists secret names and metadata of one scope. Values are never returned. Without `scope`, consolidated workspace-resource mode lists the workspace''s shared secrets (`organization`); otherwise it lists the caller''s own personal secrets (`user`). Explicit `user` reads only the caller''s personal secrets, including legacy secrets in consolidated mode. One call never lists both. To delete a listed secret, pass its returned `scope` explicitly: DELETE keeps its personal default for compatibility.


        Scope: `secrets:read`'
      responses:
        '200':
          description: Secret names.
          content:
            application/json:
              example:
                items:
                - secret_id: NPM_TOKEN
                  name: NPM_TOKEN
                  scope: user
                  created_at: '2026-06-01T00:00:00Z'
                  updated_at: '2026-06-01T00:00:00Z'
                end_cursor: null
                has_next_page: false
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
      parameters:
      - in: query
        name: scope
        schema:
          type: string
          enum:
          - organization
          - user
          - repo
        description: Omit to list `organization` secrets in consolidated workspace-resource mode, or the caller's own `user` secrets otherwise. Explicit `user` reads personal secrets in either mode. `repo` is a deprecated alias of `organization`. DELETE still defaults to `user`; pass the listed secret's scope explicitly when deleting it.
      - in: query
        name: repo
        schema:
          type: string
        description: Deprecated context field for the `repo` compatibility scope. The repository no longer changes storage; the secret is workspace-wide.
      - in: query
        name: provider
        schema:
          type: string
          enum:
          - github
        description: Deprecated provider context for the `repo` compatibility scope.
      security:
      - reasonApiKey:
        - secrets:read
    post:
      operationId: setSecret
      tags:
      - Secrets
      summary: Create or update a secret
      description: 'Upserts a secret by name. Without `scope`, consolidated workspace-resource mode stores a shared `organization` secret; otherwise it stores a personal `user` secret. Organization scope always requires owner/admin authority, including when selected by default. Explicit `user` writes in consolidated mode return 409 workspace_resource_scope_required rather than being promoted to shared secrets. Legacy repo scope aliases organization scope: repo/provider fields do not isolate secrets to repositories, and the response `scope` is the scope the secret was stored in. `result` says whether the name was `created` or an existing value was `updated`. Omitting `note` keeps the stored note; an empty string clears it. A refused name returns `invalid_secret_name` with a `reason` (`format`, `reserved`, `too_long`) and a `message`. Empty, whitespace-only and NUL-containing values are refused. `warning` is present for a name Sessions never receive because Reason reserves it for its own access or runtime (`GH_TOKEN`, `GITHUB_TOKEN`, `GITLAB_TOKEN`, `GH_ENTERPRISE_TOKEN`, `GITHUB_ENTERPRISE_TOKEN`, `BUN_*`); the secret is stored but not delivered. Values are encrypted and never returned. Shared changes reach live sessions. Missing encryption returns 503 secret_store_unavailable.


        Scope: `secrets:write`'
      responses:
        '201':
          description: Secret stored.
          content:
            application/json:
              example:
                ok: true
                id: NPM_TOKEN
                secret_id: NPM_TOKEN
                name: NPM_TOKEN
                scope: user
                result: created
        '202':
          description: 'The caller signed in with a login (the Reason CLI or another OAuth grant), not an API key, and asked for a new workspace secret. Nothing is stored: a proposal waits for a workspace owner or admin to approve it in Settings › Vault, for 24 hours. The value is never returned. With such a login, a name that is already stored answers 409 `approval_required` and is not changed. Only a name shaped like a credential can be proposed (one ending in `_TOKEN`, `_KEY`, `_SECRET`, `_PASSWORD` or `_ID`, for example); any other name answers 400 `invalid_secret_name`. An address is not a credential: a name such as `DATABASE_URL`, `SENTRY_DSN` or `SLACK_WEBHOOK_URL` is refused the same way, and a value that is a URL or a connection string answers 400 `secret_value_is_address` under any name. A workspace owner or admin adds those in Settings › Vault.'
          content:
            application/json:
              example:
                ok: true
                id: NPM_TOKEN
                secret_id: NPM_TOKEN
                name: NPM_TOKEN
                scope: organization
                result: pending_approval
                status: pending_approval
                proposal_id: 3a0c5d1e-6f0b-4c3a-9d2e-5b7a1c2d3e4f
                length: 40
                prefix_ok: true
                expires_at: '2026-06-02T00:00:00Z'
                approve_url: https://reasonmachines.com/customize?settings=1&tab=vault
                message: NPM_TOKEN is not stored yet. A workspace owner or admin approves it in Settings › Vault; it then reaches cloud Sessions from their next turn.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '409':
          description: The name differs only by letter case from a secret already stored in the same scope. Stored secrets are unchanged.
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                - name
                - existing_name
                - message
                properties:
                  error:
                    type: string
                    const: secret_name_case_conflict
                  name:
                    type: string
                  existing_name:
                    type: string
                  message:
                    type: string
                  conflicts:
                    type: array
                    description: Bulk requests list every conflicting pair.
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                        existing_name:
                          type: string
              example:
                error: secret_name_case_conflict
                name: npm_token
                existing_name: NPM_TOKEN
                message: NPM_TOKEN already exists and differs from npm_token only by letter case. Use NPM_TOKEN or another name.
        '413':
          description: A secret value exceeds 65536 UTF-8 bytes. Bulk requests list the offending names in invalid_names.
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                - max_bytes
                properties:
                  error:
                    type: string
                    const: secret_value_too_large
                  max_bytes:
                    type: integer
                  invalid_names:
                    type: array
                    items:
                      type: string
              example:
                error: secret_value_too_large
                max_bytes: 65536
        '429':
          $ref: '#/components/responses/RateLimited'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSecret'
            example:
              name: NPM_TOKEN
              value: npm_...
              note: Used by acme/web
              scope: organization
      security:
      - reasonApiKey:
        - secrets:write
  /v3/organizations/{orgId}/secrets/bulk:
    parameters:
    - $ref: '#/components/parameters/orgId'
    post:
      operationId: setOrganizationSecretsBulk
      tags:
      - Secrets
      summary: Create or update workspace secrets in a batch
      description: 'Stores a confirmed batch of workspace secrets encrypted, all or none. `created` and `updated` list which names were new and which replaced a stored value. Omitting a variable''s `note` keeps its stored note. Refused names are listed in `invalid_names`, with a `reason` and `message` each in `invalid`. Values are never returned.


        Scope: `secrets:write`'
      responses:
        '200':
          description: Secrets stored.
          content:
            application/json:
              example:
                ok: true
                scope: organization
                count: 2
                names:
                - NPM_TOKEN
                - SENTRY_DSN
                created:
                - SENTRY_DSN
                updated:
                - NPM_TOKEN
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '409':
          description: The name differs only by letter case from a secret already stored in the same scope. Stored secrets are unchanged.
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                - name
                - existing_name
                - message
                properties:
                  error:
                    type: string
                    const: secret_name_case_conflict
                  name:
                    type: string
                  existing_name:
                    type: string
                  message:
                    type: string
                  conflicts:
                    type: array
                    description: Bulk requests list every conflicting pair.
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                        existing_name:
                          type: string
              example:
                error: secret_name_case_conflict
                name: npm_token
                existing_name: NPM_TOKEN
                message: NPM_TOKEN already exists and differs from npm_token only by letter case. Use NPM_TOKEN or another name.
        '413':
          description: A secret value exceeds 65536 UTF-8 bytes. Bulk requests list the offending names in invalid_names.
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                - max_bytes
                properties:
                  error:
                    type: string
                    const: secret_value_too_large
                  max_bytes:
                    type: integer
                  invalid_names:
                    type: array
                    items:
                      type: string
              example:
                error: secret_value_too_large
                max_bytes: 65536
        '429':
          $ref: '#/components/responses/RateLimited'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateOrganizationSecretsBulk'
            example:
              variables:
              - name: NPM_TOKEN
                value: npm_...
                note: acme-web · .env.local
      security:
      - reasonApiKey:
        - secrets:write
  /v3/organizations/{orgId}/secrets/seal:
    parameters:
    - $ref: '#/components/parameters/orgId'
    post:
      operationId: sealSecret
      tags:
      - Secrets
      summary: Seal a value to propose later
      description: 'Takes a value and answers with a single-use handle. Nothing is stored in the workspace''s secrets and nothing is proposed: an agent proposes the sealed value by giving the handle to its `secrets_propose` tool, so the value never passes through the model. The Reason CLI sends a command''s output here (` | reason secrets seal NAME`). A handle works once, only for the name it was sealed for and only in this workspace, and expires after 60 minutes; the value is deleted when it is used or expires. What else a handle is bound to depends on the credential that sealed it. Sealed with an API key or a login (this operation''s documented credentials): the handle is a bearer handle within the workspace, bound to the workspace, the name and the member who sealed it, so only a Session turn acting for that member can propose it (`seal_other_member` otherwise), from any of their Sessions. Sealed inside a Session with the seal ticket `secrets_propose` gives the agent: the ticket seals once (a second use answers 409 `seal_ticket_used`), and the handle is also bound to that Session''s tree, so only that Session, its subagents and the Sessions they created can propose it (`seal_other_session` otherwise). The value is checked as a proposed secret is: the name must be shaped like a credential (`invalid_secret_name`), the value must not be empty, hold a NUL byte, exceed the size limit or be an address such as a URL or a connection string (`secret_value_is_address`), and a name already stored in the workspace answers 409 `secret_exists`. A sealed value is not masked in transcripts, logs or published text until it is stored as a secret: masking it earlier would let an agent test guesses about it. Seal a command''s output directly so the value is never printed. Set `seen_by_model` when the value already passed through an agent''s context: the approval card then recommends rotating it, and with `session_id` (a Session of the caller''s own) the exact value is replaced by a mask in that Session''s stored transcript; `scrub` reports what was rewritten. Requires `secrets:write`. The answer never contains the value.


        Scope: `secrets:write`'
      responses:
        '201':
          description: The value is sealed. `handle` is shown this once.
          content:
            application/json:
              example:
                handle: sealed_Zm9yLWV4YW1wbGUtb25seS1ub3QtYS1yZWFsLWhhbmRsZQ
                name: NPM_TOKEN
                length: 40
                expires_at: '2026-06-01T01:00:00.000Z'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '409':
          description: The name is already stored in the workspace (`secret_exists`), differs from a stored name only by letter case (`secret_name_case_conflict`), or the seal ticket sent as the credential already sealed a value (`seal_ticket_used`). Nothing was sealed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: secret_exists
                message: NPM_TOKEN is already stored in this workspace, so nothing was sealed.
                name: NPM_TOKEN
        '413':
          description: A secret value exceeds 65536 UTF-8 bytes. Bulk requests list the offending names in invalid_names.
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                - max_bytes
                properties:
                  error:
                    type: string
                    const: secret_value_too_large
                  max_bytes:
                    type: integer
                  invalid_names:
                    type: array
                    items:
                      type: string
              example:
                error: secret_value_too_large
                max_bytes: 65536
        '429':
          description: Too many values sealed by this member in the last hour, or too many still waiting to be proposed (`seal_rate_limited`). Nothing was sealed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: seal_rate_limited
                message: Too many values were sealed in the last hour or still wait to be proposed.
                open: 30
                last_hour: 31
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SealSecret'
            example:
              name: NPM_TOKEN
              value: npm_...
      security:
      - reasonApiKey:
        - secrets:write
  /v3/organizations/{orgId}/secrets/{secretId}:
    parameters:
    - $ref: '#/components/parameters/orgId'
    - name: secretId
      description: The secret name.
      in: path
      required: true
      schema:
        type: string
    delete:
      operationId: deleteSecret
      tags:
      - Secrets
      summary: Delete a secret
      description: 'Delete a secret by name. The scope query defaults to the caller''s personal secrets; pass the scope returned by list or create to delete a shared one.


        Deletes a secret by name (secret_id from list). Query scope always defaults to user and addresses only the caller''s own personal secrets, even in consolidated workspace-resource mode. Pass the scope returned by list or create explicitly to delete that secret. Organization and legacy repo scope address shared secrets and require owner/admin authority; an omitted scope never falls back to shared secrets. A name not stored in the requested scope returns 404 secret_not_found and deletes nothing. Values are never returned. Shared deletions are forwarded to live sessions.


        Scope: `secrets:write`'
      responses:
        '200':
          description: Secret deleted.
          content:
            application/json:
              example:
                ok: true
                name: NPM_TOKEN
                scope: user
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: No secret of this name is stored in the requested scope. Nothing was deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: secret_not_found
        '429':
          $ref: '#/components/responses/RateLimited'
      parameters:
      - in: query
        name: scope
        schema:
          type: string
          enum:
          - organization
          - user
          - repo
          default: user
        description: 'Which secrets: `user` (the default) is the caller''s own personal secrets, `organization` the workspace''s shared secrets. `repo` is a deprecated alias of `organization`.'
      - in: query
        name: repo
        schema:
          type: string
        description: Deprecated context field for the `repo` compatibility scope. The repository no longer changes storage; the secret is workspace-wide.
      - in: query
        name: provider
        schema:
          type: string
          enum:
          - github
        description: Deprecated provider context for the `repo` compatibility scope.
      security:
      - reasonApiKey:
        - secrets:write
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          oneOf:
          - type: string
          - type: object
            required:
            - type
            - message
            properties:
              type:
                type: string
              message:
                type: string
              request_id:
                type:
                - string
                - 'null'
        message:
          type: string
        required_scope:
          type: string
          description: The capability required when the request was denied for a missing scope.
    CreateOrganizationSecretsBulk:
      type: object
      properties:
        variables:
          maxItems: 500
          type: array
          items:
            type: object
            properties:
              name:
                type: string
                description: 'Environment variable name, e.g. `NPM_TOKEN`: letters, digits and underscores, starting with a letter, at most 128 characters. Upper and lower case are both accepted, but a new name may not differ only by case from one already stored in the same scope. Names Reason''s runtime or the Session''s shell own (`PATH`, `HOME`, `USER`, ...) are refused.'
              value:
                type: string
                description: 'Secret value: not empty, not only whitespace, no NUL byte. Stored encrypted and never returned.'
              note:
                type: string
                maxLength: 2000
                description: Optional source or usage description. Never include a secret value. Omit to keep the stored note; send an empty string to clear it.
          description: Workspace secrets to create or replace atomically.
      required:
      - variables
    SealSecret:
      type: object
      properties:
        name:
          type: string
          description: The name the value will be proposed under, shaped like a credential (`NPM_TOKEN`, `STRIPE_API_KEY`). The handle works for this exact name only.
        value:
          type: string
          description: 'The value to seal: not empty, not only whitespace, no NUL byte, not a URL or a connection string. Stored encrypted for at most an hour and never returned.'
        seen_by_model:
          type: boolean
          description: Set when the value already passed through an agent's context (it was read or printed in a Session). The approval card then recommends rotating it.
        session_id:
          type: string
          description: 'With `seen_by_model`: the caller''s own Session whose stored transcript holds the value, so the exact value is replaced by a mask there. It is where to look, nothing more; a Session that is not the caller''s is left untouched.'
      required:
      - name
      - value
    CreateSecret:
      type: object
      properties:
        name:
          type: string
          description: 'Environment variable name, e.g. `NPM_TOKEN`: letters, digits and underscores, starting with a letter, at most 128 characters. Upper and lower case are both accepted, but a new name may not differ only by case from one already stored in the same scope. Names Reason''s runtime or the Session''s shell own (`PATH`, `HOME`, `USER`, ...) are refused.'
        value:
          type: string
          description: 'The secret value: not empty, not only whitespace, no NUL byte. Stored encrypted and never returned.'
        note:
          type: string
          maxLength: 2000
          description: Optional usage guidance for agents and workspace members. Include the repository name when the secret is intended for one codebase. Omit to keep the stored note; send an empty string to clear it. Personal (`user`) secrets hold no note.
        scope:
          type: string
          enum:
          - organization
          - user
          - repo
          description: Omit to store an `organization` secret in consolidated workspace-resource mode, or a personal `user` secret otherwise. Organization writes require owner/admin authority. Explicit `user` writes are refused with 409 workspace_resource_scope_required in consolidated mode. `repo` is a deprecated alias of `organization`.
        repo:
          type: string
          description: Deprecated context field for the `repo` compatibility scope. The value is stored workspace-wide.
        provider:
          type: string
          enum:
          - github
          description: Deprecated provider context for the `repo` compatibility scope.
      required:
      - name
      - value
  parameters:
    orgId:
      name: orgId
      in: path
      required: true
      description: Organization id or slug. Resolve it with `GET /v3/self`.
      schema:
        type: string
  responses:
    Unauthorized:
      description: Missing, invalid, or expired key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: missing_bearer
            message: Authorization required
    BadRequest:
      description: Invalid request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: prompt_required
    Forbidden:
      description: The key lacks the required scope or role.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: missing_scope
            required_scope: sessions:read
    RateLimited:
      description: Too many requests. Retry after the number of seconds in the `Retry-After` response header.
      headers:
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
            minimum: 1
          required: true
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              type: rate_limited
              message: This API key exceeded its request-rate limit
  securitySchemes:
    loopWebhookKey:
      type: http
      scheme: bearer
      description: A Loop's webhook key, returned once by the createReasonLoop or updateReasonLoop call that adds the webhook. It only delivers events to that Loop's webhook; every other operation rejects it.
    loopWebhookSignature:
      type: apiKey
      in: header
      name: X-Signature-256
      description: 'An HMAC-SHA256 of the exact request body keyed with the Loop''s webhook key or its stored signing secret: hex in `X-Signature-256` (optionally `sha256=`-prefixed), or the sender''s own header (`X-Hub-Signature-256`, `Stripe-Signature`, `Webhook-Signature`, `Svix-Signature`, `Linear-Signature`, `Sentry-Hook-Signature`, `X-Shopify-Hmac-Sha256`).'
    reasonMachineToken:
      type: http
      scheme: bearer
      bearerFormat: rmt_<hex>
      description: A Machine token from createMachineToken. It can only create enrollment tickets for its own Machine; every other operation rejects it.
    reasonUserOAuth:
      type: http
      scheme: bearer
      description: A workspace-bound human user OAuth grant with org:write scope. The user must be an organization owner/admin. API keys and browser sessions are not accepted.
    reasonApiKey:
      type: http
      scheme: bearer
      bearerFormat: 'reason_<hex> (legacy: ara_<hex>)'
      description: 'Your Reason API key from Settings › API keys. New keys use `reason_`; legacy `ara_` keys remain accepted. Keys are capability-scoped: run, mcp:read, mcp:write, secrets:read, secrets:write, sessions:read, sessions:debug, devices:read, devices:write, devices:use, computers:read, computers:write, ssh:write, knowledge:read, memory:read, memory:write, skills:read, skills:write, pages:read, pages:write, repos:read, repos:write, reviews:read, reviews:write, deployment:read, analytics:read, org:read, org:write, attachments:read, attachments:write, guardrails:read, guardrails:write, network:read, network:write, automations:read, automations:write, agent_auth:read. devices:write, devices:use, computers:read, computers:write, ssh:write, network:read and network:write are opt-in, excluded from default keys. computers:read lists visible cloud and connected computers without waking them or granting execution access. devices:read discovers local Device targets; devices:use separately consents to local execution, so a discover-and-run local workflow needs both. devices:write manages enrollment and device grants; computers:write creates or deletes cloud computers; ssh:write manages retained SSH access. network:read reads the saved workspace network policy; network:write replaces custom allowed hosts and requires a current organization owner/admin. Legacy project PATCH requests containing network_allowed_hosts also require network:write plus their existing run scope and project management permission; saved project hosts do not affect current session egress. Only owners/admins can mint or manage keys with network:write; keys cannot grant themselves more authority. See /docs/network-policies for replacement semantics and runtime applicability. mcp:write manages MCP server configuration only; it does not authorize remote MCP-tool execution. sessions:read reads sessions, including the assistant, reasoning and tool activity in their events. sessions:debug is privileged: only for organization owners/admins, it expands session events to the full diagnostic projection (diagnostic event kinds, status text and raw event metadata).'