reports

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-reports"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/4f7c4cac-027b-4be7-859e-2ffd05b5ca5d/social-card.svg?v=3e7ae33eec8b" alt="reports" width="600" height="315"></a>
GEThttps://lucidace.com/v1/projects/{project_id}/report-settingsScope insight:read

Parameters

project_idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/report-settings"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "daily_cap": 0,
  "opened_today": 0,
  "resets_at": "2024-01-01T00:00:00Z"
}
Schema
daily_capintegerrequired
New reports a day (UTC); signals joining an open report never count.
opened_todayintegerrequired
resets_atstringrequired
The next UTC midnight, when held signals may open reports again.
404
PUThttps://lucidace.com/v1/projects/{project_id}/report-settingsScope settings:write

Parameters

project_idstringpathrequired

Request body

application/json
daily_capintegerrequired
New reports the project may open per UTC day, 1 to 1000 (default 20).
{
  "daily_cap": 0
}

Code samples

cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/report-settings" \
  -H "Content-Type: application/json" \
  -d '{"daily_cap":0}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

400
404
GEThttps://lucidace.com/v1/projects/{project_id}/reportsScope insight:read

Parameters

project_idstringpathrequired
for_mebooleanquery
assigneestringquery
statestringquery
prioritystringquery
sourcestringquery
outcomestringquery
limitintegerquery
cursorstringquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/reports"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Page of InboxReport, newest first
Example
{
  "data": [
    {
      "assignee_id": "string",
      "created_at": "2024-01-01T00:00:00Z",
      "dismiss_note": "string",
      "follow_up_of": "string",
      "id": "string",
      "merged_into": "string",
      "outcome": "string",
      "pr_url": "string",
      "priority": "string",
      "resolved_at": "2024-01-01T00:00:00Z",
      "signal_count": 0,
      "snooze_until": "2024-01-01T00:00:00Z",
      "sources": [
        "string"
      ],
      "state": "string",
      "tags": [
        "string"
      ],
      "title": "string",
      "updated_at": "2024-01-01T00:00:00Z"
    }
  ],
  "next_cursor": "string"
}
Schema
dataInboxReport[]required
Show child parameters
assignee_idstring
created_atstringrequired
dismiss_notestringrequired
follow_up_ofstring
The resolved report this one follows up: opened by hand, or a recurrence of its key.
idstringrequired
merged_intostring
Set when this report was merged into another one (it is then resolved as a duplicate).
outcomestring
Set on resolve or dismiss: fixed | wont_fix | duplicate | not_reproducible | expected.
pr_urlstringrequired
The pull request that fixes it ("" = none).
prioritystringrequired
P0 (most urgent) to P4.
resolved_atstring
signal_countintegerrequired
snooze_untilstring
sourcesstring[]required
statestringrequired
actionable | needs_input | snoozed | resolved | dismissed; an expired snooze reads as actionable.
tagsstring[]required
titlestringrequired
updated_atstringrequired
next_cursorstring
400
404
GEThttps://lucidace.com/v1/projects/{project_id}/reports/{id}Scope insight:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/reports/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "links": {
    "follow_up_of": {
      "created_at": "2024-01-01T00:00:00Z",
      "id": "string",
      "outcome": "string",
      "state": "string",
      "title": "string"
    },
    "follow_ups": [
      {
        "created_at": "2024-01-01T00:00:00Z",
        "id": "string",
        "outcome": "string",
        "state": "string",
        "title": "string"
      }
    ],
    "merged_from": [
      {
        "created_at": "2024-01-01T00:00:00Z",
        "id": "string",
        "outcome": "string",
        "state": "string",
        "title": "string"
      }
    ],
    "merged_into": {
      "created_at": "2024-01-01T00:00:00Z",
      "id": "string",
      "outcome": "string",
      "state": "string",
      "title": "string"
    }
  },
  "report": {
    "assignee_id": "string",
    "created_at": "2024-01-01T00:00:00Z",
    "dismiss_note": "string",
    "follow_up_of": "string",
    "id": "string",
    "merged_into": "string",
    "outcome": "string",
    "pr_url": "string",
    "priority": "string",
    "resolved_at": "2024-01-01T00:00:00Z",
    "signal_count": 0,
    "snooze_until": "2024-01-01T00:00:00Z",
    "sources": [
      "string"
    ],
    "state": "string",
    "tags": [
      "string"
    ],
    "title": "string",
    "updated_at": "2024-01-01T00:00:00Z"
  },
  "signals": [
    {
      "dedupe_key": "string",
      "evidence": {},
      "finding": "string",
      "first_seen_at": "2024-01-01T00:00:00Z",
      "id": "string",
      "last_seen_at": "2024-01-01T00:00:00Z",
      "occurrences": 0,
      "report_id": "string",
      "source": "string",
      "suggested_action": "string",
      "tags": [
        "string"
      ]
    }
  ]
}
Schema
linksobjectrequired
Follow-up chain and merges, both ways.
Show child parameters
follow_up_ofReportRef
Show child parameters
created_atstringrequired
idstringrequired
outcomestring
statestringrequired
titlestringrequired
follow_upsReportRef[]required
Reports opened as follow-ups of this one, oldest first.
Show child parameters
created_atstringrequired
idstringrequired
outcomestring
statestringrequired
titlestringrequired
merged_fromReportRef[]required
Reports merged into this one.
Show child parameters
created_atstringrequired
idstringrequired
outcomestring
statestringrequired
titlestringrequired
merged_intoReportRef
Show child parameters
created_atstringrequired
idstringrequired
outcomestring
statestringrequired
titlestringrequired
reportobjectrequired
Show child parameters
assignee_idstring
created_atstringrequired
dismiss_notestringrequired
follow_up_ofstring
The resolved report this one follows up: opened by hand, or a recurrence of its key.
idstringrequired
merged_intostring
Set when this report was merged into another one (it is then resolved as a duplicate).
outcomestring
Set on resolve or dismiss: fixed | wont_fix | duplicate | not_reproducible | expected.
pr_urlstringrequired
The pull request that fixes it ("" = none).
prioritystringrequired
P0 (most urgent) to P4.
resolved_atstring
signal_countintegerrequired
snooze_untilstring
sourcesstring[]required
statestringrequired
actionable | needs_input | snoozed | resolved | dismissed; an expired snooze reads as actionable.
tagsstring[]required
titlestringrequired
updated_atstringrequired
signalsInboxSignal[]required
Show child parameters
dedupe_keystringrequired
evidenceobjectrequired
findingstringrequired
first_seen_atstringrequired
idstringrequired
last_seen_atstringrequired
occurrencesintegerrequired
How many times the same signal was reported while the report was open.
report_idstringrequired
sourcestringrequired
suggested_actionstringrequired
tagsstring[]required
404
PATCHhttps://lucidace.com/v1/projects/{project_id}/reports/{id}Scope insight:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
assigneestring
A member's user id; null clears the assignee.
notestring
Why it was dismissed or snoozed (at most 1000 characters).
outcomestring
With a resolve or dismiss: fixed | wont_fix | duplicate | not_reproducible | expected.
pr_urlstring
The fixing pull request (an http(s) URL, at most 500 characters); "" clears it.
snooze_untilstring
A future time; on its own it snoozes the report until then.
statestring
actionable | needs_input | snoozed | resolved | dismissed. Resolved is final.
{
  "assignee": "string",
  "note": "string",
  "outcome": "string",
  "pr_url": "string",
  "snooze_until": "2024-01-01T00:00:00Z",
  "state": "string"
}

