List all Reports that the auth token can access
const url = 'http://api.disclosebot.localdev:3000/v1/reports';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://api.disclosebot.localdev:3000/v1/reports \ --header 'Authorization: Bearer <token>'Reports within the plan’s report history window (30 days on Free, unlimited on paid plans). meta.archived_count is the number of older reports kept beyond the window; upgrading lists them again.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Title contains; any ransack predicate over title, description, submitted_through_id (the brief: q[submitted_through_id_in][]=
A result condition: results[
Reports of these briefs (repeat for several); q[submitted_through_id_not_in][] for every other brief
Responses
Section titled “ Responses ”Successful
object
object
object
When the last triage step completed
When a Self Destruct brief’s report was purged, once every channel that took it had completed; null otherwise, including while a channel’s processing has failed
Current results by key
object
object
object
object
object
object
object
object
object
The unpaginated total
Reports outside the plan history window
Example
{ "data": [ { "type": "report", "attributes": { "results": { "additionalProperty": { "source": "triage" } } }, "relationships": { "organization": { "data": { "type": "organization" } }, "brief": { "data": { "type": "brief" } } } } ]}