> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mountsea.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 检查账号是否离线

> 查询执行某任务的账号是否离线

按 `taskId` 查**执行该任务的账号**。**同步** — 当次响应就是结果。**不会创建新 taskId。** 不要轮询 `/status`。

<Warning>
  任务不存在时返回 **404**。**不返回**账号 id。`credits` 是**本地快照**，不是官网实时查询。
</Warning>

## 查询参数

| 字段 | 类型 | 必填 | 说明 |
| - | - | - | - |
| `taskId` | string | 是 | 已有异步任务 id（generate、voices 等） |

## 响应

| 字段 | 类型 | 说明 |
| - | - | - |
| `offline` | boolean | 任务**还没有账号**、账号**已不存在**，或状态**不可用**（`paused`、`restricted`、`soft_exhausted`、`expired` 等）时为 `true` |
| `credits` | number | 该账号的本地积分快照。因没有账号而 `offline` 时为 `0` |

```bash theme={null}
curl -X GET "https://api.mountsea.ai/suno/v2/checkAccountOffline?taskId=your-task-id" \
  -H "Authorization: Bearer your-api-key"
```

```json theme={null}
{
  "offline": false,
  "credits": 9936
}
```


## OpenAPI

````yaml GET /suno/v2/checkAccountOffline
openapi: 3.0.0
info:
  title: Suno AI
  description: API documentation for Suno AI
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.mountsea.ai
    description: API Gateway
security: []
tags:
  - name: suno
    description: ''
  - name: suno/studio
    description: Studio Song Editor（与 audio/crop|fade|reverse 独立）
paths:
  /suno/v2/checkAccountOffline:
    get:
      tags:
        - suno
      summary: check whether the account of a task is offline
      description: >-
        Looks up the account that executed taskId. Returns 404 when the task
        does not exist. offline is true when the task has no account yet, the
        account is missing, or its status is not available (paused, restricted,
        soft_exhausted, expired, and so on). credits is that account's local
        credit snapshot, or 0 when there is no account. Not a live official
        query. Does not return the account id.
      operationId: ApiPublicController_checkAccountOffline
      parameters:
        - name: taskId
          required: true
          in: query
          description: Task ID
          schema:
            example: '1212'
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckAccountOfflineResDto'
      security:
        - bearerAuth: []
components:
  schemas:
    CheckAccountOfflineResDto:
      type: object
      properties:
        offline:
          type: boolean
          description: >-
            true when the task has no account, the account is gone, or its
            status is not available
          example: false
        credits:
          type: number
          description: >-
            Local credit snapshot of that account. 0 when offline because there
            is no account. Not a live official query.
          example: 9936
      required:
        - offline
        - credits
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.