social.coves.aggregator.createApiKey
Create an API key for the authenticated aggregator. Requires OAuth authentication. The API key is returned ONCE and cannot be retrieved again. Store it securely.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | aggregator.coves.social |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Create an API key for the authenticated aggregator. Requires OAuth authentication. The API key is returned ONCE and cannot be retrieved again. Store it securely.",
"errors": [
{
"description": "OAuth authentication is required to create an API key",
"name": "AuthenticationRequired"
},
{
"description": "OAuth session is required (not service JWT) to create an API key",
"name": "OAuthSessionRequired"
},
{
"description": "Only registered aggregators can create API keys",
"name": "AggregatorRequired"
},
{
"description": "Failed to generate the API key",
"name": "KeyGenerationFailed"
}
],
"input": {
"encoding": "application/json",
"schema": {
"description": "No input required. The key is generated server-side for the authenticated aggregator.",
"properties": {},
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"createdAt": {
"description": "ISO8601 timestamp when the key was created",
"format": "datetime",
"type": "string"
},
"did": {
"description": "DID of the aggregator that owns this key",
"format": "did",
"type": "string"
},
"key": {
"description": "The plain-text API key. This is shown ONCE and cannot be retrieved again. Format: ckapi_<64-hex-chars> (32 bytes hex-encoded)",
"maxLength": 256,
"type": "string"
},
"keyPrefix": {
"description": "First 12 characters of the key (e.g., 'ckapi_ab12cd') for identification in logs and UI",
"maxLength": 64,
"type": "string"
}
},
"required": [
"key",
"keyPrefix",
"did",
"createdAt"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "social.coves.aggregator.createApiKey",
"lexicon": 1
}