APIKey API โ
Create API Key โ
prolog
POST API_BASE/apikeysAuthorization Required โ
| OAuth | APIKey |
|---|---|
| No | No |
Request Body โ
json
{
"name": "My Key"
}Response โ
json
{
"data": APIKeyObject,
"ts": 1723923923
}List API Keys โ
prolog
GET API_BASE/apikeysAuthorization Required โ
| OAuth | APIKey |
|---|---|
| Yes | Yes |
OAuth scope: apikey.read
Response โ
json
{
"data": [APIKeyObject, ...],
"ts": 1723923923
}Delete API Key โ
prolog
DELETE API_BASE/apikeys/:idAuthorization Required โ
| OAuth | APIKey |
|---|---|
| No | No |
Parameters โ
| Parameter | Type | Description |
|---|---|---|
id | uint64 | The ID of the API key |
Response โ
json
{
"data": APIKeyObject,
"ts": 1723923923
}Verify API Key Hash โ
prolog
POST API_BASE/apikeys/verifyAuthorization Required โ
| OAuth | APIKey |
|---|---|
| Yes | Yes |
OAuth scope: apikey.read
Request Body โ
json
{
"hash": "sha256_hex_of_apikey"
}Response โ
json
{
"data": {
"valid": true
},
"ts": 1723923923
}