API Reference
Complete list of all public ZopNight API endpoints with request/response documentation, grouped by domain.
Complete list of all public API endpoints. Click any endpoint to view detailed documentation with request/response examples.
Base URL: https://zopnight.com/api
Authentication
/auth/login Authenticate and receive tokens
/auth/signup Create a new user account
/auth/refresh Refresh access token
/auth/logout Invalidate session
/auth/email/verify Request email verification OTP
/auth/email/otp/validate Validate OTP code
/auth/password/forget Initiate password reset
/auth/password/reset Complete password reset
/auth/saml/initiate Begin SAML SSO flow
/auth/v2/organisation Create organization
Cloud Accounts
/cloud-accounts List cloud accounts
/cloud-accounts Connect cloud account
/cloud-accounts/{accountID} Get cloud account
/cloud-accounts/{accountID} Update cloud account
/cloud-accounts/{accountID} Delete cloud account
/connect/gcp/oauth-url Get GCP OAuth URL
/connect/gcp/oauth-exchange Exchange GCP OAuth code
/connect/gcp/oauth-finalize Finalize GCP OAuth
/cloud-accounts/{accountID}/clusters List clusters in a cloud account
/cloud-accounts/{accountID}/clusters/{region}/{clusterName}/access Register a cluster for kubeconfig access
/cloud-accounts/{accountID}/clusters/{region}/{clusterName}/access Deregister a cluster
Resources
/resources List resources with filtering
/resources/count Count resources matching filters
/resources/{resourceID} Get resource detail
/resources/by-ids Get resources by IDs
/resources/by-uids Get resources by cloud UIDs (query)
/resources/by-uids Get resources by cloud UIDs (body)
/resources/discovery-summary Per-provider discovery rollup
/resources/{id}/access Check IAM + network access to a managed Kubernetes cluster
/resources/last-synced Most recent discovery timestamp per provider/account
/resources/filter-fields Get available filter options
/resources/refresh Trigger discovery refresh
/resources/refresh/status Check refresh status
Schedules
/schedules List schedules
/schedules Create schedule
/schedules/{scheduleID} Get schedule
/schedules/{scheduleID} Update schedule
/schedules/{scheduleID} Delete schedule
/schedules/{scheduleID}/resources/{resourceID} Attach resource
/schedules/{scheduleID}/resources/{resourceID} Detach resource
/schedules/{scheduleID}/groups/{groupID} Attach group
/schedules/{scheduleID}/groups/{groupID} Detach group
Resource Groups
/resource-groups List resource groups
/resource-groups Create resource group
/resource-groups/{groupID} Get resource group
/resource-groups/{groupID} Update resource group
/resource-groups/{groupID} Delete resource group
/resource-groups/{groupID}/schedules Get group schedules
/resource-groups/{groupID}/resources/{resourceID} Add member
/resource-groups/{groupID}/resources/{resourceID}/sequence Update execution order
/resource-groups/{groupID}/resources/{resourceID} Remove member
Overrides
/overrides List overrides
/overrides Create override
/overrides/{overrideID} Get override
/overrides/{overrideID} Delete override
/resource-groups/{groupID}/overrides List group overrides
/resource-groups/{groupID}/overrides Create group override
Actions & Execution
/actions Submit manual action
/actions/bulk Submit bulk action
/actions/{actionID} Get action status
/actions/bulk/{bulkActionID} Get bulk action status
/actions/bulk/latest Get the most recent bulk action
/state-history Get state history
Reports & Analytics
/reports/summary Dashboard summary
/reports/trends Cost trends
/reports/cost-history Long-range cost history
/reports/metrics Aggregate utilization metrics
/reports/costs/resources Resource costs
/reports/costs/breakdown Cost breakdown by dimensions (Sankey)
/reports/providers/summary Provider summary
/reports/resources/summary Resource summary
/reports/resources/metrics Per-resource utilization metrics
/reports/resources/activity Per-resource activity timeline
/reports/snapshots Monthly snapshots
/reports/anomalies List anomaly records
/reports/export Export a report as CSV/JSON
Showback (Cost Attribution)
/reports/teams Cost per team
/reports/teams/{teamID} Team breakdown
/reports/teams/{teamID}/resources Per-resource cost for a team
/reports/teams/trends Team cost trends
/reports/tags Tag keys with attributed cost
/reports/tags/{tagKey} Tag values for a key
/reports/tags/{tagKey}/values/{tagValue}/resources Resources by tag
/reports/tags/trends Tag cost trends
Budgets
/budgets/summary Budget summary
/budgets List budgets
/budgets Create budget
/budgets/{budgetID} Update budget
/budgets/{budgetID} Delete budget
/events List scheduler events
/events Record scheduler event
/currency-exchange-rate Current foreign-exchange rates used by reports
Billing
/billing/sync-status Org-wide billing sync status
/billing/verify Trigger an org-wide billing sync
/cloud-accounts/{accountID}/billing/verify Start a per-account verification
/cloud-accounts/{accountID}/billing/verify/{verifyID} Poll a verification job
Recommendations
/recommendations/resources List resources with recommendation summaries
/recommendations/rules List rules with recommendation summaries
/recommendations List individual recommendations
/recommendations/summary Recommendation summary
/recommendations/summary/providers Provider breakdown
/recommendations/filter-fields Get available filter fields
/recommendations/resources/{resourceUID} Resource recommendations (deprecated)
/recommendations/{recID}/detail Recommendation detail
/recommendations/{recommendationID} Update recommendation
/recommendations/refresh Refresh recommendations
Smart Tags
/smart-tags List derived/accepted virtual tags + org-wide counts
/smart-tags Accept or revoke tags (body: resourceUid, keys, all, accepted)
/tagging/policies/catalog Tagging-policy form vocabulary
/tagging/policies/validations Validate a tagging-policy spec before create
VM Autoscaling
/autoscaler-policies List autoscaler policies
/autoscaler-policies Create policy
/autoscaler-policies/count Count policies by status
/autoscaler-policies/filters Distinct filter values
/autoscaler-policies/smart-defaults Smart defaults for a target
/autoscaler-policies/required-permissions IAM permissions to provision infra
/autoscaler-policies/create-infrastructure Provision autoscaler infrastructure
/autoscaler-policies/infrastructure-status Provisioning status for a cloud account
/autoscaler-policies/{policyID} Get policy
/autoscaler-policies/{policyID} Update policy
/autoscaler-policies/{policyID} Delete policy
/autoscaler-policies/{policyID}/apply Apply latest recommendation
/autoscaler-policies/{policyID}/pause Pause evaluation
/autoscaler-policies/{policyID}/resume Resume evaluation
/autoscaler-policies/{policyID}/remove Soft-delete the policy
/autoscaler-policies/{policyID}/events Per-policy event log
Event Readiness
/event-readiness List plans
/event-readiness Create a plan
/event-readiness/calculate Preview scaled capacity
/event-readiness/calculate-db Preview database tier change
/event-readiness/preview-readiness Preview a full plan without saving
/event-readiness/count Count plans
/event-readiness/filters Filter values
/event-readiness/{eventID} Get a plan
/event-readiness/{eventID} Update a plan
/event-readiness/{eventID} Delete a plan
/event-readiness/{eventID}/db-impact Estimated DB impact
/event-readiness/{eventID}/cost-estimate Estimated extra cost
/event-readiness/{eventID}/readiness-check Re-validate the plan
/event-readiness/{eventID}/schedule Dispatch the plan to executor
/event-readiness/{eventID}/cancel Cancel an active plan
/event-readiness/{eventID}/logs Plan audit log
Dashboards
/dashboards List dashboards (system presets + user-created)
/dashboards Create a dashboard
/dashboards/{dashboardID} Get a dashboard
/dashboards/{dashboardID} Update a dashboard
/dashboards/{dashboardID} Delete a dashboard
/dashboards/default Set the org default dashboard
Notifications
/notifications List notifications (legacy)
/notifications Create notification (legacy)
/notifications/{notificationID} Update notification (legacy)
/notifications/{notificationID} Delete notification (legacy)
/notifications/channels List notification channels
/notifications/channels Create notification channel
/notifications/channels/{channelID} Update notification channel
/notifications/channels/{channelID} Delete notification channel
/notifications/subscriptions List subscriptions
/notifications/subscriptions Create subscription
/notifications/subscriptions/{subID} Update subscription
/notifications/subscriptions/{subID} Delete subscription
/notifications/subscriptions/bulk Bulk create/update subscriptions
/notifications/event-types List event types
/notifications/email-preferences Get email preferences
/notifications/email-preferences/{eventKey} Update email preference
/notifications/share/recommendation/{recID} Share recommendation
/notifications/channels/{channelID}/test Test channel delivery
Users & Teams
/users List users
/users Invite user
/users/{email} Update user
/users/{email} Remove user
/teams List teams
/teams Create team
/teams/{teamID} Get team
/teams/{teamID} Update team
/teams/{teamID} Delete team
/teams/{teamID}/members List team members
/teams/{teamID}/members Add team member
/teams/{teamID}/members/{email} Remove team member
/teams/{teamID}/resources List team resources
/teams/{teamID}/resources Assign resource to team
/teams/{teamID}/resources/{resourceUID} Unassign resource
Roles & Permissions
/roles List roles
/roles Create role
/roles/{roleID} Get role
/roles/{roleID} Update role
/roles/{roleID} Delete role
/policies List policies
/assignments List role assignments
/assignments Create assignment
/assignments/{assignmentID} Update assignment
/assignments/{assignmentID} Delete assignment
/permissions Get current user permissions
/users/{email}/permissions Get user permissions
/users/{email}/permissions/verify Verify permission
Organizations
/organisations List organizations
/organisations Create organization
/organisation Get current organization
/organisation Update organization
/organisation Delete organization
Audit Logs
/audit-logs List audit logs
/audit-logs/export Export audit logs as CSV
Deployment Spaces
/spaces List deployment spaces. (config)
/spaces Register an existing cluster as a space. (config)
/spaces/{spaceID} Get a space. (config)
/spaces/{spaceID}/status Toggle a space active/inactive. (config)
/spaces/{spaceID} Delete a space. (config)
/space-discovery/{spaceID}/namespaces List namespaces on a space’s cluster. (deployer)
/space-discovery/{spaceID}/namespaces Create a namespace on a space’s cluster. (deployer)
/cloud-accounts/{accountID}/clusters List clusters discovered on a cloud account. (config)
/cloud-accounts/{accountID}/clusters/{region}/{clusterName}/access Register cluster access for kubeconfig minting. (config)
/cloud-accounts/{accountID}/clusters/{region}/{clusterName}/access Deregister cluster access. (config)
Provisioning
/provisioning-jobs Create a provisioning job. (provisioner)
/provisioning-jobs List provisioning jobs. (provisioner)
/provisioning-jobs/{jobID} Get a job. (provisioner)
/provisioning-jobs/{jobID} Update lightweight job fields. (provisioner)
/provisioning-jobs/{jobID} Delete a job. (provisioner)
/provisioning-jobs/{jobID}/retry Retry a failed job. (provisioner)
/provisioning-jobs/{jobID}/databases Create a database on the parent datastore. (provisioner)
/provisioning-jobs/{jobID}/databases List databases. (provisioner)
/provisioning-jobs/{jobID}/databases/{dbID} Get a database. (provisioner)
/provisioning-jobs/{jobID}/databases/{dbID} Delete a database. (provisioner)
/provisioning-jobs/{jobID}/connections Create a job-scoped connection. (provisioner)
/provisioning-jobs/{jobID}/connections List job-scoped connections. (provisioner)
/provisioning-jobs/{jobID}/connections/{connID} Get a job-scoped connection. (provisioner)
/provisioning-jobs/{jobID}/connections/{connID} Delete a job-scoped connection. (provisioner)
/provisioning-jobs/{jobID}/databases/{dbID}/connections Create a database-scoped connection. (provisioner)
/provisioning-jobs/{jobID}/databases/{dbID}/connections List database-scoped connections. (provisioner)
/provisioning-jobs/{jobID}/databases/{dbID}/connections/{connID} Get a database-scoped connection. (provisioner)
/provisioning-jobs/{jobID}/databases/{dbID}/connections/{connID} Delete a database-scoped connection. (provisioner)
/provisioning-jobs/install-component Install a catalog component. (provisioner)
/catalog/components List available catalog components. (provisioner)
Remediation Jobs
/remediation-jobs Start a remediation workflow for a recommendation. (provisioner)
/remediation-jobs/{id}/cancel Cancel a running remediation. (provisioner)
/remediation-jobs/{jobID}/steps-by-id/{stepID}/approve Approve an approval-gated step (by stable step ID). (provisioner)
/remediation-jobs/{jobID}/steps-by-id/{stepID}/reject Reject an approval-gated step (by stable step ID). (provisioner)
/remediation-jobs/{id}/steps/{stepName}/approve Approve an approval-gated step (by step name, legacy). (provisioner)
/remediation-jobs/{id}/steps/{stepName}/reject Reject an approval-gated step (by step name, legacy). (provisioner)
/remediation-jobs/{id}/audit Step-level audit timeline. (provisioner)
Deployments
/deployments List deployments. (config)
/deployments Create a deployment. (config)
/deployments/{id} Get a deployment. (config)
/deployments/{id} Delete a deployment (invokes deployer Teardown gRPC before soft-delete). (config)
/deployments/{id}/configs Update configs (creates a revision on next deploy). (config)
/deployments/{id}/canvas-position Persist canvas (x, y) coordinate. (config)
/deployments/{id}/analyze Re-run deploy-readiness checks. (deployer)
/deployments/{id}/revisions Create a revision. (deployer)
/deployments/{id}/revisions List revisions. (deployer)
/deployments/{id}/revisions/{revID} Get a revision. (deployer)
/deployments/{id}/rollback Roll back to a prior revision. (deployer)
/deployments/{id}/events Deployment event timeline. (deployer)
/deployments/{id}/loadbalancer LoadBalancer status. (deployer)
/environments/{envID}/deployments List deployments in env. (config)
/environments/{envID}/deployments Create deployment in env. (config)
Builds
/analyze Analyze a repo for deploy readiness (wizard pre-create). (deployer)
/repositories List connected repositories. (deployer)
/branches List branches in a repository. (deployer)
Projects & Environments
/projects Create a project. (config)
/projects List projects. (config)
/projects/stats Batch project stats (env count, status buckets). (config)
/projects/{projectID} Get a project. (config)
/projects/{projectID} Update a project. (config)
/projects/{projectID} Delete a project. (config)
/projects/{projectID}/environments Create environment. (config)
/projects/{projectID}/environments List environments. (config)
/projects/{projectID}/environments/{envID} Get env (nested). (config)
/projects/{projectID}/environments/{envID} Update env. (config)
/projects/{projectID}/environments/{envID} Delete env. (config)
/environments/{envID} Get env (flat lookup). (config)
/environments/{envID}/stats Env stats (live cluster query). (deployer)
/environments/{envID}/cluster-discovery Live cluster discovery (ingress + cert-manager). (deployer)
Service Connections
/environments/{envID}/deployments/connections Create a service connection. (deployer)
/environments/{envID}/deployments/connections List service connections in env. (deployer)
/environments/{envID}/deployments/connections/{connectionID} Get a service connection. (deployer)
/environments/{envID}/deployments/connections/{connectionID} Soft-delete a service connection. (deployer)
Integrations
/integrations List integrations
/integrations Create an integration
/integrations/{id} Get an integration
/integrations/{id} Update an integration
/integrations/{id} Delete an integration
/integrations/github/install Begin GitHub App install flow
/integrations/github/callback GitHub install/OAuth callback
Webhooks
/webhooks/github GitHub event delivery (HMAC-authenticated; idempotent via delivery_id UUID v5). (deployer)
/build-callbacks/{revisionID} Build runner reports image readiness (JWT-authenticated in body, secret = BUILD_CALLBACK_SECRET). (deployer)