Authentication
All endpoints require a dashboard session (cookie-based) with organization context. Role requirements vary per endpoint and are noted below. Roles from lowest to highest: Viewer, Member, Admin, Owner.
Get organization settings
Available to any organization member.
Response
Update organization settings
Requires Admin role. Currently only the organization name can be changed; the URL slug is regenerated from the new name.
Request body
Response — 200 OK — the updated settings object.
Notification preferences
Get preferences
Available to any organization member.
Response
Update preferences
Requires Admin role. Partial update — only fields present in the body are modified.
Response — 200 OK — the full updated preferences object.
Billing
Get billing summary
Requires Admin role.
Response
Create a billing portal session
Requires Admin role. Returns a short-lived, pre-authenticated Stripe Customer Portal URL where the user can view invoices, download receipts, and update the payment method. Open it directly in the browser.
Response — 200 OK
Errors
Audit log
Requires Admin role. Paginated audit trail scoped to the current organization, newest first.
Query parameters
Response
Actions follow a resource.verb convention, e.g. user.login, invite.created, apikey.rotated, webhook.updated, org.settings_updated, risk_alert_rule.created.
Quick start snippet
Available to any organization member. Returns the org’s primary app credentials and a pre-filled Swift SDK initialization snippet, used by the dashboard’s quick start page.
Response
Errors
Delete the organization
Requires Owner role.
This permanently and immediately deletes the organization and all associated data in a single transaction — apps, devices, attestations, API keys, webhooks and deliveries, feature flags, custom claims, audit logs, support tickets, feature requests, invites, and memberships. Member user accounts are deactivated. This cannot be undone.
The caller’s session is destroyed as part of the request.
Response — 204 No Content
Delete your account
Requires Owner role. Soft-deletes the current user’s account:
- The account is marked pending deletion and hard-deleted after 30 days. Contact support@grantiva.io before then to cancel.
- Any active Stripe subscription is cancelled.
- A confirmation email is sent with the scheduled deletion date.
- The current session is destroyed.
Response — 204 No Content
Errors
See also