Skip to main content
POST
Create API key

Authorizations

klef.session
string
cookie
required

Cookie-based session. Obtain by completing the /auth/login/{provider} OAuth flow; the /auth/callback response sets the klef.session cookie that subsequent requests send automatically.

Body

application/json
name
string
required
Minimum string length: 1
scopes
enum<string>[]
required
Minimum array length: 1

Discrete capabilities within a workspace. Authorization checks permissions (not roles directly), so role composition can change without touching call sites.

Available options:
view_workspace,
manage_connections,
manage_mapping,
manage_policies,
run_sync,
resolve_matches,
view_workers,
view_audit,
manage_members,
manage_billing,
manage_workspace_lifecycle,
manage_secrets,
reveal_sign_ins,
reset_passwords
expiresInDays
null | integer<int32>
required

Response

Created

The envelope for a single-resource response: T? ApiResponse<T>.Result on success, otherwise null with one or more IReadOnlyList<ApiError> ApiResponse<T>.Errors.

result
null | object
required
errors
object[]
required