> ## Documentation Index
> Fetch the complete documentation index at: https://docs.khanhng.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 4.6 Getting started with v1

> Getting started for ReportGeneratorTool.

These steps illustrate the proposed `/v1` contract for Report Automation Tool. The workspace API key and `/v1` resources are not recorded as shipped.

**1. Obtain a workspace API key**

Request a key and your API base URL from your administrator.

**2. Create a report job**

Call POST /v1/report-jobs with portal details, one device, a UTC date range and recipients. Send a fresh Idempotency-Key for each intended job. The contract returns 202 Accepted and a Location header identifying the job.

**3. Poll the job**

Call `GET /v1/report-jobs/{jobId}` every five seconds until succeeded, failed or cancelled. Honor Retry-After when supplied.

**4. Download the PDF**

Use reportId with `GET /v1/reports/{reportId}/download`. The response contains PDF bytes. Initial generation also sends the report by email.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.