Skip to content
  • Auto
  • Light
  • Dark

List

Get diagnostics for a build
get/v0/builds/{buildId}/diagnostics

Get diagnostics for a build

Path Parameters
buildIdstring

Build ID

Query Parameters
cursorstring
optional

Pagination cursor from a previous response

limitnumber
optional

Maximum number of diagnostics to return, defaults to 100 (maximum: 100)

exclusiveMinimum0
maximum100
severityenum
optional
"fatal" OR "error" OR "warning" OR "note"

Includes the given severity and above (fatal > error > warning > note).

Hide ParametersShow Parameters
"fatal"
"error"
"warning"
"note"
targetsarray of Target
optional

Optional list of language targets to filter diagnostics by

Returns
dataarray of object
has_moreboolean
next_cursorstring
optional
curl https://api.stainless.com/v0/builds/$BUILD_ID/diagnostics \
    -H "Authorization: Bearer $STAINLESS_API_KEY"
200 Example
{
  "data": [
    {
      "code": "code",
      "ignored": true,
      "level": "fatal",
      "message": "message",
      "config_ref": "config_ref",
      "oas_ref": "oas_ref"
    }
  ],
  "has_more": true,
  "next_cursor": "next_cursor"
}