Control plane
Organizations, projects, environments, credentials, policy, RPC targets, webhooks, OIDC clients and audit logs.
Preview: not generally available
Swivy runs in staging only. Paths and fields can change before general availability. There is no public base URL yet; preview partners get theirs with their credentials.
Server-to-server administration. Authenticate with an organization admin credential in x-swivy-admin-key. Never call these routes from a browser or app.
31 endpoints, generated from Swivy's OpenAPI document (apps/api/src/openapi.ts).
Create an organization
Auth: x-admin-token (deployment admin)
Request body: Organization payload
Responses: 200 Created organization and issued its initial owner credential · 401 Invalid or missing admin token
Create a project
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Request body: Project payload
Responses: 200 Created project · 401 Invalid or missing admin token
Rename a project
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Request body: Project payload
Responses: 200 Updated project · 401 Invalid or missing control-plane credential · 404 Project not found · 409 Project slug already exists in this organization
Create an environment and issue its first credential pair
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Request body: Environment payload
Responses: 200 Created environment · 401 Invalid or missing admin token
Rename an environment
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Request body: Environment payload
Responses: 200 Updated environment · 401 Invalid or missing control-plane credential · 404 Environment not found · 409 Environment slug already exists in this project
List environment credentials
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Responses: 200 Credential list · 401 Invalid or missing admin token
Rotate or create a new environment credential pair
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Request body: Credential creation payload
Responses: 200 Created environment credential · 401 Invalid or missing admin token · 404 Environment not found
Revoke an environment credential pair
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Responses: 200 Credential revoked · 401 Invalid or missing admin token · 404 Credential not found
Get organization overview
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Responses: 200 Organization overview · 401 Invalid or missing control-plane credential · 404 Organization not found
List organization admin credentials
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Responses: 200 Organization admin credential list · 401 Invalid or missing control-plane credential · 403 Credential is outside this organization or lacks read access · 404 Organization not found
Create an organization admin credential
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Request body: Organization admin credential payload
Responses: 200 Created organization admin credential · 401 Invalid or missing control-plane credential · 403 Credential lacks owner access for this organization · 404 Organization not found
List organization members
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Responses: 200 Organization member list · 401 Invalid or missing control-plane credential · 403 Credential is outside this organization or lacks read access · 404 Organization not found
Update an organization member role and sync their active admin credentials
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Request body: Organization member role payload
Responses: 200 Organization member updated · 401 Invalid or missing control-plane credential · 403 Credential lacks owner access for this organization · 404 Organization or member not found · 409 Update would remove the last active owner credential
Revoke an organization member and deactivate their admin credentials
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Responses: 200 Organization member revoked · 401 Invalid or missing control-plane credential · 403 Credential lacks owner access for this organization · 404 Organization or member not found · 409 Revocation would remove the last active owner credential
List organization invites
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Responses: 200 Organization invite list · 401 Invalid or missing control-plane credential · 403 Credential is outside this organization or lacks read access · 404 Organization not found
Create an organization invite
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Request body: Organization invite payload
Responses: 200 Created organization invite · 401 Invalid or missing control-plane credential · 403 Credential lacks owner access for this organization · 404 Organization not found
Revoke an organization invite
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Responses: 200 Organization invite revoked · 401 Invalid or missing control-plane credential · 403 Credential lacks owner access for this organization · 404 Organization or invite not found
Revoke an organization admin credential
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Responses: 200 Organization admin credential revoked · 401 Invalid or missing control-plane credential · 403 Credential lacks owner access for this organization · 404 Organization or credential not found · 409 Revocation would remove the last active owner credential
Accept an organization invite and mint an org-scoped admin credential
Parameters
Request body: Organization invite acceptance payload
Responses: 200 Accepted organization invite · 404 Invite not found · 409 Invite expired, already used, or member already exists
Replace environment policy
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Request body: Environment policy
Responses: 200 Updated environment policy · 401 Invalid or missing admin token
Get environment dashboard snapshot
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Responses: 200 Environment dashboard · 401 Invalid or missing admin token · 404 Environment not found
List environment RPC targets
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Responses: 200 Environment RPC targets · 401 Invalid or missing admin token
Create or update an environment RPC target
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Request body: Chain RPC target configuration
Responses: 200 Updated environment RPC target · 401 Invalid or missing admin token
Create a webhook endpoint
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Request body: Webhook target
Responses: 200 Created webhook · 401 Invalid or missing admin token
List webhooks
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Responses: 200 Webhook list · 401 Invalid or missing admin token
Rotate a webhook signing secret
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Responses: 200 Rotated webhook secret · 401 Invalid or missing admin token · 404 Webhook not found
Revoke a webhook endpoint
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Responses: 200 Revoked webhook · 401 Invalid or missing admin token · 404 Webhook not found
List environment audit logs
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Responses: 200 Audit logs · 401 Invalid or missing admin token
List OIDC clients for an environment
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Responses: 200 OIDC client list · 401 Invalid or missing control-plane credential · 404 Environment not found
Create an OIDC client for Sign in with Swop
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Request body: OIDC client payload
Responses: 200 Created OIDC client · 401 Invalid or missing control-plane credential · 404 Environment not found
Revoke an OIDC client
Auth: x-swivy-admin-key (organization admin credential) or x-admin-token (deployment admin)
Parameters
Responses: 200 OIDC client revoked · 401 Invalid or missing control-plane credential · 404 Environment or OIDC client not found