API Keys¶
Manage API keys for authentication.
Create API Key¶
Request Body¶
Response¶
{
"id": "key-uuid",
"name": "CI Pipeline Key",
"key": "tsk_abc123...",
"key_prefix": "tsk_abc1",
"team_id": "team-uuid",
"scopes": ["read", "write"],
"created_at": "2025-01-15T10:00:00Z"
}
Warning
The full key is only returned once on creation. Store it securely.
List API Keys¶
Returns API keys for the current user/team (without full key values).
Query Parameters¶
| Parameter | Type | Description |
|---|---|---|
team_id |
uuid | Filter by team |
Response¶
{
"results": [
{
"id": "key-uuid",
"name": "CI Pipeline Key",
"key_prefix": "tsk_abc1",
"team_id": "team-uuid",
"scopes": ["read", "write"],
"created_at": "2025-01-15T10:00:00Z",
"last_used_at": "2025-01-20T15:30:00Z"
}
]
}
Get API Key¶
Response¶
{
"id": "key-uuid",
"name": "CI Pipeline Key",
"key_prefix": "tsk_abc1",
"team_id": "team-uuid",
"scopes": ["read", "write"],
"created_at": "2025-01-15T10:00:00Z",
"last_used_at": "2025-01-20T15:30:00Z"
}
Revoke API Key¶
Response¶
Returns the revoked API key details.
Scopes¶
| Scope | Permissions |
|---|---|
read |
Read assets, contracts, proposals, registrations |
write |
Create/update assets, publish contracts, manage registrations |
admin |
Manage teams, users, API keys |
Authentication¶
Include the API key in the Authorization header: