v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
Error Tracking

Search error tracking issues

Search issues endpoint allows you to programmatically search for issues within your organization. This endpoint returns a list of issues that match a given search query, following the event search syntax. The search results are limited to a maximum of 100 issues per request.

post/api/v2/error-tracking/issues/search

Query parameters

includeSearchIssuesIncludeQueryParameterItem[]

Comma-separated list of relationship objects that should be included in the response. Possible values are issue, issue.assignee, issue.case, and issue.team_owners.

[
  "issue.case"
]

Request body

Example request

{
  "data": {
    "attributes": {
      "assignee_ids": [
        "00000000-0000-0000-0000-000000000001"
      ],
      "from": 1671612804000,
      "order_by": "IMPACTED_SESSIONS",
      "persona": "BACKEND",
      "query": "service:orders-* AND @language:go",
      "states": [
        "OPEN",
        "ACKNOWLEDGED"
      ],
      "team_ids": [
        "00000000-0000-0000-0000-000000000002"
      ],
      "to": 1671620004000,
      "track": "trace"
    },
    "type": "search_request"
  }
}

Response

OK

Example response

{
  "data": [
    {
      "attributes": {
        "impacted_sessions": 12,
        "impacted_users": 4,
        "total_count": 82
      },
      "id": "c1726a66-1f64-11ee-b338-da7ad0900002",
      "relationships": {
        "issue": {
          "data": {
            "id": "c1726a66-1f64-11ee-b338-da7ad0900002",
            "type": "issue"
          }
        }
      },
      "type": "error_tracking_search_result"
    }
  ],
  "included": [
    {
      "attributes": {
        "error_message": "object of type 'NoneType' has no len()",
        "error_type": "builtins.TypeError",
        "file_path": "/django-email/conduit/apps/core/utils.py",
        "first_seen": 1671612804001,
        "first_seen_version": "aaf65cd0",
        "function_name": "filter_forbidden_tags",
        "languages": [
          "PYTHON",
          "GO"
        ],
        "last_seen": 1671620003100,
        "last_seen_version": "b6199f80",
        "platform": "BACKEND",
        "regression": {
          "regressed_at": "2024-01-03T08:00:00Z",
          "regressed_at_version": "v2.5.2",
          "resolved_at": "2024-01-01T10:00:00Z"
        },
        "service": "email-api-py",
        "state": "RESOLVED"
      },
      "id": "c1726a66-1f64-11ee-b338-da7ad0900002",
      "relationships": {
        "assignee": {
          "data": {
            "id": "87cb11a0-278c-440a-99fe-701223c80296",
            "type": "user"
          }
        },
        "case": {
          "data": {
            "id": "2841440d-e780-4fe2-96cd-6a8c1d194da5",
            "type": "case"
          }
        },
        "team_owners": {
          "data": [
            {
              "id": "221b0179-6447-4d03-91c3-3ca98bf60e8a",
              "type": "team"
            }
          ]
        }
      },
      "type": "issue"
    }
  ]
}