Polyrankdocs
Strategy Lab

PATCH /v1/lab/credits/settings

Set (or clear with null) the caller’s own ceiling on a UTC day’s assistant spend, in credits (`daily_ceiling`; there is no other daily cap), and/or the mode the caller’s new chats start in (`mode`: `standard` or `deep`; remembered per account, returned as `last_mode` / `start_mode`; `deep` is 403 `plan_required` feature `agent_deep_mode` on a plan without Deep mode). Signed-in session only.

PATCH
/v1/lab/credits/settings

Set (or clear with null) the caller’s own ceiling on a UTC day’s assistant spend, in credits (daily_ceiling; there is no other daily cap), and/or the mode the caller’s new chats start in (mode: standard or deep; remembered per account, returned as last_mode / start_mode; deep is 403 plan_required feature agent_deep_mode on a plan without Deep mode). Signed-in session only.

AuthorizationBearer <token>

API key: Authorization: Bearer pk_live_… (mint at polyrank.app/api-keys)

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/lab/credits/settings" \  -H "Content-Type: application/json" \  -d '{}'
{  "allowance": -9007199254740991,  "topup": -9007199254740991,  "total": -9007199254740991,  "period_end": "string",  "resets_label": "string",  "allowance_granted": -9007199254740991,  "typical_turn_credits": -9007199254740991,  "reserve": -9007199254740991,  "daily_ceiling": -9007199254740991,  "spent_today": -9007199254740991,  "blocked": "no_plan",  "blocked_message": "string",  "plan_id": "string",  "model": "string",  "deep_mode": true,  "deep_model": "string",  "deep_mode_multiplier": 0,  "packs": [    {      "pack": -9007199254740991,      "credits": -9007199254740991,      "usd": 0,      "bonus": -9007199254740991    }  ],  "price_line": "string",  "modes": [    {      "id": "standard",      "label": "string",      "multiplier": 0,      "available": true    }  ],  "custom_topup": {    "min_usd": 0,    "max_usd": 0,    "preset_usd": 0  },  "last_mode": "standard",  "start_mode": "standard"}
{  "error": "string",  "message": "string",  "feature": "string",  "field": "string",  "plan": "string",  "retry_after_sec": 0,  "retry_after_seconds": 0,  "reason": "string",  "running": 0,  "limit": 0,  "issues": [    null  ],  "trace_id": "string"}
{  "error": "string",  "message": "string",  "feature": "string",  "field": "string",  "plan": "string",  "retry_after_sec": 0,  "retry_after_seconds": 0,  "reason": "string",  "running": 0,  "limit": 0,  "issues": [    null  ],  "trace_id": "string"}
{  "error": "string",  "message": "string",  "feature": "string",  "field": "string",  "plan": "string",  "retry_after_sec": 0,  "retry_after_seconds": 0,  "reason": "string",  "running": 0,  "limit": 0,  "issues": [    null  ],  "trace_id": "string"}
{  "error": "string",  "message": "string",  "feature": "string",  "field": "string",  "plan": "string",  "retry_after_sec": 0,  "retry_after_seconds": 0,  "reason": "string",  "running": 0,  "limit": 0,  "issues": [    null  ],  "trace_id": "string"}
{  "error": "string",  "message": "string",  "feature": "string",  "field": "string",  "plan": "string",  "retry_after_sec": 0,  "retry_after_seconds": 0,  "reason": "string",  "running": 0,  "limit": 0,  "issues": [    null  ],  "trace_id": "string"}
{  "error": "string",  "message": "string",  "feature": "string",  "field": "string",  "plan": "string",  "retry_after_sec": 0,  "retry_after_seconds": 0,  "reason": "string",  "running": 0,  "limit": 0,  "issues": [    null  ],  "trace_id": "string"}
{  "error": "string",  "message": "string",  "feature": "string",  "field": "string",  "plan": "string",  "retry_after_sec": 0,  "retry_after_seconds": 0,  "reason": "string",  "running": 0,  "limit": 0,  "issues": [    null  ],  "trace_id": "string"}