API Reference

Report Subscriptions

5 endpoints· Auth: JWT or API Key
get/api/v1/console/report-subscriptions JWT API Key

The branch's subscriptions, each with its three most recent send outcomes

Deactivated rows are listed by default. Hiding them would make an owner create a duplicate of a subscription they themselves switched off.

Capability
view_profit
API key scope
cap:view_profit (the key's owner must also hold the capability)

Query parameters

Active
boolean
Restrict to active rows. Null lists both, because a deactivated subscription is re-activatable and hiding it makes an owner create a duplicate (FR-RPT-085).
ReportKey
string
Restrict to one registry key.
Page
integer (int32)
—
PerPage
integer (int32)
—
Search
string
Free-text filter. Its meaning is per-resource and documented on the endpoint.
Skip
integer (int32)
Rows to skip, derived — never sent by the caller on this surface.
Sort
string
A snake_case column key from the endpoint's allow-list (`created_at`, `gross_total`, `status` …). Absent or blank → the endpoint's default order.
Dir
string
`asc` (the default when Panoptes.Application.Common.SortableRequest.Sort is present) or `desc`. Ignored without a sort.

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/report-subscriptions" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Query parameters

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/report-subscriptions JWT API Key

Create one (,)

Refuses an unknown report, a report outside the deliverable set, a format this build cannot render, and an identical active duplicate. The row and its audit entry commit in one transaction.

Capability
view_profit
API key scope
cap:view_profit (the key's owner must also hold the capability)

Request body

application/json
{
  "reportKey": "string",
  "recipientEmail": "string",
  "cadence": "Daily",
  "format": "Xlsx"
}
reportKey
string
—
recipientEmail
string
Normalised to lower case before storage and before the duplicate check.
cadence
ReportCadence
—
format
ExportFormat
—

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/report-subscriptions" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "reportKey": "string",
  "recipientEmail": "string",
  "cadence": "Daily",
  "format": "Xlsx"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
delete/api/v1/console/report-subscriptions/{id} JWT API Key

Retire it by tombstone

Gone from every read; the send ledger is untouched, because an email that left the building is not un-sent by retiring the standing order for it.

Capability
view_profit
API key scope
cap:view_profit (the key's owner must also hold the capability)

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "reason": "string"
}
reason
string
—

Responses

200Success
cURL
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/report-subscriptions/{id}" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/report-subscriptions/{id}/activate JWT API Key

Switch it back on — the half that makes deactivation reversible

Capability
view_profit
API key scope
cap:view_profit (the key's owner must also hold the capability)

Path parameters

idrequired
string (uuid)
—

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/report-subscriptions/{id}/activate" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/report-subscriptions/{id}/deactivate JWT API Key

Switch it off

Reversible, and distinct from retirement: the row stays readable and re-activatable.

Capability
view_profit
API key scope
cap:view_profit (the key's owner must also hold the capability)

Path parameters

idrequired
string (uuid)
—

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/report-subscriptions/{id}/deactivate" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

Set credentials in the “Authorize” menu