Export Dashboards and Issue Graphs
Render a dashboard, widget, or issue graph as a PDF or PNG through the API.
Endpoint
POST /api/exports
Render a dashboard, an individual dashboard widget, or an issue graph. The export service must be available in your deployment.
Authentication
Requires permission to read the requested content and its underlying data.
Send Authorization: Bearer <YOUR_API_KEY> and X-Backend-Id: <YOUR_BACKEND_ID>. JSON requests also require Content-Type: application/json. The examples use https://api.groundcover.com; use your deployment's API URL for a self-hosted installation. Replace the example time range with one containing your data.
Request Body
format
string
Yes
pdf or png.
target
object
Yes
The content to render; see below.
auth
object
Yes
Authentication mode. Use {"type":"user"} with your authenticated API request. system is reserved for system-authenticated workflows.
timeRange
object
No
start and end together, as ISO timestamps or epoch milliseconds; optional IANA timezone.
capture
object
No
{"fullscreen":true} captures the full page instead of the resolved element bounds.
Target fields:
Dashboard:
type: "dashboard"and a dashboard UUID indashboardId.Widget:
type: "widget",dashboardId, andwidgetId.Issue graph:
type: "issueGraph"andissueId. Optionalmodeisdefaultorworkload;widthaccepts 320–2400 pixels andheightaccepts 160–1200 pixels.
Export a Dashboard to PDF
Replace the synthetic dashboard UUID with an existing dashboard ID.
Response and Errors
Success returns binary PDF or PNG bytes, with Content-Type: application/pdf or image/png. Save the response to a file; do not parse it as JSON. Check the HTTP status before treating the output as a successful export.
Invalid targets or time ranges return HTTP 400. Request bodies above 10 MiB return 413. The service can return 429 when capacity is exhausted and 503 while draining. A draining response includes error: "EXPORT_SERVICE_DRAINING", a message, and optionally requestId. Retry a transient failure with backoff; do not retry validation failures unchanged.
Last updated
