{"openapi":"3.1.0","info":{"title":"LLM Status API","version":"1.0.0","summary":"AI model lifecycle data: deprecation and retirement dates, replacements, and your model inventory.","description":"LLM Status tracks release, deprecation and retirement (shutdown) dates and the recommended replacement for AI models across providers.\n\n**Registry endpoints (`/api/v1/registry/*`) and the feeds need no API key.** Start with `GET /api/v1/registry/models?id=<model-id>` to answer \"is this model deprecated, and when does it shut down?\".\n\n**Account endpoints** (projects, usages, alert rules, CI runs) take `Authorization: Bearer mm_live_...`. Create a key in the web app under API Keys, or with `mm login`. All account data is scoped to the key's account.\n\nLists are wrapped as `{\"data\": [...]}`. Errors are `{\"error\": {\"code\", \"message\", \"details\"}}`. Dates are ISO `YYYY-MM-DD`; a `null` date means the provider has not published one.\n\nPlain-language overview for AI agents: https://llmstatus.ai/llms.txt","contact":{"name":"LLM Status","email":"hi@llmstatus.ai","url":"https://llmstatus.ai"},"termsOfService":"https://llmstatus.ai/terms"},"externalDocs":{"description":"Docs","url":"https://docs.llmstatus.ai"},"servers":[{"url":"https://llmstatus.ai","description":"Production"}],"security":[{"ApiKey":[]}],"tags":[{"name":"Registry","description":"The global model lifecycle registry. Public, no key."},{"name":"Feeds","description":"Lifecycle changes as JSON Feed, RSS and Atom. Public, no key."},{"name":"Account","description":"The account behind the API key."},{"name":"Projects","description":"Projects group usages."},{"name":"Usages","description":"A usage is one model, in one place, in one environment."},{"name":"Alerts","description":"Alert rules, the alert feed, and delivery channels."},{"name":"CI","description":"CI run history."},{"name":"Integrations","description":"Live scan sources."},{"name":"API keys","description":"Manage API keys."}],"paths":{"/api/v1/registry/models":{"get":{"security":[],"operationId":"listModels","tags":["Registry"],"summary":"Look up models: status, shutdown date, replacement","description":"Filters combine with AND. With no filter the whole registry is returned, which is large; prefer `id`, `q`, `provider` or `status`.","parameters":[{"name":"id","in":"query","required":false,"description":"Exact lookup by API id, registry slug or alias, for example `gpt-4o` or `claude-3-opus-20240229`. Comma-separated or repeated, up to 100. An id that several hosts relist resolves to the original provider's model. Unknown ids are simply absent from the result.","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false},{"name":"q","in":"query","required":false,"description":"Case-insensitive substring match on display name and API id.","schema":{"type":"string"}},{"name":"provider","in":"query","required":false,"description":"Provider slug, for example `openai`, `anthropic`, `google`.","schema":{"type":"string"}},{"name":"provider_id","in":"query","required":false,"description":"Provider UUID (from `/api/v1/registry/providers`).","schema":{"type":"string","format":"uuid"}},{"name":"status","in":"query","required":false,"description":"Only models in this lifecycle status.","schema":{"type":"string","enum":["ok","deprecating","retiring","retired","withdrawn"]}},{"name":"expiring_before","in":"query","required":false,"description":"Only models whose `retires_date` is on or before this date.","schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Model"}}}}}}}}}},"/api/v1/registry/resolve":{"post":{"security":[],"operationId":"resolveModelStrings","tags":["Registry"],"summary":"Map strings found in code to registry models","description":"Returns one result per input, in order. For lifecycle fields in the same call use `GET /api/v1/registry/models?id=...` instead.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["strings"],"properties":{"strings":{"type":"array","items":{"type":"string"},"examples":[["gpt-4o","claude-3-opus-20240229"]]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ResolveResult"}}}}}}},"422":{"description":"`strings` is missing or not an array.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/registry/providers":{"get":{"security":[],"operationId":"listProviders","tags":["Registry"],"summary":"List providers","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Provider"}}}}}}}}}},"/api/v1/registry/families":{"get":{"security":[],"operationId":"listFamilies","tags":["Registry"],"summary":"List model families per provider","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Family"}}}}}}}}}},"/api/v1/registry/events":{"get":{"security":[],"operationId":"listEvents","tags":["Registry"],"summary":"Registry change log, newest first","description":"Up to 200 events. For a reader-friendly stream of the same changes use `/feed.json`.","parameters":[{"name":"event_type","in":"query","required":false,"description":"Only events of this type.","schema":{"type":"string","enum":["model_announced","model_preview","model_ga","model_deprecated","model_retired","replacement_set","price_changed","new_provider","new_model","successor_available","model_withdrawn","model_restored","correction"]}},{"name":"provider_id","in":"query","required":false,"description":"Provider UUID.","schema":{"type":"string","format":"uuid"}},{"name":"model_id","in":"query","required":false,"description":"Model UUID.","schema":{"type":"string","format":"uuid"}},{"name":"since","in":"query","required":false,"description":"Only events published at or after this timestamp.","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Event"}}}}}}}}}},"/api/v1/registry/detection-patterns":{"get":{"security":[],"operationId":"getDetectionPatterns","tags":["Registry"],"summary":"What the scanner looks for","description":"SDK import signatures, environment variable names, generic model-id regexes, and every known model string.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectionPatterns"}}}}}}},"/feed.json":{"get":{"security":[],"operationId":"getJsonFeed","tags":["Feeds"],"summary":"Lifecycle changes as JSON Feed 1.1","description":"Each item is one change (new model, deprecation, retirement, withdrawal). Machine-readable fields are under the `_llmstatus` extension.","parameters":[{"name":"provider","in":"query","required":false,"description":"Provider slug, for example `openai`.","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"Comma-separated event types. One or more of: model_deprecated, model_retired, model_withdrawn, new_model.","schema":{"type":"string"}},{"name":"severity","in":"query","required":false,"description":"Only items of this severity.","schema":{"type":"string","enum":["info","warning","critical"]}},{"name":"since","in":"query","required":false,"description":"Only items published on or after this ISO date.","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"JSON Feed 1.1","content":{"application/feed+json":{"schema":{"$ref":"#/components/schemas/JsonFeed"}}}}}}},"/feed.xml":{"get":{"security":[],"operationId":"getRssFeed","tags":["Feeds"],"summary":"Lifecycle changes as RSS 2.0","parameters":[{"name":"provider","in":"query","required":false,"description":"Provider slug, for example `openai`.","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"Comma-separated event types. One or more of: model_deprecated, model_retired, model_withdrawn, new_model.","schema":{"type":"string"}},{"name":"severity","in":"query","required":false,"description":"Only items of this severity.","schema":{"type":"string","enum":["info","warning","critical"]}},{"name":"since","in":"query","required":false,"description":"Only items published on or after this ISO date.","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"RSS 2.0","content":{"application/rss+xml":{"schema":{"type":"string"}}}}}}},"/feed.atom":{"get":{"security":[],"operationId":"getAtomFeed","tags":["Feeds"],"summary":"Lifecycle changes as Atom 1.0","parameters":[{"name":"provider","in":"query","required":false,"description":"Provider slug, for example `openai`.","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"Comma-separated event types. One or more of: model_deprecated, model_retired, model_withdrawn, new_model.","schema":{"type":"string"}},{"name":"severity","in":"query","required":false,"description":"Only items of this severity.","schema":{"type":"string","enum":["info","warning","critical"]}},{"name":"since","in":"query","required":false,"description":"Only items published on or after this ISO date.","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Atom 1.0","content":{"application/atom+xml":{"schema":{"type":"string"}}}}}}},"/api/v1/me":{"get":{"operationId":"getAccount","tags":["Account"],"summary":"The account, plan and settings behind this key","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateAccount","tags":["Account"],"summary":"Update account settings","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"notification_email":{"type":["string","null"],"description":"Where alerts are sent. `null` falls back to the login email.","format":"email"},"account_name":{"type":"string"},"default_timezone":{"type":"string","description":"IANA zone, for example `America/New_York`."},"retiring_window_days":{"type":"integer","minimum":1,"maximum":365,"description":"A usage counts as `retiring` when its model shuts down within this many days."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}}},"400":{"description":"A field failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/projects":{"get":{"operationId":"listProjects","tags":["Projects"],"summary":"List projects","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Project"}}}}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createProject","tags":["Projects"],"summary":"Create a project","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Plan limit reached (`plan_limit`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"`name` is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/projects/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"operationId":"getProject","tags":["Projects"],"summary":"Get a project","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateProject","tags":["Projects"],"summary":"Rename or describe a project","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"archiveProject","tags":["Projects"],"summary":"Archive a project","responses":{"204":{"description":"Archived."},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/usages":{"get":{"operationId":"listUsages","tags":["Usages"],"summary":"List usages","parameters":[{"name":"project_id","in":"query","required":false,"description":"Only this project.","schema":{"type":"string","format":"uuid"}},{"name":"environment","in":"query","required":false,"description":"Only this environment.","schema":{"type":"string","enum":["prod","staging","dev","unknown","other"]}},{"name":"health","in":"query","required":false,"description":"Comma-separated health values, for example `retiring,retired`.","schema":{"type":"string"}},{"name":"model_id","in":"query","required":false,"description":"Only usages of this registry model.","schema":{"type":"string","format":"uuid"}},{"name":"link_status","in":"query","required":false,"description":"Only usages with this link status.","schema":{"type":"string","enum":["linked","custom","unlinked"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Usage"}}}}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createUsage","tags":["Usages"],"summary":"Record one usage","description":"Give `model_id` for a registry model, or `custom_model_name` for one the registry doesn't know.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["project_id"],"properties":{"project_id":{"type":"string","format":"uuid"},"model_id":{"type":"string","description":"Registry model UUID.","format":"uuid"},"custom_model_name":{"type":"string"},"custom_provider_name":{"type":"string"},"environment":{"type":"string","enum":["prod","staging","dev","unknown","other"]},"location_label":{"type":"string","description":"Where the model is used, for example `api/chat.ts:42` or `Support bot`."},"internal_review_at":{"type":["string","null"],"format":"date","description":"Your own review-by date."},"is_critical":{"type":"boolean"},"notes":{"type":"string"},"source_repo":{"type":"string"},"source_path":{"type":"string"},"source_line":{"type":"integer"},"discovered_by":{"type":"string","enum":["manual","cli"]}}}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Usage"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"`project_id` and one of `model_id` / `custom_model_name` are required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"clearUsages","tags":["Usages"],"summary":"Delete usages in bulk","description":"**Destructive.** Needs the `write` scope. With no parameter, deletes every usage in the account. `project_id` limits it to one project. `all=true` also deletes projects, alert rules and the alert feed.","parameters":[{"name":"project_id","in":"query","required":false,"description":"Only delete usages in this project.","schema":{"type":"string","format":"uuid"}},{"name":"all","in":"query","required":false,"description":"`true` for a full account reset.","schema":{"type":"string","enum":["true"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"cleared":{"type":"string","enum":["usages","all"]},"usages":{"type":"integer"},"projects":{"type":"integer"}}}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/usages/bulk":{"post":{"operationId":"bulkUpsertUsages","tags":["Usages"],"summary":"Upsert many usages (what `mm scan` calls)","description":"Each item is matched to an existing usage by project, model, environment and location; matches are updated, the rest created. `prune_ids` removes CLI-discovered usages that are no longer in the code.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"project_id":{"type":"string","description":"Default project for items that don't set their own.","format":"uuid"},"usages":{"type":"array","items":{"type":"object","properties":{"project_id":{"type":"string","format":"uuid"},"model_id":{"type":"string","format":"uuid"},"custom_model_name":{"type":"string"},"environment":{"type":"string","enum":["prod","staging","dev","unknown","other"]},"location_label":{"type":"string"},"source_repo":{"type":"string"},"source_path":{"type":"string"},"source_line":{"type":"integer"},"is_critical":{"type":"boolean"}}}},"prune_ids":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Usage ids to remove. Only CLI-discovered usages are removed."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"type":"integer"},"updated":{"type":"integer"},"moved":{"type":"integer"},"pruned":{"type":"integer"},"pruned_ids":{"type":"array","items":{"type":"string"}},"failed":{"type":"integer"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Usage"}}}}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"`usages` is empty and there is nothing to prune.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/usages/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"operationId":"getUsage","tags":["Usages"],"summary":"Get a usage","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Usage"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"updateUsage","tags":["Usages"],"summary":"Update a usage","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"environment":{"type":"string","enum":["prod","staging","dev","unknown","other"]},"location_label":{"type":"string","description":"Where the model is used, for example `api/chat.ts:42` or `Support bot`."},"internal_review_at":{"type":["string","null"],"format":"date","description":"Your own review-by date."},"is_critical":{"type":"boolean"},"notes":{"type":"string"},"project_id":{"type":"string","description":"Move to another project.","format":"uuid"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Usage"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteUsage","tags":["Usages"],"summary":"Delete a usage","responses":{"204":{"description":"Deleted."},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/usages/{id}/link":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"post":{"operationId":"linkUsage","tags":["Usages"],"summary":"Link a custom usage to a registry model","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model_id"],"properties":{"model_id":{"type":"string","format":"uuid"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Usage"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Usage or model not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"`model_id` is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/notification-rules":{"get":{"operationId":"listNotificationRules","tags":["Alerts"],"summary":"List alert rules","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/NotificationRule"}}}}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createNotificationRule","tags":["Alerts"],"summary":"Create an alert rule","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRuleInput"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRule"}}}},"400":{"description":"A field failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/notification-rules/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"patch":{"operationId":"updateNotificationRule","tags":["Alerts"],"summary":"Update an alert rule","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRuleInput"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"}}}}}},"400":{"description":"A field failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteNotificationRule","tags":["Alerts"],"summary":"Delete an alert rule","responses":{"204":{"description":"Deleted."},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/notifications":{"get":{"operationId":"listNotifications","tags":["Alerts"],"summary":"The alert feed, newest first (up to 200)","parameters":[{"name":"unread","in":"query","required":false,"description":"`true` for unread only.","schema":{"type":"string","enum":["true"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Notification"}}}}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/notifications/{id}/read":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"post":{"operationId":"markNotificationRead","tags":["Alerts"],"summary":"Mark an alert read","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ok"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/channels":{"get":{"operationId":"listChannels","tags":["Alerts"],"summary":"List delivery channels","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Channel"}}}}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"connectChannel","tags":["Alerts"],"summary":"Connect a channel, or send a test to one","description":"Pro. `action: \"test\"` sends one test message to `value` and stores nothing.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["kind","value"],"properties":{"action":{"type":"string","enum":["connect","test"],"default":"connect"},"kind":{"type":"string","enum":["slack","discord","teams","webhook","sms"]},"value":{"type":"string","description":"Webhook URL, or a phone number for `sms`."},"label":{"type":"string"}}}}}},"responses":{"200":{"description":"Test sent.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"providerMessageId":{"type":["string","null"]}}}}}},"201":{"description":"Connected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Channel"}}}},"400":{"description":"`kind` or `value` is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Channels need a Pro plan (`upgrade_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/channels/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"delete":{"operationId":"deleteChannel","tags":["Alerts"],"summary":"Remove a channel","responses":{"204":{"description":"Removed."},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/ci/runs":{"get":{"operationId":"listCiRuns","tags":["CI"],"summary":"List CI runs, newest first (up to 200)","parameters":[{"name":"project_id","in":"query","required":false,"description":"Only this project.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CiRun"}}}}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"recordCiRun","tags":["CI"],"summary":"Record a CI run (what `mm ci --report` calls)","description":"Pro.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["commit_sha","repo","fail_on","failing_count"],"properties":{"project_id":{"type":"string","format":"uuid"},"commit_sha":{"type":"string"},"branch":{"type":"string"},"ref":{"type":"string"},"repo":{"type":"string","description":"`owner/name`."},"counts":{"$ref":"#/components/schemas/CiCounts"},"fail_on":{"type":"string","enum":["retired","retiring","deprecating","none"]},"failing_count":{"type":"integer"},"findings":{"type":"array","items":{"type":"object"},"description":"Up to 1000 findings are kept."}}}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CiRun"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Recording CI runs needs a Pro plan (`upgrade_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"A required field is missing or invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/ci/runs/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"operationId":"getCiRun","tags":["CI"],"summary":"Get a CI run","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CiRun"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteCiRun","tags":["CI"],"summary":"Delete a CI run","responses":{"204":{"description":"Deleted."},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/integrations":{"get":{"operationId":"listIntegrations","tags":["Integrations"],"summary":"List live scan sources","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Integration"}}}}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"upsertIntegration","tags":["Integrations"],"summary":"Enable, disable or configure a live scan source","description":"One row per `source_id`; repeated calls update it. Enabling needs a Pro plan. `config` holds non-secret scope hints only; a key that looks like a credential is rejected.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationInput"}}}},"responses":{"200":{"description":"Updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integration"}}}},"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integration"}}}},"400":{"description":"A field failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Live integrations need a Pro plan (`upgrade_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"patchIntegration","tags":["Integrations"],"summary":"Same as POST","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationInput"}}}},"responses":{"200":{"description":"Updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integration"}}}},"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integration"}}}},"400":{"description":"A field failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Live integrations need a Pro plan (`upgrade_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/integrations/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"delete":{"operationId":"deleteIntegration","tags":["Integrations"],"summary":"Remove a live scan source","responses":{"204":{"description":"Removed."},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/api-keys":{"get":{"operationId":"listApiKeys","tags":["API keys"],"summary":"List API keys (never the secret)","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ApiKey"}}}}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createApiKey","tags":["API keys"],"summary":"Create an API key","description":"The full `secret` is in this response only. It cannot be read again.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","enum":["scan","read","write"]},"default":["scan","read","write"]}}}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"prefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"secret":{"type":"string","description":"`mm_live_...`. Shown once."},"created_at":{"type":"string","format":"date-time"}}}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/api-keys/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"delete":{"operationId":"revokeApiKey","tags":["API keys"],"summary":"Revoke an API key","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ok"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The key lacks the scope this operation needs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"ApiKey":{"type":"http","scheme":"bearer","description":"An LLM Status API key: `Authorization: Bearer mm_live_...`. Not needed for Registry or Feeds operations."}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"For example `unauthorized`, `forbidden`, `not_found`, `validation_error`, `invalid_request`, `plan_limit`, `upgrade_required`."},"message":{"type":"string"},"details":{}}}}},"Ok":{"type":"object","properties":{"ok":{"type":"boolean"}}},"Model":{"type":"object","required":["id","slug","canonical_id","display_name","status"],"properties":{"id":{"type":"string","format":"uuid"},"provider_id":{"type":"string","format":"uuid"},"provider_slug":{"type":["string","null"],"description":"For example `openai`."},"slug":{"type":"string","description":"Registry slug, `<namespace>/<name>`."},"canonical_id":{"type":"string","description":"The id you pass to the provider's API, including a dated snapshot suffix when there is one."},"family":{"type":["string","null"]},"family_key":{"type":["string","null"]},"display_name":{"type":"string"},"status":{"type":"string","enum":["ok","deprecating","retiring","retired","withdrawn"],"description":"`ok`; `deprecating` (marked deprecated or legacy, shutdown date may not be announced); `retiring` (shutdown date announced and still ahead); `retired` (shut down, calls fail); `withdrawn` (pulled by the provider outside a planned retirement)."},"release_date":{"type":["string","null"],"format":"date","description":"When the model was released."},"deprecation_date":{"type":["string","null"],"format":"date","description":"When the provider marked it deprecated."},"retires_date":{"type":["string","null"],"format":"date","description":"Shutdown date. `null` when the provider has not announced one."},"replacement_model_id":{"type":["string","null"],"format":"uuid"},"replacement_display":{"type":["string","null"],"description":"Display name of the recommended replacement."},"replacement_canonical_id":{"type":["string","null"],"description":"API id of the recommended replacement: what to change the code to."},"replacement_url":{"type":["string","null"],"description":"The replacement's page.","format":"uri"},"modality":{"type":["string","null"],"description":"For example `text`, `text+image`."},"context_window":{"type":["integer","null"]},"max_output_tokens":{"type":["integer","null"]},"price_input_per_m":{"type":["number","null"],"description":"List price, USD per million input tokens."},"price_output_per_m":{"type":["number","null"],"description":"List price, USD per million output tokens."},"price_cache_read_per_m":{"type":["number","null"]},"price_cache_write_per_m":{"type":["number","null"]},"aliases":{"type":"array","items":{"type":"string"},"description":"Other strings that resolve to this model."},"matched":{"type":"array","items":{"type":"string"},"description":"Only on an `id` lookup: the `id` values that resolved to this model. An id can match through an alias, so `canonical_id` may differ from what you asked for."},"url":{"type":["string","null"],"description":"The model's page on llmstatus.ai.","format":"uri"},"source_url":{"type":["string","null"],"description":"Where the lifecycle data came from.","format":"uri"}}},"Provider":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"name":{"type":"string"},"mono":{"type":["string","null"],"description":"Two-letter badge."},"tint":{"type":["string","null"],"description":"Brand colour, hex."},"country":{"type":["string","null"]}}},"Family":{"type":"object","properties":{"provider_slug":{"type":"string"},"provider_name":{"type":"string"},"family_key":{"type":"string"},"label":{"type":"string"},"models":{"type":"integer","description":"Number of models in the family."},"latest":{"type":["object","null"],"properties":{"slug":{"type":"string"},"display":{"type":"string"},"release_date":{"type":["string","null"],"format":"date","description":"Release date of the newest member."}}}}},"Event":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"event_type":{"type":"string","enum":["model_announced","model_preview","model_ga","model_deprecated","model_retired","replacement_set","price_changed","new_provider","new_model","successor_available","model_withdrawn","model_restored","correction"]},"provider_id":{"type":["string","null"],"format":"uuid"},"model_id":{"type":["string","null"],"format":"uuid"},"effective_date":{"type":["string","null"],"format":"date","description":"When the change takes effect, for example the shutdown date."},"published_at":{"type":"string","format":"date-time"},"severity":{"type":"string","enum":["info","warning","critical"]},"payload":{"type":"object","description":"Event-specific detail, such as the source URL.","additionalProperties":true}}},"ResolveResult":{"type":"object","properties":{"input":{"type":"string"},"model_id":{"type":["string","null"],"format":"uuid"},"display":{"type":["string","null"]},"match_confidence":{"type":"number","enum":[0,0.6,1],"description":"`1` exact, `0.6` partial, `0` no match."}}},"DetectionPatterns":{"type":"object","properties":{"version":{"type":"integer"},"env_vars":{"type":"array","items":{"type":"string"}},"sdk_signatures":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string"},"patterns":{"type":"array","items":{"type":"string"}}}}},"generic_model_regexes":{"type":"array","items":{}},"model_strings":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"JsonFeed":{"type":"object","description":"JSON Feed 1.1 (https://jsonfeed.org/version/1.1).","properties":{"version":{"type":"string"},"title":{"type":"string"},"home_page_url":{"type":"string"},"feed_url":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"title":{"type":"string"},"content_text":{"type":"string"},"date_published":{"type":"string","format":"date-time"},"tags":{"type":"array","items":{"type":"string"}},"_llmstatus":{"type":"object","properties":{"event_type":{"type":"string"},"provider":{"type":"string","description":"Provider slug."},"model":{"type":"string","description":"Registry slug."},"canonical_id":{"type":"string","description":"Provider API id."},"effective_date":{"type":["string","null"],"format":"date","description":"Shutdown date for a deprecation or retirement; release date for a new model."},"severity":{"type":"string","enum":["info","warning","critical"]},"replacement":{"type":["object","null"],"properties":{"model":{"type":"string"},"url":{"type":"string"}}}}}}}}}},"Me":{"type":"object","properties":{"account":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"plan":{"type":"string","description":"`free` or `pro`."},"plan_status":{"type":["string","null"]},"retiring_window_days":{"type":"integer"},"default_timezone":{"type":"string"}}},"user":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string"},"notification_email":{"type":"string"}}},"scopes":{"type":"array","items":{"type":"string"}}}},"Project":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":["string","null"]}}},"Usage":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"project_id":{"type":"string","format":"uuid"},"model_id":{"type":["string","null"],"format":"uuid"},"custom_model_name":{"type":["string","null"]},"custom_provider_name":{"type":["string","null"]},"link_status":{"type":"string","enum":["linked","custom","unlinked"]},"suggested_model_id":{"type":["string","null"],"format":"uuid"},"environment":{"type":"string","enum":["prod","staging","dev","unknown","other"]},"location_label":{"type":["string","null"]},"internal_review_at":{"type":["string","null"],"format":"date","description":"Your own review-by date."},"is_critical":{"type":"boolean"},"notes":{"type":["string","null"]},"health":{"type":"string","enum":["ok","deprecating","retiring","retired","withdrawn","custom"],"description":"The model's status from this account's point of view. `retiring` means it shuts down within the account's retiring window. `custom` means not linked to a registry model."},"model_display":{"type":["string","null"]},"canonical_id":{"type":["string","null"]},"retires_date":{"type":["string","null"],"format":"date","description":"Shutdown date of the linked model."},"source_repo":{"type":["string","null"]},"source_path":{"type":["string","null"]},"source_line":{"type":["integer","null"]},"discovered_by":{"type":"string","enum":["manual","cli"]},"created_at":{"type":"string","format":"date-time"}}},"NotificationRule":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":["string","null"]},"enabled":{"type":"boolean"},"scope":{"type":"string","enum":["mine","providers","all"]},"providers":{"type":"array","items":{"type":"string"}},"families":{"type":"array","items":{"type":"string"}},"events":{"type":"array","items":{"type":"string"}},"leadTimes":{"type":"array","items":{"type":"integer"}},"channels":{"type":"array","items":{"type":"string"}},"delivery":{"type":"string","enum":["immediate","daily","weekly"]},"minSeverity":{"type":"string","enum":["info","warning","critical"]},"notificationEmail":{"type":["string","null"]},"webhookUrl":{"type":["string","null"]}}},"NotificationRuleInput":{"type":"object","description":"Request fields are snake_case; the stored rule is returned with the camelCase names in `NotificationRule`.","properties":{"name":{"type":["string","null"]},"enabled":{"type":"boolean","default":true},"scope":{"type":"string","enum":["mine","providers","all"],"default":"mine","description":"`mine`: models you use. `providers`: everything from `provider_ids`. `all`: the whole registry."},"provider_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"family_keys":{"type":"array","items":{"type":"string"},"description":"From `/api/v1/registry/families`."},"events":{"type":"array","items":{"type":"string"},"description":"Event types to alert on."},"lead_times":{"type":"array","items":{"type":"integer"},"description":"Days before shutdown to remind, for example `[90, 30, 7, 1]`."},"channels":{"type":"array","items":{"type":"string"},"default":["inapp"]},"delivery":{"type":"string","enum":["immediate","daily","weekly"],"default":"immediate"},"min_severity":{"type":"string","enum":["info","warning","critical"],"default":"info"},"notification_email":{"type":["string","null"],"description":"Send this rule's email here instead of the account email.","format":"email"},"webhook_url":{"type":["string","null"],"format":"uri"}}},"Notification":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"unread":{"type":"boolean"},"severity":{"type":"string"},"title":{"type":"string"},"body":{"type":["string","null"]},"affects":{"type":"array","items":{"type":"string"},"description":"Usage ids this alert is about."},"channel":{"type":"string"},"status":{"type":"string","enum":["pending","sent","failed","suppressed","read"]},"when":{"type":"string","format":"date-time"}}},"Channel":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["slack","discord","teams","webhook","sms"]},"value":{"type":"string"},"label":{"type":["string","null"]},"verified_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"}}},"CiCounts":{"type":"object","properties":{"ok":{"type":"integer"},"deprecating":{"type":"integer"},"retiring":{"type":"integer"},"retired":{"type":"integer"}}},"CiRun":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"project_id":{"type":["string","null"],"format":"uuid"},"commit_sha":{"type":"string"},"branch":{"type":"string"},"ref":{"type":"string"},"repo":{"type":"string"},"counts":{"$ref":"#/components/schemas/CiCounts"},"fail_on":{"type":"string","enum":["retired","retiring","deprecating","none"]},"failing_count":{"type":"integer"},"findings":{"type":["array","null"],"items":{"type":"object"}},"created_at":{"type":"string","format":"date-time"}}},"Integration":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"source_id":{"type":"string","enum":["aws-lambda","vercel","supabase-edge","github-actions"]},"enabled":{"type":"boolean"},"env_tag":{"type":"string","enum":["prod","staging","dev","unknown"]},"mode":{"type":["string","null"]},"config":{"type":["object","null"],"additionalProperties":{"type":"string"}},"status":{"type":"string","enum":["connected","unauthorized","error","unknown"]},"last_synced_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"IntegrationInput":{"type":"object","required":["source_id"],"properties":{"action":{"type":"string","enum":["enable","disable","set"],"default":"set"},"source_id":{"type":"string","enum":["aws-lambda","vercel","supabase-edge","github-actions"]},"env_tag":{"type":"string","enum":["prod","staging","dev","unknown"]},"config":{"type":["object","null"],"additionalProperties":{"type":"string"},"description":"Non-secret scope hints: region, team, repo, project ref."},"status":{"type":"string","enum":["connected","unauthorized","error","unknown"]}}},"ApiKey":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"prefix":{"type":"string"},"last_four":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"last_used_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"},"revoked":{"type":"boolean"}}}}}}