Code samples

cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}/reports/{id}" \
  -H "Content-Type: application/json" \
  -d '{"assignee":"string","note":"string","outcome":"string","pr_url":"string","snooze_until":"2024-01-01T00:00:00Z","state":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "assignee_id": "string",
  "created_at": "2024-01-01T00:00:00Z",
  "dismiss_note": "string",
  "follow_up_of": "string",
  "id": "string",
  "merged_into": "string",
  "outcome": "string",
  "pr_url": "string",
  "priority": "string",
  "resolved_at": "2024-01-01T00:00:00Z",
  "signal_count": 0,
  "snooze_until": "2024-01-01T00:00:00Z",
  "sources": [
    "string"
  ],
  "state": "string",
  "tags": [
    "string"
  ],
  "title": "string",
  "updated_at": "2024-01-01T00:00:00Z"
}
Schema
assignee_idstring
created_atstringrequired
dismiss_notestringrequired
follow_up_ofstring
The resolved report this one follows up: opened by hand, or a recurrence of its key.
idstringrequired
merged_intostring
Set when this report was merged into another one (it is then resolved as a duplicate).
outcomestring
Set on resolve or dismiss: fixed | wont_fix | duplicate | not_reproducible | expected.
pr_urlstringrequired
The pull request that fixes it ("" = none).
prioritystringrequired
P0 (most urgent) to P4.
resolved_atstring
signal_countintegerrequired
snooze_untilstring
sourcesstring[]required
statestringrequired
actionable | needs_input | snoozed | resolved | dismissed; an expired snooze reads as actionable.
tagsstring[]required
titlestringrequired
updated_atstringrequired
400
404
409 The report is resolved
POSThttps://lucidace.com/v1/projects/{project_id}/reports/{id}/claimScope insight:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/reports/{id}/claim"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Assigned to the caller

Same as 200 · PATCH /v1/projects/{project_id}/reports/{id}

400
404
409 Claimed by someone else, or resolved
POSThttps://lucidace.com/v1/projects/{project_id}/reports/{id}/follow-upScope insight:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
prioritystring
P0 to P4, default P3.
titlestringrequired
Title of the new report (1 to 300 characters).
{
  "priority": "string",
  "title": "string"
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/reports/{id}/follow-up" \
  -H "Content-Type: application/json" \
  -d '{"priority":"string","title":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201 The new follow-up report

Same as 200 · PATCH /v1/projects/{project_id}/reports/{id}

400 The report is still open
404

Updated