---
title: "set_ai_passes"
description: "Generated reference for the management action set_ai_passes: its description, access metadata, payload contract, and registration status."
slug: /reference/actions/set-ai-passes
order: 94
visibility: public
redirects_from: []
---

# set\_ai\_passes

Generated automatically from the [published contract sources](/cloud/reference/about/#contract-sources).

A script calls this action over HTTPS at `POST https://tztrack.dev.turnzero.ai/v1/set_ai_passes`, with a bearer credential and the action's payload as the JSON body. An MCP connection lists this action as the tool `tztrack_set_ai_passes`.

OAuth access tokens and minted tokens, including the turnzero command's computer token, are bearer credentials. The action determines which kinds, scopes and grants it accepts ([Sign-in, sessions, and tokens](/cloud/concepts/sign-in-sessions-and-tokens/)).

**Build metadata:** Registered in this build. Registration describes the default dispatcher in this build. It does not guarantee that a caller has the required credential or grant, that a tool is listed for that connection, or that the required service is configured.

## Contract description

Set your issue space's paid AI reviews option\. `enable_reviews` also turns reviews on\. `tztrack_configure_space` sets reviews alone\. A session changes this option only when the account owner requests it\. If their choice is missing and nobody can answer, the option is left unchanged and reported\. Read the option's monthly rate with `read_rate_card` under `tztrack-ai-passes`\. Turning on adds today's share of the monthly rate\. State that charge first\. Turning off stops charges at the next daily pass without a refund\.

With `enable_reviews` true and `on` true, the act sets the option before writing the space's `ai_reviews_enabled` true\. `reviews_written` false leaves the option on and any charge in place\. False or absent `enable_reviews` leaves the reviews setting unchanged\. Passes require that setting and either this option on an unpaused account or an unbilled owner\. The returned `on` is the stored option, read by the issue service on its next account read\.

## More about this action

A tzTrack token reaches this act where your tool's sign\-in issued it\. A token `mint_token` minted is refused `tztrack_bounded`\.

Name a space your account owns, or a space bound to an application it owns, from `list_issue_spaces`\. Each space has its own option\. Turning on sets the option after today's share is charged or already recorded\. Turning it on for another space that day adds a separate charge\. A repeat for an option already on adds no charge\. An unbilled account bypasses the balance check and incurs no real charge\.

With `enable_reviews` true and `on` true, the act turns on the space's `ai_reviews_enabled` after setting the option\. False or absent leaves that setting unchanged\. Under usage pricing, passes run with the reviews setting on and either the paid option on an unpaused account or an unbilled owner\. The write keeps `upstream_sharing` unchanged and sets `model_calls_per_day` to 200 only when the space has no value\.

With `enable_reviews` true, `reviews_written` reports the setting's write\. True means it succeeded\. False means the token, read or write failed: the option is on and any recorded charge remains\. The same call retries the setting write\. If the option is already on, a repeat posts nothing and returns `moved` false\. It still attempts the reviews write\.

`invalid_request` covers a missing or malformed space id, a missing or non\-boolean `on`, or a non\-boolean `enable_reviews`\. `space_not_owned` means neither your account nor its application owns the space; use `list_issue_spaces`\.

With `enable_reviews` true, these checks refuse before any charge or option change\. `invalid_request` covers `on` false or an environment space for a paired application, whose token the platform does not hold\. `platform_space_configure_refused` is refused for the platform's own space\. `tztrack_required` means the account lacks tzTrack\. `feedback_rate_limited` with `space_share` means the platform's call limit for this space was reached\. `issue_service_unreachable` with `issue_service_unset` means the platform's issue service is not configured\. With `enable_reviews` false or absent, the act changes only the option\. A rate\-limited call can be tried again after the minute turns\.

A turn\-on that needs a charge refuses `balance_short` unless remaining Free Allowance plus available credit exceeds the option's charge for the rest of the UTC month, including today\. `rates_unread` covers unread rate rows or switch instant\. `option_not_set` means the option was not turned on, and any posted charge remains\. A retry for the same space on the same UTC day adds no charge\.

The returned `on` and `moved` show what is stored; no further read is needed to confirm the option\. `reviews_written` is present only when `enable_reviews` was true\. Pass eligibility changes when the issue service next reads the account, with no fixed delay promised\.

## Access and action metadata

```json
{
  "name": "set_ai_passes",
  "resource": "account",
  "tier": "reversible",
  "surface": "tztrack",
  "addresses": [
    "tztools"
  ],
  "clients": [
    "bearer",
    "browser_session"
  ],
  "admits": [
    "tztrack",
    "device_sign_in"
  ],
  "summary": "Turns your issue space's tzTrack AI reviews option on or off. A session changes this option when the account owner requests that change. Otherwise, it leaves the option unchanged. If their choice is missing and nobody can answer, the option is left unchanged and reported. Read the option's monthly rate with `read_rate_card` under `tztrack-ai-passes`. Turning on adds today's share of the monthly rate. State that charge first. Turning off stops charges at the next daily pass without a refund.\n\nWith `enable_reviews` true and `on` true, the act sets the option before writing the space's `ai_reviews_enabled` true. `reviews_written` false leaves the option on and any charge in place. False or absent `enable_reviews` leaves the reviews setting unchanged. Passes require that setting and either this option on an unpaused account or an unbilled owner. The returned `on` is the stored option, read by the issue service on its next account read.\n\nA tzTrack token reaches this act where your tool's sign-in issued it. A token `mint_token` minted is refused `tztrack_bounded`.\n\nName a space your account owns, or a space bound to an application it owns, from `list_issue_spaces`. Each space has its own option. Turning on sets the option after today's share is charged or already recorded. Turning it on for another space that day adds a separate charge. A repeat for an option already on adds no charge. An unbilled account bypasses the balance check and incurs no real charge.\n\nWith `enable_reviews` true and `on` true, the act turns on the space's `ai_reviews_enabled` after setting the option. False or absent leaves that setting unchanged. That setting alone runs no passes under usage pricing. The write keeps `upstream_sharing` unchanged and sets `model_calls_per_day` to 200 only when the space has no value.\n\nWith `enable_reviews` true, `reviews_written` reports the setting's write. True means it succeeded. False means the token, read or write failed: the option is on and any recorded charge remains. The same call retries the setting write. If the option is already on, a repeat posts nothing and returns `moved` false. It still attempts the reviews write.\n\n`invalid_request` covers a missing or malformed space id, a missing or non-boolean `on`, or a non-boolean `enable_reviews`. `space_not_owned` means neither your account nor its application owns the space; use `list_issue_spaces`.\n\nWith `enable_reviews` true, these checks refuse before any charge or option change. `invalid_request` covers `on` false or an environment space for a paired application, whose token the platform does not hold. `platform_space_configure_refused` is refused for the platform's own space. `tztrack_required` means the account lacks tzTrack. `feedback_rate_limited` with `space_share` means the platform's call limit for this space was reached. `issue_service_unreachable` with `issue_service_unset` means the platform's issue service is not configured. With `enable_reviews` false or absent, the act changes only the option. A rate-limited call can be tried again after the minute turns.\n\nA turn-on that needs a charge refuses `balance_short` unless remaining Free Allowance plus available credit exceeds the option's charge for the rest of the UTC month, including today. `rates_unread` covers unread rate rows or switch instant. `option_not_set` means the option was not turned on, and any posted charge remains. A retry for the same space on the same UTC day adds no charge.\n\nThe returned `on` and `moved` show what is stored; no further read is needed to confirm the option. `reviews_written` is present only when `enable_reviews` was true. Pass eligibility changes when the issue service next reads the account, with no fixed delay promised.",
  "annotations": {
    "readOnlyHint": false,
    "destructiveHint": true,
    "openWorldHint": false,
    "idempotentHint": true
  }
}
```

## MCP catalog entry

```json
{
  "name": "set_ai_passes",
  "title": "Set tzTrack AI reviews option",
  "tier": "reversible",
  "scenario": "API-L0-20",
  "summary": "Set your issue space's paid AI reviews option. `enable_reviews` also turns reviews on. `tztrack_configure_space` sets reviews alone. A session changes this option only when the account owner requests it. If their choice is missing and nobody can answer, the option is left unchanged and reported. Read the option's monthly rate with `read_rate_card` under `tztrack-ai-passes`. Turning on adds today's share of the monthly rate. State that charge first. Turning off stops charges at the next daily pass without a refund.\n\nWith `enable_reviews` true and `on` true, the act sets the option before writing the space's `ai_reviews_enabled` true. `reviews_written` false leaves the option on and any charge in place. False or absent `enable_reviews` leaves the reviews setting unchanged. Passes require that setting and either this option on an unpaused account or an unbilled owner. The returned `on` is the stored option, read by the issue service on its next account read.",
  "owners": [
    "API-L0-30",
    "ACB-L0-26",
    "ACB-L0-90",
    "ACB-L0-92",
    "ITS-L0-04",
    "PRC-L0-19"
  ]
}
```

## request

| JSON pointer | Description and constraints |
|---|---|
| "" \(root\) | Type: object<br>Required fields: \["space","on"\] |
| /<wbr>properties/<wbr>space | The id of a space your account owns, or one bound to its application, as list\_issue\_spaces returns it\.<br><br>Type: string<br>Pattern: ^\[0\-9a\-f\]\{8\}\-\[0\-9a\-f\]\{4\}\-\[0\-9a\-f\]\{4\}\-\[0\-9a\-f\]\{4\}\-\[0\-9a\-f\]\{12\}$ |
| /<wbr>properties/<wbr>on | True turns this space's tzTrack AI reviews option on; false turns it off\. It changes ai\_reviews\_enabled only when enable\_reviews is true\.<br><br>Type: boolean |
| /<wbr>properties/<wbr>enable\_reviews | Optional\. With on true, true also turns on the space's ai\_reviews\_enabled after setting the option\. False or absent leaves the setting unchanged\. True with on false is refused invalid\_request\.<br><br>Type: boolean |

## response

| JSON pointer | Description and constraints |
|---|---|
| "" \(root\) | Type: object<br>Required fields: \["contract\_version","space","on","moved"\] |
| /<wbr>properties/<wbr>contract\_version | Required value: 1 |
| /<wbr>properties/<wbr>reference | The short reference the platform recorded your call under: ten lowercase hexadecimal characters, the value in the call’s record row\. Quote it when you report the call\.<br><br>Type: string<br>Pattern: ^\[0\-9a\-f\]\{10\}$ |
| /<wbr>properties/<wbr>space | The issue space id\.<br><br>Type: string |
| /<wbr>properties/<wbr>on | The stored tzTrack AI reviews option; the issue service reads it on its next account refresh\.<br><br>Type: boolean |
| /<wbr>properties/<wbr>moved | True when the stored option changed; false when it already matched\.<br><br>Type: boolean |
| /<wbr>properties/<wbr>reviews\_written | Present only when enable\_reviews was true\. True means the space's reviews setting was written on\. False leaves the option on and any charge in place\. Repeat the same call to retry the setting write without another charge\.<br><br>Type: boolean |

## Complete payload contract

```json
{
  "request": {
    "type": "object",
    "required": [
      "space",
      "on"
    ],
    "properties": {
      "space": {
        "type": "string",
        "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
        "description": "The id of a space your account owns, or one bound to its application, as list_issue_spaces returns it."
      },
      "on": {
        "type": "boolean",
        "description": "True turns this space's tzTrack AI reviews option on; false turns it off. It changes ai_reviews_enabled only when enable_reviews is true."
      },
      "enable_reviews": {
        "type": "boolean",
        "description": "Optional. With on true, true also turns on the space's ai_reviews_enabled after setting the option. False or absent leaves the setting unchanged. True with on false is refused invalid_request."
      }
    }
  },
  "response": {
    "type": "object",
    "required": [
      "contract_version",
      "space",
      "on",
      "moved"
    ],
    "properties": {
      "contract_version": {
        "const": 1
      },
      "reference": {
        "type": "string",
        "pattern": "^[0-9a-f]{10}$",
        "description": "The short reference the platform recorded your call under: ten lowercase hexadecimal characters, the value in the call’s record row. Quote it when you report the call."
      },
      "space": {
        "type": "string",
        "description": "The issue space id."
      },
      "on": {
        "type": "boolean",
        "description": "The stored tzTrack AI reviews option; the issue service reads it on its next account refresh."
      },
      "moved": {
        "type": "boolean",
        "description": "True when the stored option changed; false when it already matched."
      },
      "reviews_written": {
        "type": "boolean",
        "description": "Present only when enable_reviews was true. True means the space's reviews setting was written on. False leaves the option on and any charge in place. Repeat the same call to retry the setting write without another charge."
      }
    }
  }
}
```

## Shared contracts

- [Refusals](/cloud/reference/refusals/): every refusal, by surface, with its cause and its remedy
- [schemas/wire\_error\.schema\.json](/cloud/reference/sources/schemas/wire-error-schema/)
- [schemas/wire\_errors\.json](/cloud/reference/sources/schemas/wire-errors/)
- [schemas/action\_payloads\.json](/cloud/reference/sources/schemas/action-payloads/) (includes shared shapes)
- [management\_api\_contract\.md](/cloud/reference/sources/management-api-contract/)
