Thrust Carbon

Reports: new

POST
/projects/{projectId}/reports

Create a new report. This will return a report in a 'requested' state, you will then need to wait for the report to finish generating (10-60 seconds); we recommend using webhooks to wait for changes.

AuthorizationBearer <token>

Your API Key must be provided as a bearer token. To do this, create an 'Authorization' header with a value of 'Bearer {your-api-key}' (e.g. "Authorization: Bearer xcvboy23idvh").

In: header

Path Parameters

projectId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/projects/string/reports" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",  "created_at": "2019-08-24T14:15:22Z",  "completed_at": "2019-08-24T14:15:22Z",  "expires_at": "2019-08-24T14:15:22Z",  "is_valid": true,  "report_url": "http://example.com",  "state": "requested",  "options": {    "start": "2019-08-24",    "end": "2019-08-24",    "grouping_type": "default",    "grouping": "string"  }}