Move the agents on a subscription account onto platform credits [write]

Changed on

Run before disconnecting an account so its agents keep working. Restarts their running sessions.

post/model-subscriptions/{provider}/switch-to-credits

Request

  • Base URL
    https://api.agentsky.dev/v1
  • URL
    https://api.agentsky.dev/v1/model-subscriptions/{provider}/switch-to-credits
  • Auth
    HTTP bearer

Path parameters

provider'anthropic' | 'openai' | 'cursor' | 'xai' | 'meta' required

anthropic = Claude subscription · openai = ChatGPT plan · cursor = Cursor plan · xai = Grok subscription · meta = Muse subscription

Query parameters

accountIdstring

Target an additional account; omitted targets the legacy provider account

Response

OK

switchedinteger
restartFailuresstring[]

Agents switched to credits whose running session could not be restarted

Changes