{
"name": "string",
"platform_type": "string",
"request_url": "string",
"secret_key": "string",
"group_id": 0,
"priority": 0,
"weight": 0,
"enable_proxy": true,
"proxy_uri": "string",
"active_status": 0,
"is_max": true,
"access_token": "string",
"refresh_token": "string",
"expires_at": 0
}
curl --location --request POST 'http://127.0.0.1:10081/api/v1/accounts/create' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"platform_type": "string",
"request_url": "string",
"secret_key": "string",
"group_id": 0,
"priority": 0,
"weight": 0,
"enable_proxy": true,
"proxy_uri": "string",
"active_status": 0,
"is_max": true,
"access_token": "string",
"refresh_token": "string",
"expires_at": 0
}'
{
"code": 20000,
"data": {
"id": 1,
"name": "官方账号",
"platform_type": "claude",
"request_url": "",
"secret_key": "",
"access_token": "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",
"refresh_token": "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",
"expires_at": 1754486821000,
"is_max": false,
"group_id": 0,
"priority": 100,
"weight": 86,
"today_usage_count": 0,
"today_usage_tokens": 0,
"enable_proxy": true,
"proxy_uri": "socks5://ripper:wyfabab123@154.17.227.135:17889",
"last_used_time": null,
"current_status": 1,
"active_status": 1,
"user_id": 1,
"created_at": "2025-08-06T13:40:34.178251+08:00",
"updated_at": "2025-08-06T13:40:34.178251+08:00",
"user": {
"id": 0,
"username": "",
"email": "",
"status": 0,
"role": "",
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z"
}
},
"message": "创建成功"
}