social.coves.aggregator.createApiKey

coves.social

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

Validate Record

Validate a record against social.coves.aggregator.createApiKey

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:web:coves.social
CID
bafyreidoiqxrzksd757a573evwmtxwxu4soswudu56veai2l3pzfvwb7xm
Indexed At
2026-07-24 05:18 UTC
AT-URI
at://did:web:coves.social/com.atproto.lexicon.schema/social.coves.aggregator.createApiKey

Lexicon Garden

@