{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/ahasend/refs/heads/main/json-schema/openapi-v2-create-api-key-request-schema.json", "title": "CreateAPIKeyRequest", "description": "CreateAPIKeyRequest schema from AhaSend API", "type": "object", "properties": { "label": { "type": "string", "maxLength": 255, "description": "Human-readable label for the API key", "example": "example_value" }, "scopes": { "type": "array", "items": { "type": "string" }, "minItems": 1, "description": "Array of scope strings to grant to this API key", "example": [ "example_value" ] } }, "required": [ "label", "scopes" ], "example": { "label": "Production API Key", "scopes": [ "messages:send:all", "domains:read" ] } }