Developer platform
Authentication, API reference, and AI assistant integration.
Base URL
https://decrypthub.cn/open/v1Create and manage credentials under API keys in the sidebar. Store the key in the calling tool’s DECRYPTHUB_API_KEY environment variable. The API uses Bearer authentication, not website cookies, and needs no third-party model key on this site.
Authorization: Bearer $DECRYPTHUB_API_KEYUse /me to verify the returned account and scopes. It checks key identity without granting permissions. The response is authoritative.
curl --fail-with-body --max-time 15 'https://decrypthub.cn/open/v1/me' \
-H "Authorization: Bearer $DECRYPTHUB_API_KEY"Successful responses use {code: 0, data, msg}. Check HTTP status and code. The data includes the current account and scopes.
Illustrative response excerpt, not a real account: verify data.user and data.key.scopes.
{
"code": 0,
"data": {
"key": {
"id": "KEY_ID",
"name": "Example",
"scopes": [
"articles:read"
]
},
"user": {
"handle": "example",
"nickname": "Example"
}
},
"msg": "ok"
}Each key allows up to 120 requests per minute. Each account allows up to 20 content writes per hour. Limits return 429.