Get the organization defaults

GET /v1/organization-defaults · permission organizations:read

Returns the defaults every organization in this environment uses: the organization admin role, the role new members get, the membership limit per user, how long invitations stay valid, the waiting period before a self-service organization deletion runs, what happens to members when an organization is deleted, and the switches for organization custom roles and self-service organization deletion. There is one record per environment, created with the environment. The response carries an ETag header to send as If-Match when you update it.

Request

Field Type Required Description

No request body.

Response

200 OK with the defaults and the ETag header.

{
  "org_admin_role_id": "rol_01j9xs0a2b4c6d8e0f2g4h6j8k",
  "default_member_role_id": "rol_01j9xs0a2b4c6d8e0f2g4h6j8m",
  "max_memberships_per_user": 200,
  "invitation_ttl_days": 7,
  "org_self_service_deletion_grace_days": 14,
  "on_org_delete_members": "detach",
  "org_custom_roles_enabled": false,
  "org_self_delete_enabled": false,
  "updated_at": "2026-11-03T09:30:00.123456Z",
  "version": 1
}

Errors

HTTP code When
401 unauthenticated The credential is missing, invalid or revoked.
403 insufficient_permissions The credential lacks the required permission.
429 rate_limited The rate limit was exceeded; retry after the Retry-After period.
503 service_unavailable A dependency is temporarily unavailable; retry after the Retry-After period.

Example

curl -i -X GET "https://api.eu.keenauth.com/v1/organization-defaults" \
  -H "Authorization: Bearer $KEENAUTH_SECRET_KEY"
keenauth organization-defaults get