Skip to main content

Get Result

Get the result of a accident reconstruction report. This endpoint returns the current status and a download URL when the report is completed.

Parameters

ParameterTypeRequiredDescription
reportIdstringYesUnique identifier of the report

Response

Returns:

  • reportId: Unique report identifier
  • status: Current status: pending, processing, completed, failed
  • reportUrl: URL to download the complete report PDF (only when status is completed)

Examples

import "github.com/silentwitness/go-sdk"

silentwitness.Key = "sk_test_..."
response, err := silentwitness.Reports.GetResult(ctx, &silentwitness.GetResultRequest{
ReportId: "report_xyz789abc",
})
if err != nil {
log.Fatal(err)
}

fmt.Printf("Status: %s\n", response.Status)
if response.ReportUrl != nil {
fmt.Printf("Report URL: %s\n", *response.ReportUrl)
}

Errors

CodeDescription
NOT_FOUNDReport does not exist
PERMISSION_DENIEDInsufficient permissions
UNAUTHENTICATEDInvalid or missing API key