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

# 取得验证短句

> 选择语言或重新取得验证短句。

> 能力按服务端配置逐项启用。未启用操作返回 503 且不创建任务；音乐积分扣除当前未启用。

## 输入

先完成suno\_voice\_upload并等待ready:true，传其voice\_upload\_task\_id。语言支持en、zh、es、fr、pt、de、ja、ko、hi、ru，默认en。此接口同步返回验证短句，不创建生成任务。

```json theme={null}
{
  "voice_upload_task_id": "APIstable upload task ID",
  "language": "en"
}
```

## 输出

expires\_at:null不代表永久有效。短句绑定的样本会话自成功准备后24小时到期，供应商也可能更早让短句失效；会话到期后须重新上传样本。HTTP 404/409/410分别表示资源不存在、供应商账户不匹配或资源过期；供应商故障返回503，异常结构返回502。

```json theme={null}
{
  "code": 200,
  "msg": "success",
  "data": {
    "phrase_id": "APIstable phrase ID",
    "phrase_text": "Read the returned phrase in your own voice.",
    "language": "en",
    "expires_at": null
  }
}
```


## OpenAPI

````yaml openapi.json POST /api/v1/voices/verification_phrase
openapi: 3.1.0
info:
  title: APIstable API
  version: 1.0.0-preview
  description: >-
    Public /api/v1 protocol. Valid API keys have the same account-scoped access.
    No client submission idempotency or max_credits. Enabled Suno operations use
    PayAPI and durable task processing. Media uses R2: uploads 24 hours,
    generated files 14 days, task logs 30 days. Music credit deduction is
    disabled. Unconfigured operations and LLM return 503.
servers:
  - url: https://apistable.com
    description: APIstable API
security: []
paths:
  /api/v1/voices/verification_phrase:
    post:
      summary: Get or regenerate a verification phrase
      operationId: voiceVerificationPhrase
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                voice_upload_task_id:
                  type: string
                  minLength: 1
                  maxLength: 200
                  description: APIstable resource ID; never a supplier ID.
                language:
                  default: en
                  type: string
                  enum:
                    - en
                    - zh
                    - es
                    - fr
                    - pt
                    - de
                    - ja
                    - ko
                    - hi
                    - ru
              required:
                - voice_upload_task_id
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - msg
                  - data
                properties:
                  code:
                    const: 200
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      phrase_id:
                        type: string
                      phrase_text:
                        type: string
                      language:
                        type: string
                      expires_at:
                        type: 'null'
        '400':
          description: '40002: Invalid input.'
        '401':
          description: '40101: Invalid API key.'
        '404':
          description: '40401: Resource not found in this account.'
        '409':
          description: '40901: Resource provider-account mismatch.'
        '410':
          description: '41001: Resource expired.'
        '502':
          description: '50201: Malformed provider response.'
        '503':
          description: Operation or provider unavailable
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Every valid key can submit and query its own account. Revoked keys are
        rejected.

````

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