Example Scenario
We will use the example of a SCADA database pushing meter measurements of carbon capture data to a CCS project developer’s own Mangrove account. This can happen on a daily basis, where the measurements collected throughout the day are sent to Mangrove in one scheduled push at the end of the day (midnight).
1
Pre-requisites
Before you begin, make sure you have the following:
- Mangrove project ID: The unique identifier for the project you’re targeting.
- API Credentials: A valid API token (Bearer token).
- The token must have Data Collection permissions with both read and write access.
2
Retrieve Event Type Slugs
Each event type in a Mangrove project has a unique slug. These are required when posting events.Endpoint to use: GET event types
Save the slugs (
GET /v1/projects/{project_id}/event-types
Example
Response
co2-capture
,co2-injection
) for your POST payload.3
Retrieve Location IDs
Events must be associated with a specific location ID.Endpoint to use: GET project locations
GET /v1/projects/{project_id}/locations
Example
Response
4
Send the Events
With event type slugs and location IDs in hand, you can now POST your timeseries data as events.Endpoint to use: POST event
POST /v1/projects/{project_id}/events
Headers:Headers
Example Payload
5
Attach Evidence Files on Created Events
After events are created, you can associate evidence files (e.g., images, PDFs) with them.Endpoint to use: POST evidence on an event
This call must be made per event. Automate it by iterating over the list of event IDs created in Step 4.
POST /v1/events/{event_id}/evidence
Example
Response