> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://respan.ai/docs/apis/errors/get-error-group/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://respan.ai/_mcp/server. # Get an error group POST https://api.respan.ai/api/pulses/errors/{fingerprint}/ Content-Type: application/json Returns one error group's counts, first and last seen, reach and triage state in a time range, with its most recent failed spans. Reference: https://respan.ai/docs/apis/errors/get-error-group ## Authentication - `Authorization` header (bearer token, required) — Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer \. For /api/responses, provider credentials such as Perplexity, OpenAI, or Azure OpenAI go in Settings -> Providers or respan\_params.credential\_override in the request body, not in this authentication field. ## Request ### Path parameters - `fingerprint` (string, required) — Error group fingerprint from List error groups: 16 uppercase hex characters, case-sensitive. ### Body (application/json) This endpoint expects an ErrorGroupDetailRequest. - `start_time` (datetime, optional) — Start of the range, ISO 8601. A time without an offset is read as UTC. Defaults to 7 days ago, which is also used if the value can't be parsed. - `end_time` (datetime, optional) — End of the range, ISO 8601. A time without an offset is read as UTC. Defaults to now, which is also used if the value can't be parsed. - `environment` (string, optional) — Only count spans from this environment, such as `prod` or `test`. Omit it to include every environment. - `limit` (integer, optional, default: 50) — Most recent failures to return in `occurrences`. Values above 500 are capped at 500. ## Response ### 200 The error group. - `fingerprint` (string, required) — Error group ID: a hash of error class, provider, endpoint and status code. 16 uppercase hex characters. - `title` (string, required) — Readable name: error class, provider and endpoint, and status code. - `error_class` (enum, required) — Normalized cause of the failure, assigned when the span is stored. - Allowed values: `user_invalid_request`, `user_auth_byok`, `user_quota`, `user_rate_limit`, `user_content_policy`, `user_context_window`, `user_payload_too_large`, `provider_down`, `provider_overloaded`, `provider_timeout`, `provider_rate_limit`, `respan_managed_auth`, `respan_managed_billing`, `respan_config`, `respan_internal`, `network_transient`, `client_cancelled`, `unknown` - `fault_domain` (enum, required) — Whose fault the failure is, derived from `error_class`: `user` (your requests or your own provider keys), `provider` (the upstream provider), `respan` (Respan's gateway or managed capacity), or `none` (client cancellations). - Allowed values: `user`, `respan`, `provider`, `none` - `level` (enum, required) — Respan's ops alert level for the error class: `ops_page` for errors Respan pages its on-call for, `ops_log` for the rest, `none` for cancellations. - Allowed values: `none`, `ops_log`, `ops_page` - `provider` (string, required) — Provider ID. - `endpoint` (string, required) — Upstream operation, such as `chat/completions`, `responses` or `embeddings`. - `status` (integer, required) — HTTP status code. - `count` (integer, required) — Failed spans in the group in the time range. - `first_seen` (string, required) — First failure in the range. UTC, ISO 8601 without a timezone suffix. - `last_seen` (string, required) — Latest failure in the range. UTC, ISO 8601 without a timezone suffix. - `affected_customers` (integer, required) — Distinct `customer_identifier` values among the failures. Spans without one count as one value. - `affected_models` (integer, required) — Distinct models among the failures. - `resolution` (enum, required) — Triage state. Groups you haven't triaged are `unresolved`. - Allowed values: `unresolved`, `resolved`, `ignored` - `occurrences` (list of ErrorGroupOccurrence, required) — Most recent failures in the group, newest first. ## Errors ### 403 Forbidden Error Forbidden: the API key is missing, invalid or expired; the key doesn't grant `logs:read` (Read access does). - `detail` (string, required) ### 404 Not Found Error The group has no failures in the time range. - `error` (string, required) - `fingerprint` (string, required) ### 429 Too Many Requests Error Rate limited. This endpoint allows 60 requests per minute per organization. - `detail` (string, required) ## Types ### ErrorGroupOccurrence - `unique_id` (string, required) — Span ID. Get a span returns its full request, response and error message. - `model` (string, required) - `status` (string, required) — Span status, such as `failed`. - `status_code` (integer, required) — HTTP status code. - `customer_identifier` (string, required) — Customer the span belongs to, if set. - `environment` (string, required) - `timestamp` (string, required) — When the span failed. UTC, ISO 8601 without a timezone suffix. ## Examples **Request** ```json { "start_time": "2026-09-30T00:00:00Z", "end_time": "2026-10-01T00:00:00Z", "limit": 20 } ``` **Response** ```json { "fingerprint": "9F3B2C1D4E5A6B7C", "title": "provider_rate_limit · openai chat/completions · 429", "error_class": "provider_rate_limit", "fault_domain": "respan", "level": "ops_page", "provider": "openai", "endpoint": "chat/completions", "status": 429, "count": 318, "first_seen": "2026-09-30T02:14:51.004112", "last_seen": "2026-09-30T23:58:12.771045", "affected_customers": 41, "affected_models": 2, "resolution": "unresolved", "occurrences": [ { "unique_id": "1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f6a", "model": "gpt-4o", "status": "failed", "status_code": 429, "customer_identifier": "acme-corp", "environment": "prod", "timestamp": "2026-09-30T23:58:12.771045" } ] } ``` **SDK Code** ```python Error Groups_retrieveErrorGroup_example import requests url = "https://api.respan.ai/api/pulses/errors/9F3B2C1D4E5A6B7C/" payload = { "start_time": "2026-09-30T00:00:00Z", "end_time": "2026-10-01T00:00:00Z", "limit": 20 } headers = { "Authorization": "Bearer ", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript Error Groups_retrieveErrorGroup_example const url = 'https://api.respan.ai/api/pulses/errors/9F3B2C1D4E5A6B7C/'; const options = { method: 'POST', headers: {Authorization: 'Bearer ', 'Content-Type': 'application/json'}, body: '{"start_time":"2026-09-30T00:00:00Z","end_time":"2026-10-01T00:00:00Z","limit":20}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Error Groups_retrieveErrorGroup_example package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.respan.ai/api/pulses/errors/9F3B2C1D4E5A6B7C/" payload := strings.NewReader("{\n \"start_time\": \"2026-09-30T00:00:00Z\",\n \"end_time\": \"2026-10-01T00:00:00Z\",\n \"limit\": 20\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Authorization", "Bearer ") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Error Groups_retrieveErrorGroup_example require 'uri' require 'net/http' url = URI("https://api.respan.ai/api/pulses/errors/9F3B2C1D4E5A6B7C/") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer ' request["Content-Type"] = 'application/json' request.body = "{\n \"start_time\": \"2026-09-30T00:00:00Z\",\n \"end_time\": \"2026-10-01T00:00:00Z\",\n \"limit\": 20\n}" response = http.request(request) puts response.read_body ``` ```java Error Groups_retrieveErrorGroup_example import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://api.respan.ai/api/pulses/errors/9F3B2C1D4E5A6B7C/") .header("Authorization", "Bearer ") .header("Content-Type", "application/json") .body("{\n \"start_time\": \"2026-09-30T00:00:00Z\",\n \"end_time\": \"2026-10-01T00:00:00Z\",\n \"limit\": 20\n}") .asString(); ``` ```php Error Groups_retrieveErrorGroup_example request('POST', 'https://api.respan.ai/api/pulses/errors/9F3B2C1D4E5A6B7C/', [ 'body' => '{ "start_time": "2026-09-30T00:00:00Z", "end_time": "2026-10-01T00:00:00Z", "limit": 20 }', 'headers' => [ 'Authorization' => 'Bearer ', 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp Error Groups_retrieveErrorGroup_example using RestSharp; var client = new RestClient("https://api.respan.ai/api/pulses/errors/9F3B2C1D4E5A6B7C/"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer "); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"start_time\": \"2026-09-30T00:00:00Z\",\n \"end_time\": \"2026-10-01T00:00:00Z\",\n \"limit\": 20\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift Error Groups_retrieveErrorGroup_example import Foundation let headers = [ "Authorization": "Bearer ", "Content-Type": "application/json" ] let parameters = [ "start_time": "2026-09-30T00:00:00Z", "end_time": "2026-10-01T00:00:00Z", "limit": 20 ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.respan.ai/api/pulses/errors/9F3B2C1D4E5A6B7C/")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```