---
title: "Switch, set the fallback, or check a key again"
method: PATCH
path: "/growth/brain"
tags: ["RanlaCommands"]
---

# Switch, set the fallback, or check a key again

`PATCH /growth/brain`

## Request

- Base URL: `https://api.supersendtx.com`
- URL: `https://api.supersendtx.com/growth/brain`
- Auth: HTTP bearer

## Request body

- object
  - `choice` 'included' | 'openrouter' | 'anthropic' | 'openai' | 'google': Included, or a provider whose key is already saved.
  - `fallbackToIncluded` boolean: When the key fails, think on Included (and use credits) instead of stopping.
  - `recheck` boolean: Run the test call again on a saved key.
  - `provider` 'openrouter' | 'anthropic' | 'openai' | 'google': Which key to check again. Default is the one in use.

## Response `200`

The brain after the change

- object
  - `brain` RanlaBrain, required
    - `choice` 'included' | 'openrouter' | 'anthropic' | 'openai' | 'google', required
    - `fallbackToIncluded` boolean, required
    - `keys` object[], required
      - `provider` 'openrouter' | 'anthropic' | 'openai' | 'google', required
      - `hint` string, required: The key's last four characters. The key itself is never returned.
      - `addedAt` string, date-time, required
      - `lastOkAt` string, date-time, nullable
      - `failure` object, nullable
        - `kind` 'invalid' | 'no_credit' | 'rate_limited' | 'no_model'
        - `since` string, date-time
        - `retryAt` string, date-time, nullable
  - `working` boolean
  - `message` string

## Other responses

- `409`: No saved key for that provider

---

[API](https://skmtc.dev/ranla/apis/supersend-tx-api.md) · [All operations](https://skmtc.dev/ranla/apis/supersend-tx-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ranla/apis/supersend-tx-api/revisions/e3e782652f50?raw)
