curl --request POST \
--url https://api.coval.dev/v1/reports \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "Accent sweep",
"run_ids": [
"8EktrIgaVxn9LfxkIynagX",
"9FltuJhbWyoAMgymJzobhY"
],
"compare_by": "persona",
"permissions": "PRIVATE"
}
'{
"report": {
"id": "01JABCDEFGHJKMNPQRSTVWXYZ0",
"created_at": null,
"created_by": null,
"updated_at": null,
"updated_by": null,
"name": "Plan comparison",
"run_ids": [
"8EktrIgaVxn9LfxkIynagX",
"9FltuJhbWyoAMgymJzobhY"
],
"compare_by": "metadata",
"metadata_key": "customer.plan",
"permissions": "PUBLIC"
}
}Reports
Create report
Create a saved report from existing run IDs. All runs must belong to the authenticated organization. Public reports are shareable without login and mark their included runs public.
POST
/
reports
curl --request POST \
--url https://api.coval.dev/v1/reports \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "Accent sweep",
"run_ids": [
"8EktrIgaVxn9LfxkIynagX",
"9FltuJhbWyoAMgymJzobhY"
],
"compare_by": "persona",
"permissions": "PRIVATE"
}
'{
"report": {
"id": "01JABCDEFGHJKMNPQRSTVWXYZ0",
"created_at": null,
"created_by": null,
"updated_at": null,
"updated_by": null,
"name": "Plan comparison",
"run_ids": [
"8EktrIgaVxn9LfxkIynagX",
"9FltuJhbWyoAMgymJzobhY"
],
"compare_by": "metadata",
"metadata_key": "customer.plan",
"permissions": "PUBLIC"
}
}Headers
Body
application/json
Was this page helpful?