Arena · Schema

KeyRotateResponse

Prediction MarketsPaper TradingSandboxCLI

Properties

Name Type Description
key object
token string The new plaintext key. Shown once; only its hash is stored.
warning string
replaced object
View JSON Schema on GitHub

JSON Schema

arena-predictions-com-key-rotate-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/arena-predictions-com/json-schema/arena-predictions-com-key-rotate-response-schema.json",
  "title": "KeyRotateResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/arena-predictions-com-api-keys-api-openapi.yml#/components/schemas/KeyRotateResponse",
  "type": "object",
  "required": [
    "key",
    "token",
    "warning",
    "replaced"
  ],
  "properties": {
    "key": {
      "$ref": "#/$defs/KeyView"
    },
    "token": {
      "type": "string",
      "description": "The new plaintext key. Shown once; only its hash is stored."
    },
    "warning": {
      "type": "string"
    },
    "replaced": {
      "$ref": "#/$defs/KeyView"
    }
  },
  "$defs": {
    "KeyView": {
      "type": "object",
      "required": [
        "id",
        "label",
        "tokenPrefix",
        "scopes",
        "status",
        "createdAt",
        "lastUsedAt",
        "expiresAt",
        "revokedAt",
        "createdVia",
        "rotatedFrom",
        "rotatedAt",
        "requestsThisMonth"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "label": {
          "type": "string",
          "maxLength": 64
        },
        "tokenPrefix": {
          "type": "string",
          "description": "First 16 characters of the token, for matching a row to a key. Never the token."
        },
        "scopes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "records:read",
              "portfolio:read",
              "markets:read",
              "trade:write",
              "trade:write:kalshi",
              "trade:write:poly-intl",
              "trade:write:prophetx"
            ]
          }
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "rotating",
            "revoked",
            "expired"
          ],
          "description": "rotating: replaced by a rotation and still inside its grace period (it works until expiresAt)."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "lastUsedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Updated at most once an hour."
        },
        "expiresAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "revokedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "createdVia": {
          "type": "string",
          "enum": [
            "web",
            "cli"
          ],
          "description": "web: Settings. cli: arena keys."
        },
        "rotatedFrom": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid",
          "description": "The key this one replaced by rotation."
        },
        "rotatedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "When this key was rotated."
        },
        "requestsThisMonth": {
          "type": "integer",
          "minimum": 0,
          "description": "Keyed requests counted against this key this month (UTC)."
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/arena-predictions-com-key-rotate-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.