获取用户信息
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
GET
/v1/user
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://dev-cn.your-api-server.com/v1/user' \
--header 'xi-api-key;'
响应示例响应示例
200 - 成功示例
{
"can_use_delayed_payment_methods": true,
"first_name": "<string>",
"is_new_user": true,
"is_onboarding_completed": true,
"subscription": {
"allowed_to_extend_character_limit": true,
"can_extend_character_limit": true,
"can_extend_voice_limit": true,
"can_use_instant_voice_cloning": true,
"can_use_professional_voice_cloning": true,
"character_count": 123,
"character_limit": 123,
"currency": "usd",
"max_voice_add_edits": 123,
"next_character_count_reset_unix": 123,
"professional_voice_limit": 123,
"status": "trialing",
"tier": "<string>",
"voice_add_edit_counter": 123,
"voice_limit": 123
},
"xi_api_key": "<string>"
}
请求参数
Header 参数
xi-api-key
string
可选