Generate a new API key for an app
API key authentication (format: Bearer {api_key})
API Auth app name
API key name
"Production Key"
Key prefix (required for backend API, optional for console)
"wacht_prod"
Permission preset
default, read_only, read_write, admin, custom "read_write"
Custom permissions (used when scope_preset is custom)
Additional metadata
Expiration timestamp
"2024-12-31T23:59:59Z"
API key created
Key ID
"1234567890123456789"
App ID
"9876543210987654321"
Deployment ID
"1111111111111111111"
Key name
"Production Key"
Key prefix
"wacht_prod"
Key suffix (last 4 characters)
"abcd"
Granted permissions
Additional metadata
Expiration timestamp
Last used timestamp
Whether the key is active
true
Creation timestamp
"2024-01-15T10:30:00Z"
Last update timestamp
"2024-01-15T10:30:00Z"
Revocation timestamp
Reason for revocation
Full API key (only shown on creation)