{
"id": "social.coves.aggregator.getApiKey",
"defs": {
"main": {
"type": "query",
"errors": [
{
"name": "AuthenticationRequired",
"description": "Authentication is required to get API key info"
},
{
"name": "AggregatorRequired",
"description": "Only registered aggregators can get API key info"
},
{
"name": "AggregatorNotFound",
"description": "Aggregator not found"
}
],
"output": {
"schema": {
"type": "object",
"required": [
"hasKey"
],
"properties": {
"hasKey": {
"type": "boolean",
"description": "Whether the aggregator has an API key (active or revoked)"
},
"keyInfo": {
"ref": "social.coves.aggregator.defs#apiKeyView",
"type": "ref",
"description": "API key metadata. Only present if hasKey is true."
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"properties": {},
"description": "No parameters required. Returns key info for the authenticated aggregator."
},
"description": "Get information about the authenticated aggregator's API key. Note: The actual key value is NEVER returned - only metadata about the key."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}