{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/popp/json-schema/popp-create-document-credential-request-schema.json",
  "title": "CreateDocumentCredentialRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/popp-document-credentials-api-openapi.yml#/components/schemas/CreateDocumentCredentialRequest",
  "type": "object",
  "required": [
    "name",
    "headerTokenKey",
    "token"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "A label for the credential."
    },
    "headerTokenKey": {
      "type": "string",
      "description": "Header name Popp should send the token under, e.g. x-api-key or Authorization."
    },
    "token": {
      "type": "string",
      "description": "The API key value (max 4096 bytes). Encrypted at rest and never returned."
    }
  },
  "additionalProperties": false
}