---
title: "Move the agents on a subscription account onto platform credits [write]"
method: POST
path: "/model-subscriptions/{provider}/switch-to-credits"
---

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

`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

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

## Path parameters

- `provider` 'anthropic' | 'openai' | 'cursor' | 'xai' | 'meta', required

## Query parameters

- `accountId` string

## Response `200`

OK

- object
  - `switched` integer
  - `restartFailures` string[]: Agents switched to credits whose running session could not be restarted

## Other responses

- `default`: Error — { error: { code, message, request_id } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/model-subscriptions/:provider/switch-to-credits/post.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/0d435187cd55?raw)
