1. Sub-key management
MyVocal AI语音大模型API文档
English
  • 中文
  • English
  • 文字转语音大模型
    • API reference
      • Voice management
        • List voices
        • Create a voice
        • Delete a voice
      • HTTP synthesis
        • Streaming HTTP synthesis
        • Non-streaming HTTP synthesis
      • WebSocket synthesis
        • Standard TTS · Single connection
        • Standard TTS · Multiple contexts
        • Dialogue · Multiple contexts
      • Usage and request history
        • Get master key usage
        • Look up a request by ID
        • Get usage by voice
      • Sub-key management
        • Create a sub-key
          POST
        • List sub-keys
          GET
        • Get sub-key details
          GET
        • Update a sub-key
          PATCH
        • Get sub-key usage
          GET
    • Overview and quickstart
      • Models
      • Choose a model and endpoint
      • Supported languages
      • Audio formats and playback
      • FAQ
      • SDKs and examples
  • 金融行业定制TTS模型
    • Skyblight text to speech
      • Streaming text to speech
      • Non-streaming text to speech
      • List voices
      • Delete a voice
      • Create a voice
      • Get usage
    • Full-duplex communication
      • WebSocket integration guide
      • V2 bidirectional streaming synthesis (WebSocket)
  • 语音转文字ASR
    • Overview and quickstarts
      • Realtime transcription quickstart
      • File transcription quickstart
      • Models and capabilities
      • Changelog
    • API reference
      • Realtime transcription over WebSocket
      • Create a file transcription
      • Get ASR usage
  • 企业客户声音定制服务
    • Your custom brand voice
  1. Sub-key management

Update a sub-key

PATCH
https://api.voicelibrary.co/enterprise/v1/sub_keys/{sub_api_key}
Update the sub-key’s permissions or expiry.

请求参数

Path 参数

Header 参数

Body 参数application/json

示例

返回响应

🟢200Success
application/json
Bodyapplication/json

请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://api.voicelibrary.co/enterprise/v1/sub_keys/YOUR_API_KEY' \
--header 'api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
    "permissions": {
      "add_voice": false,
      "list_voices": true,
      "del_voices": false,
      "tts_wss": false,
      "tts_stream": false,
      "tts": true
    }
}'
响应示例响应示例
{}
上一页
Get sub-key details
下一页
Get sub-key usage
Built with