Retry a failed observation
Puts a failed observation back in the queue with the same scanner snapshot. Anything else gets 409 not_failed. A retry counts against the scanner's monthly_scan_limit (429 monthly_limit_reached).
curl -X POST "https://mythic-analytics.gulp.workers.dev/client/v1/replay-vision/observations/123e4567-e89b-12d3-a456-426614174000/retry" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
import requests
import json
url = "https://mythic-analytics.gulp.workers.dev/client/v1/replay-vision/observations/123e4567-e89b-12d3-a456-426614174000/retry"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
response = requests.post(url, headers=headers)
print(response.json())
const response = await fetch("https://mythic-analytics.gulp.workers.dev/client/v1/replay-vision/observations/123e4567-e89b-12d3-a456-426614174000/retry", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("POST", "https://mythic-analytics.gulp.workers.dev/client/v1/replay-vision/observations/123e4567-e89b-12d3-a456-426614174000/retry", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://mythic-analytics.gulp.workers.dev/client/v1/replay-vision/observations/123e4567-e89b-12d3-a456-426614174000/retry')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = 'Bearer YOUR_API_TOKEN'
response = http.request(request)
puts response.body
{
"success": true,
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"scanner_id": "123e4567-e89b-12d3-a456-426614174000",
"location_id": "example_string",
"session_id": "example_string",
"status": "pending",
"triggered_by": "schedule",
"scanner": {
"name": "John Doe",
"type": "example_string",
"version": 42
},
"output": {},
"decision": {},
"citations": [
{
"video_s": 123,
"recording_ms": 42
}
],
"key_moment_ms": 42,
"ineligible_reason": "no_recording",
"error": {
"kind": "auth",
"message": "example_string"
},
"provider": "example_string",
"model": "example_string",
"key_scope": "agency",
"cost_usd": 3.14,
"usage": {},
"attempts": 42,
"created_at": "2024-12-25T10:00:00Z",
"completed_at": "2024-12-25T10:00:00Z"
}
}
{
"error": "Conflict",
"message": "The request conflicts with the current state of the resource",
"code": 409,
"details": "Resource already exists"
}
{
"error": "Too Many Requests",
"message": "Rate limit exceeded. Please try again later",
"code": 429,
"retryAfter": 3600
}
/client/v1/replay-vision/observations/{id}/retryTarget server for requests. Edit to use your own host.
Agency key (ak_) only; a location secret key (sk_) gets 403 agency_required. Agency-wide scoped keys (mcp_) need replay_vision:read or replay_vision:write.
ak_) only; a location secret key (sk_) gets 403 agency_required. Agency-wide scoped keys (mcp_) need replay_vision:read or replay_vision:write.Request Preview
Response
Response will appear here after sending the request
Authentication
Bearer token. Agency key (ak_) only; a location secret key (sk_) gets 403 agency_required. Agency-wide scoped keys (mcp_) need replay_vision:read or replay_vision:write.