Authentication
Most endpoints on this page accept either a dashboard session cookie or a server API key sent as Authorization: Bearer <key>. A few need a real session and are marked session only.
Roles, lowest to highest: Viewer, Member, Admin, Owner.
admin:billing and admin:audit are Enterprise-only scopes, so on other plans billing and the audit log are reachable with a dashboard session but not with an API key.
Get organization settings
Response
Update organization settings
Currently only the organization name can be changed; the URL slug is regenerated from the new name. An empty or whitespace-only name is ignored.
Request body
Response — 200 OK — the updated settings object.
Usage
The canonical Monthly Active Devices (MAD) meter for the organization. Values are cached for up to 5 minutes.
Response
Notification preferences
Get preferences
Response
Update preferences
Partial update — only fields present in the body are modified.
Response — 200 OK — the full updated preferences object.
Errors
Billing
Get billing summary
Response
madUsed here counts from the start of the calendar month.
GET /api/v1/org/usage is the canonical meter and reports the org’s billing period.
Create a billing portal session
Session only. 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
Paginated audit trail scoped to the current organization, newest first.
Query parameters
Response
metadata on an entry is a flat string map, or null. Actions follow a resource.verb convention, for example:
Quick start snippet
Session only. 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
Session only. Requires Owner role.
This permanently and immediately deletes the organization and all associated data in a single transaction — apps, devices, attestations, challenges, API keys, webhooks and deliveries, feature flags and rules, custom claims, audit logs, heartbeats, support tickets, feature requests and votes, invites, and memberships. Member user accounts are deactivated and suspended. This cannot be undone.
The caller’s session is destroyed as part of the request.
Response — 204 No Content
Delete your account
Session only. 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