{"openapi":"3.0.3","info":{"title":"Tailcove API","version":"1","description":"Manage your team's sources, monitors, alerts, incidents, status page and on-call from code. Every request is made with a personal access token created under Settings, API tokens, for one team; each endpoint says which ability it needs. A POST accepts an Idempotency-Key."},"servers":[{"url":"https:\/\/tailcove.dev"}],"tags":[{"name":"Sources"},{"name":"Logs"},{"name":"Issues"},{"name":"Monitors"},{"name":"Alerts"},{"name":"Incidents"},{"name":"Status page"},{"name":"Log levels"},{"name":"Deploys"},{"name":"On-call"},{"name":"Source maps"}],"paths":{"\/api\/v1\/correlate":{"get":{"operationId":"correlate","tags":["Logs"],"summary":"Every line carrying one id (a trace id, a request id, or one field's value) across your sources, oldest first","security":[{"bearerAuth":["logs:read"]}],"x-abilities":["logs:read"],"parameters":[{"name":"id","in":"query","required":false,"description":"The id to follow (required, at most 200 characters)","schema":{"type":"string"}},{"name":"field","in":"query","required":false,"description":"Only this top-level context key; default: trace_id, request_id, correlation_id and their usual spellings","schema":{"type":"string"}},{"name":"at","in":"query","required":false,"description":"ISO 8601 time of a line with the id; the window reaches both ways from it","schema":{"type":"string"}},{"name":"window","in":"query","required":false,"description":"15m, 1h, 6h, 24h, 3d or 7d (default 15m around at, 1h before now)","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1 to 500","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/CorrelationPage"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/v1\/incidents":{"get":{"operationId":"incidents_index","tags":["Incidents"],"summary":"List incidents (newest first, at most 100)","security":[{"bearerAuth":["incidents:read"]}],"x-abilities":["incidents:read"],"parameters":[{"name":"status","in":"query","required":false,"description":"open: only incidents not yet resolved","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Incident"}}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"incidents_store","tags":["Incidents"],"summary":"Open an incident","security":[{"bearerAuth":["incidents:write"]}],"x-abilities":["incidents:write"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Repeats of a request with the same key within 24 hours return the first answer instead of doing it again.","schema":{"type":"string","maxLength":128}}],"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Incident"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed (`error.details` names the fields), or the Idempotency-Key was reused for a different request.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"409":{"description":"A request with this Idempotency-Key is still being processed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/IncidentInput"}}}}}},"\/api\/v1\/incidents\/{incident}":{"get":{"operationId":"incidents_show","tags":["Incidents"],"summary":"Get an incident with its timeline","security":[{"bearerAuth":["incidents:read"]}],"x-abilities":["incidents:read"],"parameters":[{"name":"incident","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/IncidentWithEvents"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/v1\/incidents\/{incident}\/acknowledge":{"post":{"operationId":"incidents_acknowledge","tags":["Incidents"],"summary":"Acknowledge an incident","security":[{"bearerAuth":["incidents:write"]}],"x-abilities":["incidents:write"],"parameters":[{"name":"incident","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Repeats of a request with the same key within 24 hours return the first answer instead of doing it again.","schema":{"type":"string","maxLength":128}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Incident"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed (`error.details` names the fields), or the Idempotency-Key was reused for a different request.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"409":{"description":"A request with this Idempotency-Key is still being processed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/v1\/incidents\/{incident}\/comments":{"post":{"operationId":"incidents_comment","tags":["Incidents"],"summary":"Add a comment to an incident","security":[{"bearerAuth":["incidents:write"]}],"x-abilities":["incidents:write"],"parameters":[{"name":"incident","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Repeats of a request with the same key within 24 hours return the first answer instead of doing it again.","schema":{"type":"string","maxLength":128}}],"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Incident"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed (`error.details` names the fields), or the Idempotency-Key was reused for a different request.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"409":{"description":"A request with this Idempotency-Key is still being processed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CommentInput"}}}}}},"\/api\/v1\/incidents\/{incident}\/resolve":{"post":{"operationId":"incidents_resolve","tags":["Incidents"],"summary":"Resolve an incident","security":[{"bearerAuth":["incidents:write"]}],"x-abilities":["incidents:write"],"parameters":[{"name":"incident","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Repeats of a request with the same key within 24 hours return the first answer instead of doing it again.","schema":{"type":"string","maxLength":128}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Incident"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed (`error.details` names the fields), or the Idempotency-Key was reused for a different request.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"409":{"description":"A request with this Idempotency-Key is still being processed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/v1\/monitors":{"get":{"operationId":"monitors_index","tags":["Monitors"],"summary":"List monitors","security":[{"bearerAuth":["monitors:read"]}],"x-abilities":["monitors:read"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Monitor"}}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"monitors_store","tags":["Monitors"],"summary":"Create a monitor, within the plan's limits","security":[{"bearerAuth":["monitors:write"]}],"x-abilities":["monitors:write"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Repeats of a request with the same key within 24 hours return the first answer instead of doing it again.","schema":{"type":"string","maxLength":128}}],"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Monitor"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed (`error.details` names the fields), or the Idempotency-Key was reused for a different request.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"409":{"description":"A request with this Idempotency-Key is still being processed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MonitorInput"}}}}}},"\/api\/v1\/monitors\/{monitor}":{"get":{"operationId":"monitors_show","tags":["Monitors"],"summary":"Get a monitor","security":[{"bearerAuth":["monitors:read"]}],"x-abilities":["monitors:read"],"parameters":[{"name":"monitor","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Monitor"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"put":{"operationId":"monitors_update","tags":["Monitors"],"summary":"Replace a monitor. An empty request header value keeps the saved one","security":[{"bearerAuth":["monitors:write"]}],"x-abilities":["monitors:write"],"parameters":[{"name":"monitor","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Monitor"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed (`error.details` names the fields), or the Idempotency-Key was reused for a different request.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MonitorInput"}}}}},"delete":{"operationId":"monitors_destroy","tags":["Monitors"],"summary":"Delete a monitor","security":[{"bearerAuth":["monitors:write"]}],"x-abilities":["monitors:write"],"parameters":[{"name":"monitor","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"204":{"description":"Done. No body."},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/v1\/oncall\/now":{"get":{"operationId":"oncall_now","tags":["On-call"],"summary":"Who is on call now, per schedule","security":[{"bearerAuth":["oncall:read"]}],"x-abilities":["oncall:read"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/OnCallNow"}}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/v1\/oncall\/policies":{"get":{"operationId":"oncall_policies_index","tags":["On-call"],"summary":"List escalation policies","security":[{"bearerAuth":["oncall:read"]}],"x-abilities":["oncall:read"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Policy"}}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/v1\/oncall\/schedules":{"get":{"operationId":"oncall_schedules_index","tags":["On-call"],"summary":"List on-call schedules","security":[{"bearerAuth":["oncall:read"]}],"x-abilities":["oncall:read"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Schedule"}}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/v1\/oncall\/schedules\/{schedule}\/overrides":{"get":{"operationId":"oncall_overrides_index","tags":["On-call"],"summary":"List a schedule's current and coming overrides","security":[{"bearerAuth":["oncall:read"]}],"x-abilities":["oncall:read"],"parameters":[{"name":"schedule","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Override"}}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"oncall_overrides_store","tags":["On-call"],"summary":"Add an override: someone covers a stretch","security":[{"bearerAuth":["oncall:write"]}],"x-abilities":["oncall:write"],"parameters":[{"name":"schedule","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Repeats of a request with the same key within 24 hours return the first answer instead of doing it again.","schema":{"type":"string","maxLength":128}}],"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Override"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed (`error.details` names the fields), or the Idempotency-Key was reused for a different request.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"409":{"description":"A request with this Idempotency-Key is still being processed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OverrideInput"}}}}}},"\/api\/v1\/oncall\/schedules\/{schedule}\/overrides\/{override}":{"delete":{"operationId":"oncall_overrides_destroy","tags":["On-call"],"summary":"Remove an override","security":[{"bearerAuth":["oncall:write"]}],"x-abilities":["oncall:write"],"parameters":[{"name":"schedule","in":"path","required":true,"schema":{"type":"integer"}},{"name":"override","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"204":{"description":"Done. No body."},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/v1\/realtime":{"get":{"operationId":"realtime","tags":["Issues"],"summary":"Where the WebSocket server for live updates is (Pusher protocol 7); enabled is false when this server has none","security":[{"bearerAuth":["issues:read"]}],"x-abilities":["issues:read"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Realtime"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/v1\/realtime\/auth":{"get":{"operationId":"realtime_auth","tags":["Issues"],"summary":"Sign a subscription to private-source.{source_id}.issues for a WebSocket connection; the channel sends issues.changed when the source's issues change","security":[{"bearerAuth":["issues:read"]}],"x-abilities":["issues:read"],"parameters":[{"name":"socket_id","in":"query","required":false,"description":"The socket_id from pusher:connection_established (required)","schema":{"type":"string"}},{"name":"channel_name","in":"query","required":false,"description":"private-source.{source_id}.issues (required)","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RealtimeAuth"}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/v1\/sources":{"get":{"operationId":"sources_index","tags":["Sources"],"summary":"List sources","security":[{"bearerAuth":["sources:read"]},{"bearerAuth":["logs:read"]},{"bearerAuth":["issues:read"]}],"x-abilities":["sources:read","logs:read","issues:read"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Source"}}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"sources_store","tags":["Sources"],"summary":"Create a source. The ingest token is in this answer only","security":[{"bearerAuth":["sources:write"]}],"x-abilities":["sources:write"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Repeats of a request with the same key within 24 hours return the first answer instead of doing it again.","schema":{"type":"string","maxLength":128}}],"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/SourceWithToken"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed (`error.details` names the fields), or the Idempotency-Key was reused for a different request.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"409":{"description":"A request with this Idempotency-Key is still being processed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SourceInput"}}}}}},"\/api\/v1\/sources\/dev":{"post":{"operationId":"sources_dev","tags":["Sources"],"summary":"Find or create your temporary source for a device and project (tailcove dev): 201 when made, 200 when reused. Every call gives a new ingest token (the previous one stops working) and moves expires_at to 24 hours from now; at most 3 per person per team (422)","security":[{"bearerAuth":["sources:write"]}],"x-abilities":["sources:write"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Repeats of a request with the same key within 24 hours return the first answer instead of doing it again.","schema":{"type":"string","maxLength":128}}],"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/DevSource"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed (`error.details` names the fields), or the Idempotency-Key was reused for a different request.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"409":{"description":"A request with this Idempotency-Key is still being processed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DevSourceInput"}}}}}},"\/api\/v1\/sources\/{source}":{"get":{"operationId":"sources_show","tags":["Sources"],"summary":"Get a source","security":[{"bearerAuth":["sources:read"]},{"bearerAuth":["logs:read"]},{"bearerAuth":["issues:read"]}],"x-abilities":["sources:read","logs:read","issues:read"],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Source"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"put":{"operationId":"sources_update","tags":["Sources"],"summary":"Replace a source's name, platform, retention and client group","security":[{"bearerAuth":["sources:write"]}],"x-abilities":["sources:write"],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Source"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed (`error.details` names the fields), or the Idempotency-Key was reused for a different request.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SourceInput"}}}}},"delete":{"operationId":"sources_destroy","tags":["Sources"],"summary":"Delete a source (owners and admins)","security":[{"bearerAuth":["sources:write"]}],"x-abilities":["sources:write"],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"204":{"description":"Done. No body."},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/v1\/sources\/{source}\/alerts":{"get":{"operationId":"alerts_index","tags":["Alerts"],"summary":"List a source's alerts","security":[{"bearerAuth":["alerts:read"]}],"x-abilities":["alerts:read"],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Alert"}}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"alerts_store","tags":["Alerts"],"summary":"Create an alert on a source","security":[{"bearerAuth":["alerts:write"]}],"x-abilities":["alerts:write"],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Repeats of a request with the same key within 24 hours return the first answer instead of doing it again.","schema":{"type":"string","maxLength":128}}],"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Alert"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed (`error.details` names the fields), or the Idempotency-Key was reused for a different request.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"409":{"description":"A request with this Idempotency-Key is still being processed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AlertInput"}}}}}},"\/api\/v1\/sources\/{source}\/alerts\/{alert}":{"get":{"operationId":"alerts_show","tags":["Alerts"],"summary":"Get an alert","security":[{"bearerAuth":["alerts:read"]}],"x-abilities":["alerts:read"],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"integer"}},{"name":"alert","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Alert"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"put":{"operationId":"alerts_update","tags":["Alerts"],"summary":"Replace an alert","security":[{"bearerAuth":["alerts:write"]}],"x-abilities":["alerts:write"],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"integer"}},{"name":"alert","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Alert"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed (`error.details` names the fields), or the Idempotency-Key was reused for a different request.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AlertInput"}}}}},"delete":{"operationId":"alerts_destroy","tags":["Alerts"],"summary":"Delete an alert","security":[{"bearerAuth":["alerts:write"]}],"x-abilities":["alerts:write"],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"integer"}},{"name":"alert","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"204":{"description":"Done. No body."},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/v1\/sources\/{source}\/code-hotspots":{"get":{"operationId":"sources_code_hotspots","tags":["Issues"],"summary":"The lines of code that raised the source's open issues in the last days, grouped by repository path and line, busiest first (for the editor extension)","security":[{"bearerAuth":["issues:read"]}],"x-abilities":["issues:read"],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"integer"}},{"name":"days","in":"query","required":false,"description":"1 to 30, default 7","schema":{"type":"string"}},{"name":"path","in":"query","required":false,"description":"Only this repository-relative file, e.g. app\/Jobs\/ChargeCard.php","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/CodeHotspotPage"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/v1\/sources\/{source}\/compare":{"get":{"operationId":"sources_compare","tags":["Logs"],"summary":"Compare a canary with its baseline: two queries on one source over the last minutes, with a verdict (ok, worse or not_enough_data) a rollout tool can gate on","security":[{"bearerAuth":["logs:read"]}],"x-abilities":["logs:read"],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"integer"}},{"name":"baseline","in":"query","required":false,"description":"Query for the lines of the version you trust (required), e.g. -host:canary-*","schema":{"type":"string"}},{"name":"canary","in":"query","required":false,"description":"Query for the lines of the new version (required), e.g. host:canary-*","schema":{"type":"string"}},{"name":"minutes","in":"query","required":false,"description":"1 to 1440, default 15: the window, up to now","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CanaryComparison"}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/v1\/sources\/{source}\/deploys":{"get":{"operationId":"deploys_index","tags":["Deploys"],"summary":"List a source's last 100 deploys, newest first","security":[{"bearerAuth":["deploys:read"]}],"x-abilities":["deploys:read"],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Deploy"}}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"deploys_store","tags":["Deploys"],"summary":"Record a deploy or rollback (from CI) for the dashboard's timeline","security":[{"bearerAuth":["deploys:write"]}],"x-abilities":["deploys:write"],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Repeats of a request with the same key within 24 hours return the first answer instead of doing it again.","schema":{"type":"string","maxLength":128}}],"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Deploy"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed (`error.details` names the fields), or the Idempotency-Key was reused for a different request.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"409":{"description":"A request with this Idempotency-Key is still being processed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeployInput"}}}}}},"\/api\/v1\/sources\/{source}\/deploys\/{deploy}":{"get":{"operationId":"deploys_show","tags":["Deploys"],"summary":"Get a deploy with its check (pending until about 15 minutes after the deploy; poll it from CI)","security":[{"bearerAuth":["deploys:read"]}],"x-abilities":["deploys:read"],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"integer"}},{"name":"deploy","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Deploy"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/v1\/sources\/{source}\/issues":{"get":{"operationId":"sources_issues","tags":["Issues"],"summary":"List a source's issues","security":[{"bearerAuth":["issues:read"]}],"x-abilities":["issues:read"],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/IssuePage"}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/v1\/sources\/{source}\/issues\/{issue}":{"get":{"operationId":"sources_issues_show","tags":["Issues"],"summary":"Get one issue with its latest message, the stack trace of its latest occurrence and its recent occurrences (those three need logs:read too; empty without it)","security":[{"bearerAuth":["issues:read"]}],"x-abilities":["issues:read"],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"integer"}},{"name":"issue","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/IssueDetail"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/v1\/sources\/{source}\/issues\/{issue}\/ignore":{"post":{"operationId":"sources_issues_ignore","tags":["Issues"],"summary":"Ignore an issue (issues:write): forever, for a day, or until it happens this many more times","security":[{"bearerAuth":["issues:write"]}],"x-abilities":["issues:write"],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"integer"}},{"name":"issue","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Repeats of a request with the same key within 24 hours return the first answer instead of doing it again.","schema":{"type":"string","maxLength":128}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/IssueSummary"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed (`error.details` names the fields), or the Idempotency-Key was reused for a different request.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"409":{"description":"A request with this Idempotency-Key is still being processed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/IssueIgnoreInput"}}}}}},"\/api\/v1\/sources\/{source}\/issues\/{issue}\/reopen":{"post":{"operationId":"sources_issues_reopen","tags":["Issues"],"summary":"Reopen a resolved or ignored issue (issues:write)","security":[{"bearerAuth":["issues:write"]}],"x-abilities":["issues:write"],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"integer"}},{"name":"issue","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Repeats of a request with the same key within 24 hours return the first answer instead of doing it again.","schema":{"type":"string","maxLength":128}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/IssueSummary"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed (`error.details` names the fields), or the Idempotency-Key was reused for a different request.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"409":{"description":"A request with this Idempotency-Key is still being processed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/v1\/sources\/{source}\/issues\/{issue}\/resolve":{"post":{"operationId":"sources_issues_resolve","tags":["Issues"],"summary":"Resolve an issue (issues:write). A later occurrence reopens it as a regression","security":[{"bearerAuth":["issues:write"]}],"x-abilities":["issues:write"],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"integer"}},{"name":"issue","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Repeats of a request with the same key within 24 hours return the first answer instead of doing it again.","schema":{"type":"string","maxLength":128}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/IssueSummary"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed (`error.details` names the fields), or the Idempotency-Key was reused for a different request.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"409":{"description":"A request with this Idempotency-Key is still being processed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/v1\/sources\/{source}\/log-levels":{"get":{"operationId":"log_levels_index","tags":["Log levels"],"summary":"List a source's log level overrides from the last day","security":[{"bearerAuth":["sources:read"]}],"x-abilities":["sources:read"],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/LogLevelOverride"}}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"log_levels_store","tags":["Log levels"],"summary":"Send lines down to a level for a user, host, path, field or everything, for a while; the Tailcove clients pick it up within 30 seconds","security":[{"bearerAuth":["sources:write"]}],"x-abilities":["sources:write"],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Repeats of a request with the same key within 24 hours return the first answer instead of doing it again.","schema":{"type":"string","maxLength":128}}],"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/LogLevelOverride"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed (`error.details` names the fields), or the Idempotency-Key was reused for a different request.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"409":{"description":"A request with this Idempotency-Key is still being processed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/LogLevelOverrideInput"}}}}}},"\/api\/v1\/sources\/{source}\/log-levels\/{logLevelOverride}":{"delete":{"operationId":"log_levels_destroy","tags":["Log levels"],"summary":"Stop a log level override before it ends","security":[{"bearerAuth":["sources:write"]}],"x-abilities":["sources:write"],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"integer"}},{"name":"logLevelOverride","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"204":{"description":"Done. No body."},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/v1\/sources\/{source}\/logs":{"get":{"operationId":"sources_logs","tags":["Logs"],"summary":"Search a source's logs","security":[{"bearerAuth":["logs:read"]}],"x-abilities":["logs:read"],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"integer"}},{"name":"q","in":"query","required":false,"description":"Query","schema":{"type":"string"}},{"name":"from","in":"query","required":false,"description":"ISO 8601 start","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"ISO 8601 end","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1 to 500","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"From the previous page","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/LogPage"}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/v1\/sources\/{source}\/rotate-token":{"post":{"operationId":"sources_rotate_token","tags":["Sources"],"summary":"Rotate the ingest token. The new token is in this answer only","security":[{"bearerAuth":["sources:write"]}],"x-abilities":["sources:write"],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"integer"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Repeats of a request with the same key within 24 hours return the first answer instead of doing it again.","schema":{"type":"string","maxLength":128}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/SourceWithToken"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed (`error.details` names the fields), or the Idempotency-Key was reused for a different request.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"409":{"description":"A request with this Idempotency-Key is still being processed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/v1\/sources\/{source}\/sourcemaps":{"post":{"operationId":"sourcemaps_store","tags":["Source maps"],"summary":"Upload the source map of a minified JavaScript file (from CI), so browser stack traces show the original code; a new upload for the same path and release replaces the old map","security":[{"bearerAuth":["sourcemaps:write"]}],"x-abilities":["sourcemaps:write"],"parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/SourceMap"}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"413":{"description":"The upload is larger than the endpoint takes.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed (`error.details` names the fields), or the Idempotency-Key was reused for a different request.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}},"requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/SourceMapUpload"}}}}}},"\/api\/v1\/status-page":{"get":{"operationId":"status_page_show","tags":["Status page"],"summary":"Get the team's status page (the first one, or the one named by status_page)","security":[{"bearerAuth":["status-pages:read"]}],"x-abilities":["status-pages:read"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/StatusPage"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/api\/v1\/status-page\/announcements":{"get":{"operationId":"status_page_announcements_index","tags":["Status page"],"summary":"List announcements","security":[{"bearerAuth":["status-pages:read"]}],"x-abilities":["status-pages:read"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Announcement"}}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"status_page_announcements_store","tags":["Status page"],"summary":"Post an announcement (public; may email subscribers)","security":[{"bearerAuth":["status-pages:write"]}],"x-abilities":["status-pages:write"],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Repeats of a request with the same key within 24 hours return the first answer instead of doing it again.","schema":{"type":"string","maxLength":128}}],"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Announcement"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed (`error.details` names the fields), or the Idempotency-Key was reused for a different request.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"409":{"description":"A request with this Idempotency-Key is still being processed.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AnnouncementInput"}}}}}},"\/api\/v1\/status-page\/announcements\/{announcement}":{"put":{"operationId":"status_page_announcements_update","tags":["Status page"],"summary":"Add an update to an announcement","security":[{"bearerAuth":["status-pages:write"]}],"x-abilities":["status-pages:write"],"parameters":[{"name":"announcement","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Announcement"}},"required":["data"]}}}},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"422":{"description":"Validation failed (`error.details` names the fields), or the Idempotency-Key was reused for a different request.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AnnouncementUpdateInput"}}}}},"delete":{"operationId":"status_page_announcements_destroy","tags":["Status page"],"summary":"Delete an announcement","security":[{"bearerAuth":["status-pages:write"]}],"x-abilities":["status-pages:write"],"parameters":[{"name":"announcement","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"204":{"description":"Done. No body."},"401":{"description":"Missing, invalid or revoked token, or its owner has left the team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"403":{"description":"The token lacks the ability, or the plan or role does not allow this.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"404":{"description":"Not found, or not in the token's team.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"429":{"description":"Over the token's rate limit.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"A personal access token."}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"required":["code","message"]}},"required":["error"]},"Source":{"type":"object","properties":{"id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"},"name":{"type":"string"},"platform":{"type":"string","nullable":true},"environment":{"type":"string","enum":["production","staging","development"],"nullable":true},"repository":{"type":"string","nullable":true,"description":"owner\/name of the repository its code links open, in lower case."},"retentionDays":{"type":"integer"},"clientGroupId":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3","nullable":true},"lastIngestedAt":{"type":"string","format":"date-time","nullable":true},"deployCheck":{"type":"string","enum":["regressions","always","off"],"description":"Who hears about a deploy's check: regressions (default), always, or off (no check)."},"previewCompareSourceId":{"type":"string","description":"The source its preview deploys are compared with; null for itself.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3","nullable":true},"temporary":{"type":"boolean","description":"A temporary source of tailcove dev, deleted at expiresAt."},"expiresAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"}},"required":["id","name"]},"DevSourceInput":{"type":"object","properties":{"device_name":{"type":"string","maxLength":64,"description":"The machine, usually its hostname."},"project":{"type":"string","maxLength":64,"description":"The project, usually the folder's name."}},"required":["device_name","project"]},"DevSource":{"type":"object","properties":{"id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"},"name":{"type":"string"},"ingest_token":{"type":"string","description":"New on every call; the previous one stops working."},"ingest_url":{"type":"string"},"tail_url":{"type":"string","description":"The source's Live tail page."},"expires_at":{"type":"string","format":"date-time"}},"required":["id","name","ingest_token","ingest_url","tail_url","expires_at"]},"SourceWithToken":{"allOf":[{"$ref":"#\/components\/schemas\/Source"},{"type":"object","properties":{"ingestToken":{"type":"string","description":"Shown once."}},"required":["ingestToken"]}]},"SourceInput":{"type":"object","properties":{"name":{"type":"string"},"platform":{"type":"string","nullable":true},"environment":{"type":"string","enum":["production","staging","development"],"nullable":true},"retention_days":{"type":"integer","nullable":true},"client_group_id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3","nullable":true},"deploy_check":{"type":"string","enum":["regressions","always","off"],"description":"Who hears about a deploy's check: regressions (default), always, or off (no check)."},"preview_compare_source_id":{"type":"string","description":"Another source of the team to compare preview deploys with; null for the source itself.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3","nullable":true}},"required":["name"]},"Monitor":{"type":"object","properties":{"id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"},"name":{"type":"string"},"type":{"type":"string","enum":["http","tcp","icmp","heartbeat","dns","ssl","domain"]},"url":{"type":"string","nullable":true},"host":{"type":"string","nullable":true},"port":{"type":"integer","nullable":true},"method":{"type":"string"},"expectedStatus":{"type":"integer"},"intervalSeconds":{"type":"integer"},"regions":{"type":"array","items":{"type":"string"}},"requestHeaders":{"type":"array","description":"Names only; values are never returned.","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}}}},"state":{"type":"string","enum":["pending","up","down"]},"isActive":{"type":"boolean"},"channels":{"type":"object","description":"Where it notifies: mail, slack, discord, webhook, github, teams, telegram, pagerduty, opsgenie. Secrets are never returned."},"lastCheckedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"}},"required":["id","name","type"]},"MonitorInput":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string","enum":["http","tcp","icmp","heartbeat","dns","ssl","domain"]},"url":{"type":"string"},"host":{"type":"string"},"port":{"type":"integer"},"method":{"type":"string"},"expected_status":{"type":"integer"},"keyword":{"type":"string","nullable":true},"interval_seconds":{"type":"integer"},"timeout_ms":{"type":"integer"},"regions":{"type":"array","items":{"type":"string"}},"min_regions_down":{"type":"integer"},"request_headers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}},"required":["name"]}},"request_body":{"type":"string","nullable":true},"dns_record_type":{"type":"string"},"dns_expected":{"type":"string"},"warn_days":{"type":"integer"},"grace_seconds":{"type":"integer"},"max_run_seconds":{"type":"integer","nullable":true},"is_active":{"type":"boolean"},"create_incident":{"type":"boolean"},"escalation_policy_id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3","nullable":true},"channels":{"type":"object","description":"Where it notifies: mail, slack, discord, webhook, github, teams, telegram, pagerduty, opsgenie. Secrets are never returned."}},"required":["name"]},"Alert":{"type":"object","properties":{"id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"},"sourceId":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"},"name":{"type":"string"},"type":{"type":"string"},"query":{"type":"string","nullable":true},"thresholdCount":{"type":"integer"},"windowMinutes":{"type":"integer"},"cooldownMinutes":{"type":"integer"},"isActive":{"type":"boolean"},"channels":{"type":"object","description":"Where it notifies: mail, slack, discord, webhook, github, teams, telegram, pagerduty, opsgenie. Secrets are never returned."},"createIncident":{"type":"boolean"},"escalationPolicyId":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3","nullable":true},"createdAt":{"type":"string","format":"date-time"}},"required":["id","name"]},"AlertInput":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"query":{"type":"string","nullable":true},"threshold_count":{"type":"integer"},"window_minutes":{"type":"integer"},"cooldown_minutes":{"type":"integer"},"metric_name":{"type":"string","nullable":true},"metric_aggregate":{"type":"string","nullable":true},"metric_operator":{"type":"string","nullable":true},"metric_threshold":{"type":"number","nullable":true},"is_active":{"type":"boolean"},"create_incident":{"type":"boolean"},"escalation_policy_id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3","nullable":true},"channels":{"type":"object","description":"Where it notifies: mail, slack, discord, webhook, github, teams, telegram, pagerduty, opsgenie. Secrets are never returned."}},"required":["name"]},"Incident":{"type":"object","properties":{"id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"},"title":{"type":"string"},"severity":{"type":"string"},"status":{"type":"string","enum":["triggered","acknowledged","resolved"]},"startedAt":{"type":"string","format":"date-time"},"acknowledgedAt":{"type":"string","format":"date-time","nullable":true},"resolvedAt":{"type":"string","format":"date-time","nullable":true},"cause":{"type":"string","nullable":true},"escalationPolicyId":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3","nullable":true}},"required":["id","title","status"]},"IncidentWithEvents":{"allOf":[{"$ref":"#\/components\/schemas\/Incident"},{"type":"object","properties":{"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"},"type":{"type":"string"},"actor":{"type":"string","nullable":true},"body":{"type":"string","nullable":true},"at":{"type":"string","format":"date-time"}}}}}}]},"IncidentInput":{"type":"object","properties":{"title":{"type":"string"},"severity":{"type":"string"},"escalation_policy_id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3","nullable":true}},"required":["title","severity"]},"CommentInput":{"type":"object","properties":{"body":{"type":"string"}},"required":["body"]},"StatusPage":{"type":"object","properties":{"id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"},"title":{"type":"string"},"slug":{"type":"string"},"isPublic":{"type":"boolean"},"isPrivate":{"type":"boolean"},"monitorIds":{"type":"array","items":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"}}},"required":["id","title"]},"Announcement":{"type":"object","properties":{"id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"},"kind":{"type":"string","enum":["incident","maintenance"]},"title":{"type":"string"},"status":{"type":"string"},"impact":{"type":"string"},"scheduledFor":{"type":"string","format":"date-time","nullable":true},"scheduledUntil":{"type":"string","format":"date-time","nullable":true},"startedAt":{"type":"string","format":"date-time"},"resolvedAt":{"type":"string","format":"date-time","nullable":true},"monitorIds":{"type":"array","items":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"}},"updates":{"type":"array","items":{"type":"object","properties":{"status":{"type":"string"},"body":{"type":"string"},"at":{"type":"string","format":"date-time"}}}}},"required":["id","title"]},"AnnouncementInput":{"type":"object","properties":{"kind":{"type":"string","enum":["incident","maintenance"]},"title":{"type":"string"},"status":{"type":"string"},"impact":{"type":"string"},"body":{"type":"string"},"monitor_ids":{"type":"array","items":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"}},"scheduled_for":{"type":"string","nullable":true},"scheduled_until":{"type":"string","nullable":true},"notify":{"type":"boolean"}},"required":["kind","title","status","body"]},"AnnouncementUpdateInput":{"type":"object","properties":{"status":{"type":"string"},"impact":{"type":"string"},"body":{"type":"string"},"notify":{"type":"boolean"}},"required":["status","body"]},"Schedule":{"type":"object","properties":{"id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"},"name":{"type":"string"},"timeZone":{"type":"string"}},"required":["id","name"]},"OnCallNow":{"type":"object","properties":{"id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"},"name":{"type":"string"},"people":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"},"name":{"type":"string"}}}}},"required":["id","name","people"]},"Policy":{"type":"object","properties":{"id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"},"name":{"type":"string"},"steps":{"type":"integer"},"repeatCount":{"type":"integer"}},"required":["id","name"]},"Override":{"type":"object","properties":{"id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"},"scheduleId":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"},"userId":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"},"user":{"type":"string","nullable":true},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"}},"required":["id","userId"]},"Deploy":{"type":"object","properties":{"id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"},"sourceId":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"},"kind":{"type":"string","enum":["deploy","rollback"]},"version":{"type":"string"},"description":{"type":"string","nullable":true},"environment":{"type":"string","nullable":true},"commitSha":{"type":"string","nullable":true},"pullRequest":{"type":"integer","nullable":true},"branch":{"type":"string","nullable":true},"deployedAt":{"type":"string","format":"date-time"},"check":{"$ref":"#\/components\/schemas\/DeployCheck"}},"required":["id","sourceId","kind","version","deployedAt","check"]},"DeployCheck":{"type":"object","properties":{"kind":{"type":"string","enum":["release","preview"],"description":"preview for a deploy with a pull request or a preview environment (preview, review, pr, pr-482): checked against a week of the comparison source, with no error-rate rule; release otherwise."},"status":{"type":"string","enum":["pending","healthy","regressed","no_data","skipped"],"description":"pending until the check has run; regressed when errors got worse or something new broke; no_data when there was nothing to compare; skipped when not checked."},"checked_at":{"type":"string","format":"date-time","nullable":true},"summary":{"type":"object","properties":{"errors_before_per_minute":{"type":"number"},"errors_after_per_minute":{"type":"number"},"new_patterns":{"type":"integer"},"new_issues":{"type":"integer"}},"required":["errors_before_per_minute","errors_after_per_minute","new_patterns","new_issues"],"nullable":true},"url":{"type":"string","format":"uri","description":"The check's report page."}},"required":["kind","status","checked_at","summary","url"]},"LogLevelOverride":{"type":"object","properties":{"id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"},"sourceId":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"},"level":{"type":"string","enum":["debug","info","notice","warning","error"]},"match":{"type":"object","properties":{"type":{"type":"string","enum":["all","user","host","path","field"]},"field":{"type":"string"},"value":{"type":"string"}},"required":["type"]},"reason":{"type":"string","nullable":true},"active":{"type":"boolean"},"expiresAt":{"type":"string","format":"date-time"},"endedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string","nullable":true}},"required":["id","sourceId","level","match","active","expiresAt","createdAt"]},"LogLevelOverrideInput":{"type":"object","properties":{"level":{"type":"string","enum":["debug","info","notice","warning","error"]},"type":{"type":"string","enum":["all","user","host","path","field"]},"field":{"type":"string","description":"The context field, for type field."},"value":{"type":"string","maxLength":255,"description":"The user id, host, path prefix or field value; not for type all."},"minutes":{"type":"integer","enum":[5,15,30,60,120,240]},"reason":{"type":"string","maxLength":200}},"required":["level","type","minutes"]},"DeployInput":{"type":"object","properties":{"version":{"type":"string"},"kind":{"type":"string","enum":["deploy","rollback"]},"description":{"type":"string"},"environment":{"type":"string"},"commit_sha":{"type":"string"},"pull_request":{"type":"integer","minimum":1,"description":"The pull request a preview was built from; makes the deploy a preview."},"branch":{"type":"string","maxLength":255},"deployed_at":{"type":"string","format":"date-time","description":"Within the last 24 hours; now when left out."}},"required":["version"]},"OverrideInput":{"type":"object","properties":{"user_id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"},"starts_at":{"type":"string"},"ends_at":{"type":"string"}},"required":["user_id","starts_at","ends_at"]},"SourceMapUpload":{"type":"object","properties":{"url":{"type":"string","description":"The public URL of the minified file the map belongs to, or its path: https:\/\/app.example.com\/assets\/app-3f9a1c.js or \/assets\/app-3f9a1c.js."},"file":{"type":"string","format":"binary","description":"The .map file: a source map v3 (JSON with \"version\": 3, \"mappings\" and \"sources\"), at most 25 MB."},"release":{"type":"string","nullable":true,"description":"Optional. A map uploaded for the event's release is preferred; content-hashed file names need none."}},"required":["url","file"]},"SourceMap":{"type":"object","properties":{"id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"smap_01jbx5q8k7m3n2p4r6s8t0v1w3"},"url_path":{"type":"string"},"release":{"type":"string","nullable":true},"size":{"type":"integer","description":"Bytes."},"created_at":{"type":"string","format":"date-time"}},"required":["id","url_path","size","created_at"]},"LogPage":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"}},"nextCursor":{"type":"string","nullable":true}}},"CorrelationPage":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"}},"meta":{"type":"object","properties":{"truncated":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"window":{"type":"string"},"sources":{"type":"array","items":{"type":"object"}},"spans":{"type":"array","items":{"type":"object"}}}}}},"CodeHotspotPage":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","description":"Repository-relative, made with the source's code link path prefixes."},"line":{"type":"integer","nullable":true},"occurrences":{"type":"integer","description":"Occurrences of its issues in the window, from the logs still kept."},"last_seen":{"type":"string","format":"date-time"},"commit":{"type":"string","nullable":true,"description":"The commit of the deploy that was live at last_seen, when a deploy with a commit was recorded: the line numbers are that commit's."},"issues":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"iss_01jbx5qa3v7n9p2r4s6t8v0w1x"},"title":{"type":"string"},"occurrences":{"type":"integer"},"last_seen":{"type":"string","format":"date-time"},"url":{"type":"string","format":"uri","description":"The issue's page."}},"required":["id","title","occurrences","last_seen","url"]}}},"required":["path","line","occurrences","last_seen","issues"]}},"meta":{"type":"object","properties":{"source_id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"},"days":{"type":"integer"},"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"truncated":{"type":"boolean","description":"More issues or lines than one answer holds (2,000 issues, 500 lines): the busiest are kept."},"unmatched":{"type":"object","properties":{"count":{"type":"integer","description":"Issues raised in your own code whose path no prefix or root placed."},"examples":{"type":"array","items":{"type":"string"},"description":"Up to 3 of those paths as the client sent them."}},"required":["count","examples"]},"code_links_url":{"type":"string","format":"uri","description":"Where the source's path prefixes are set."}},"required":["source_id","days","from","to","truncated"]}},"required":["data","meta"]},"CanaryComparison":{"type":"object","properties":{"data":{"type":"object","properties":{"verdict":{"type":"string","enum":["ok","worse","not_enough_data"],"description":"worse when the canary logged an error pattern the baseline did not (3 error lines or more), or its error share is above both 1.5x the baseline's and the baseline's plus one point with 5 error lines or more; not_enough_data when the baseline (or, with no new pattern, the canary) has under 50 lines; ok otherwise."},"reason":{"type":"string","description":"The verdict in words."},"window":{"type":"object","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"}},"required":["from","to"]},"baseline":{"type":"object","properties":{"lines":{"type":"integer"},"errors":{"type":"integer","description":"Lines at error, critical, alert or emergency."},"errors_per_minute":{"type":"number"},"error_share":{"type":"number","description":"errors \/ lines, a fraction from 0 to 1."}},"required":["lines","errors","errors_per_minute","error_share"]},"canary":{"type":"object","properties":{"lines":{"type":"integer"},"errors":{"type":"integer","description":"Lines at error, critical, alert or emergency."},"errors_per_minute":{"type":"number"},"error_share":{"type":"number","description":"errors \/ lines, a fraction from 0 to 1."}},"required":["lines","errors","errors_per_minute","error_share"]},"new_patterns":{"type":"array","description":"Error patterns of the canary with no line on the baseline, busiest first, at most 10.","items":{"type":"object","properties":{"id":{"type":"string","description":"The pattern id, as text."},"count":{"type":"integer"},"example":{"type":"string"}},"required":["id","count","example"]}}},"required":["verdict","reason","window","baseline","canary","new_patterns"]},"meta":{"type":"object","properties":{"source_id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"},"minutes":{"type":"integer"},"baseline":{"type":"string"},"canary":{"type":"string"},"new_pattern_count":{"type":"integer"},"rule":{"type":"object","description":"The thresholds the verdict used."}},"required":["source_id","minutes"]}},"required":["data","meta"]},"IssueSummary":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"iss_01jbx5qa3v7n9p2r4s6t8v0w1x"},"source_id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"src_01jbx5q8k7m3n2p4r6s8t0v1w3"},"title":{"type":"string"},"status":{"type":"string","enum":["open","resolved","ignored"]},"occurrences_count":{"type":"integer"},"first_seen":{"type":"string","format":"date-time"},"last_seen":{"type":"string","format":"date-time"},"url":{"type":"string","format":"uri"},"culprit":{"type":"object","properties":{"file":{"type":"string"},"line":{"type":"integer","nullable":true}},"nullable":true,"description":"Where it was raised, as the client sent it."},"can_write":{"type":"boolean","description":"Whether this token may resolve, ignore and reopen it."}},"required":["id","title","status","url","can_write"]}}},"IssueDetail":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","description":"An opaque id: a prefix for what it is and a ULID. Treat it as a string.","example":"iss_01jbx5qa3v7n9p2r4s6t8v0w1x"},"title":{"type":"string"},"status":{"type":"string"},"url":{"type":"string","format":"uri"},"can_write":{"type":"boolean"},"latest":{"type":"object","properties":{"ts":{"type":"string"},"level":{"type":"string"},"message":{"type":"string"},"host":{"type":"string"}},"nullable":true},"stack":{"type":"array","items":{"type":"object","properties":{"function":{"type":"string","nullable":true},"path":{"type":"string","nullable":true,"description":"Repository-relative when the code link rules placed the frame."},"file":{"type":"string","nullable":true},"line":{"type":"integer","nullable":true},"column":{"type":"integer","nullable":true},"in_app":{"type":"boolean"}}}},"recent":{"type":"array","items":{"type":"object","properties":{"ts":{"type":"string"},"level":{"type":"string"},"message":{"type":"string"},"host":{"type":"string"}}}}},"required":["id","title","status","url","stack","recent"]}}},"IssueIgnoreInput":{"type":"object","properties":{"mode":{"type":"string","enum":["forever","day","events"],"description":"forever when left out."},"events":{"type":"integer","minimum":1,"maximum":100000,"description":"For mode events: how many more occurrences before it opens again."}}},"Realtime":{"type":"object","properties":{"data":{"type":"object","properties":{"enabled":{"type":"boolean"},"key":{"type":"string","nullable":true},"host":{"type":"string","nullable":true},"port":{"type":"integer","nullable":true},"scheme":{"type":"string","nullable":true,"enum":["https","http"]}},"required":["enabled"]}}},"RealtimeAuth":{"type":"object","properties":{"auth":{"type":"string","description":"key:signature, for pusher:subscribe."}},"required":["auth"]},"IssuePage":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"}},"nextCursor":{"type":"string","nullable":true}}}}}}