Create a new API key for the current tenant. The full key value is returned only once in the response — store it securely.
Pass an API key or JWT token. API keys can be sent as Authorization: Bearer <key> or Authorization: <key>.
A human-readable name for the key.
1 - 255Permissions granted to this key.
Permission scope for an API key. admin grants all permissions.
upload, download, metadata, delete, admin Days until the key expires. Omit or pass null for no expiry.
1 <= x <= 365Arbitrary key-value metadata.