Replay VisionMake a key the default

Make a key the default

Make the scope's key for provider its default key: the key scanners and scouts with no provider run on. The scope's previous default stops being the default. Also the MCP tool make_default_replay_vision_key. 400 invalid_key for a bad provider, location or extra field, 403 location_not_linked when the client is not one of the agency's, 404 not_found when the scope has no key for that provider.

curl -X POST "https://mythic-analytics.gulp.workers.dev/client/v1/replay-vision/keys/default" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "location_id": "example_string",
  "provider": "openrouter"
}'
{
  "success": true,
  "data": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "scope": "agency",
    "location_id": "example_string",
    "provider": "openrouter",
    "key_hint": "…a1b2",
    "default_model": "example_string",
    "is_default": true,
    "verified_at": "2024-12-25T10:00:00Z",
    "last_error": "example_string",
    "last_error_at": "2024-12-25T10:00:00Z",
    "updated_at": "2024-12-25T10:00:00Z"
  }
}
POST
/client/v1/replay-vision/keys/default
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

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.

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.
Content-Typestring
Required

The media type of the request body

Options: application/json
location_idstring

A client id. Omit or null for the agency's keys.

providerstring
Required
Options: openrouter, gemini, cloudflare
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

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.

Body

application/json
location_idstring

A client id. Omit or null for the agency's keys.

providerstring
Required
Allowed values:openroutergeminicloudflare

Responses

successboolean
dataobject