Faults

List faults

Returns a list of faults for the project.

get/projects/{project_id}/faults

Request

Path parameters

project_idstring required
Example:Xk9mZp

Project ID

Query parameters

pageinteger

Page number (1-indexed)

per_pageinteger

Items per page

qstring

Search query, in the syntax of the web UI's error search, such as environment:production, is:resolved or class:ArgumentError. Prefix a filter with - to negate it. See Error search for the syntax and filters. Filters that need the search index return nothing when it holds no data for the project.

order'recent' | 'frequent'

recent sorts by last occurrence, frequent by occurrence count. Left out, by creation time.

sort'asc' | 'desc'

Direction for order. Defaults to desc for recent and frequent, asc for creation time.

created_afternumber double

Only faults first seen after this Unix timestamp (seconds, not ISO 8601).

occurred_afternumber double

Only occurrences after this Unix timestamp (seconds, not ISO 8601). A value before the project's retention window is moved up to it. On the fault list, occurrence counts cover this window.

occurred_beforenumber double

Only occurrences before this Unix timestamp (seconds, not ISO 8601).

Response

Success

Example response

{
  "data": [
    {
      "id": "12345",
      "project_id": "Xk9mZp",
      "klass": "NoMethodError",
      "message": "undefined method 'foo' for nil:NilClass",
      "component": "UsersController",
      "action": "show",
      "environment": "production",
      "notices_count": 214,
      "comments_count": 2,
      "tags": [
        "critical",
        "backend"
      ],
      "assignee_id": "Uq7rT2",
      "assignee": {
        "id": "Uz4wKm",
        "name": "Jane Smith",
        "email": "jane@example.com"
      },
      "last_notice_deploy": {
        "id": "Dp2yNk",
        "project_id": "Xk9mZp",
        "environment": "production",
        "revision": "a1b2c3d4",
        "repository": "acme/app",
        "local_username": "jane"
      },
      "tickets": [
        {
          "url": "https://github.com/acme/shop/issues/482",
          "integration_id": "Ch9wLp"
        }
      ],
      "notices_count_in_range": 37,
      "links": {
        "web": "https://app.honeybadger.io/projects/Xk9mZp"
      }
    }
  ],
  "pagination": {
    "page": 1,
    "per_page": 25
  },
  "links": {
    "self": "/v3/projects?page=2&per_page=25",
    "first": "/v3/projects?page=1&per_page=25",
    "prev": "/v3/projects?page=1&per_page=25",
    "next": "/v3/projects?page=3&per_page=25"
  },
  "meta": {
    "request_id": "6f1c2b0e-8d4a-4f6e-9b2a-3c5d7e9f1a2b"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.