{"openapi":"3.0.3","info":{"title":"TrustGate API","version":"1.0.0","description":"Programmatic MCP trust scans and approved tool-definition digests. Authenticate with your API key (X-API-Key header or Authorization: Bearer). Successful POST /api/scan calls made with an API key count once against your plan's monthly quota; failed calls never count. Check GET /api/v1/usage.","termsOfService":"https://trustgate.getingeniousai.com/terms","contact":{"name":"Ingenious AI","url":"https://getingeniousai.com","email":"orders@getingeniousai.com"},"license":{"name":"Ingenious AI API Terms of Service","url":"https://trustgate.getingeniousai.com/terms"}},"servers":[{"url":"https://trustgate.getingeniousai.com"}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"},"BearerAuth":{"type":"http","scheme":"bearer"}}},"paths":{"/api/v1/usage":{"get":{"summary":"This key's plan, counted usage and remaining quota for the current month (never counted)","security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"responses":{"200":{"description":"Usage for the authenticated key"},"401":{"description":"Missing, invalid or revoked API key"}}}},"/api/v1/me":{"get":{"summary":"Resolve the presented API key to its license-holder binding and plan","security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"responses":{"200":{"description":"Key identity"},"401":{"description":"Missing, invalid or revoked API key"}}}},"/api/scan":{"post":{"summary":"Scan an MCP setup (config JSON and/or server URL) and return the report. Counted product call when authenticated by API key; anonymous calls keep the public free behaviour and are not metered","security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"config_json":{"type":"string"},"config":{"type":"string"},"server_url":{"type":"string"}}}}}},"responses":{"200":{"description":"Scan report; counted against quota when key-authenticated"},"400":{"description":"Scan failed (not counted)"},"401":{"description":"A presented API key was invalid or revoked"},"429":{"description":"Monthly quota exhausted (not counted)"}}}},"/api/approved-digest":{"get":{"summary":"Current approved canonical tool-definition digest for (server, tool). Public signed read; an API key may be presented and must then be valid. Not counted","parameters":[{"name":"server","in":"query","required":true,"schema":{"type":"string"}},{"name":"tool","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Signed digest payload"},"400":{"description":"server and tool are required"},"401":{"description":"A presented API key was invalid or revoked"}}}},"/api/keys":{"post":{"summary":"Create an API key bound to your license (X-License-Key header; shown once)","responses":{"200":{"description":"Key created"},"402":{"description":"Valid Pro or Team license key required"}}},"get":{"summary":"List your license's API keys (X-License-Key header; hashes/prefixes only)","responses":{"200":{"description":"Key list"},"402":{"description":"Valid Pro or Team license key required"}}}},"/api/keys/{key_id}/revoke":{"post":{"summary":"Revoke one of your license's API keys (X-License-Key header)","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Key revoked"},"402":{"description":"Valid Pro or Team license key required"},"404":{"description":"Key not found for this license"}}}}}}