{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/popp/json-schema/popp-document-credential-schema.json",
  "title": "DocumentCredential",
  "description": "A document-fetch credential. The token is write-only and is never returned.",
  "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/DocumentCredential",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "headerTokenKey": {
      "type": "string",
      "description": "Header name Popp sends the token under, e.g. x-api-key."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "name",
    "headerTokenKey",
    "createdAt"
  ],
  "additionalProperties": false
}