Dashboards API
Create, query, update, archive, and manage native groundcover dashboards over HTTP.
Manage native groundcover dashboards, including catalog installations, revision history and batch actions. For the dashboard definition itself, see Dashboard schema.
Authentication
Use an API key with the permissions described below. Include Authorization: Bearer <YOUR_API_KEY> and X-Backend-Id: <YOUR_BACKEND_ID> on every request; JSON bodies also require Content-Type: application/json. Self-hosted deployments use their own API URL.
The examples use these shell variables:
export GC_BASE_URL='https://api.groundcover.com'
export GC_API_KEY='<YOUR_API_KEY>'
export GC_BACKEND_ID='<YOUR_BACKEND_ID>'Viewer permissions allow reads. Dashboard mutations require Editor permissions or higher by default; deployments can explicitly allow Viewers to edit dashboards.
Create a dashboard
POST /api/dashboards
name
Yes
Dashboard name.
preset
Yes
Dashboard definition encoded as a JSON string, not an object.
description
No
Description.
team
No
Team metadata.
tags
No
Up to 20 tags after trimming whitespace and removing empty strings and exact duplicates. Case is preserved.
isProvisioned
No
Marks a dashboard as managed by Terraform/IaC. Defaults to false. This does not make it a managed catalog dashboard.
This creates an empty dashboard that can be populated using the dashboard schema. schemaVersion describes the preset format; it is independent of the HTTP endpoint path:
Returns 201 Created with the dashboard object. Save its uuid and revisionNumber. Responses also include name, viewType (explore), preset, status, owner/timestamp metadata and optional description, team and tags.
List and retrieve dashboards
GET /api/dashboards returns an array of dashboards with member-specific metadata. Optional query parameters:
status: for example,activeorarchived.source:regular,terraformorgc-catalog.query: a gcQL filter expression, without pipes. Supported keys includename,description,owner,tags,team,source,statusandfavorites. Unkeyed terms search name, description, owner and tags. Top-level filters andqueryare combined with AND.
POST /api/dashboards/list provides paginated summaries. name and description are case-insensitive substring filters; limit defaults to 1000, skip defaults to 0, and sort is name (default) or description.
The response is {"dashboards":[...],"done":true}. Increase skip by limit until done is true. Summary records do not contain the full preset.
GET /api/dashboards/{id} retrieves the full object; ?excludePreset=true omits the preset.
Update safely
PUT /api/dashboards/{id} accepts the create fields plus currentRevision and override. Send the complete desired dashboard and the revisionNumber from the latest read as currentRevision. The following uses jq to retain the preset and optional fields:
Returns 202 Accepted with the updated object. A stale revision returns 409 Conflict with code VIEW_REVISION_CONFLICT; fetch the current object and reconcile edits before retrying. override:true bypasses this check and requires omitting currentRevision; reserve it for intentional replacement.
Archive, restore and delete
POST
/api/dashboards/{id}/archive?currentRevision={revision}archives a dashboard.POST
/api/dashboards/{id}/restore?currentRevision={revision}restores an archived dashboard.DELETE
/api/dashboards/{id}permanently deletes the dashboard.
Read the latest revision before each archive or restore. Both return 202 with the updated object; deletion returns 200 with no body.
Revision history
POST /api/dashboards/{id}/revisions takes a positive limit and optional skip:
Returns {"revisions":[...],"hasNextPage":false}. To recover an older definition, use that revision's preset in a PUT with the current revision number. The /restore action restores an archived dashboard, not a historical definition.
Dashboard catalog
GET
/api/dashboards/catalogreturnspacksandtemplates, includingaddedand, for installed templates,installedDashboardId. Optionalfilteraccepts a gcQL filter expression.GET
/api/dashboards/catalog/{catalogId}returns template metadata and its JSON-encodedpreset.POST
/api/dashboards/catalog/{catalogId}installs a managed dashboard. The body is optional;name,descriptionandteamcan override installation metadata.
Returns 201. A duplicate installation returns 409. Managed dashboards have originType:"Catalog" and originId; their preset follows the catalog. Editing, tagging or archiving them is rejected. Delete the installation to remove it. To customize one, read its resolved preset and create a separate regular dashboard. If a catalog template is no longer available, retrieving its resolved dashboard can return 410 Gone.
Batch operations
Each batch accepts 1–200 UUIDs in dashboardUuids:
POST
/api/dashboards/batch/tags: add/remove tags withtagsToAddandtagsToRemove. At least one must be nonempty, and the two lists must not overlap.POST
/api/dashboards/batch/archive: archive regular dashboards.POST
/api/dashboards/batch/delete: delete archived dashboards; managed catalog installations may be deleted directly.
Replace the illustrative UUID. A 200 response can contain partial failures: inspect updatedCount, failedCount and every entry in errors (id, reason and optional code).
Discover filter values
POST /api/dashboards/filters accepts optional query and required (owner, tags, source, favorites). It returns a map of facet names to value/count arrays. Include status:active in query to restrict the set to active dashboards; the deprecated top-level source field is ignored.
Last updated
