TrojAI · Authentication Profile

Trojai Authentication

Authentication

TrojAI secures its APIs with apiKey across 2 declared security schemes, as derived from its OpenAPI definitions.

CompanyAI SecurityMachine-LearningLLM SecurityRed TeamingAI FirewallPrompt InjectionModel RiskMLOpsAgentic AI
Methods: apiKey Schemes: 2 OAuth flows: API key in: header

Security Schemes

platform-api-key apiKey
· in: header (x-trojai-api-key)
firewall-proxy-client-id apiKey
· in: header (x-eag-clientid)

Source

Authentication Profile

Raw ↑
generated: '2026-07-21'
method: searched
source: https://docs.troj.ai/reference/eng-api
docs: https://docs.troj.ai/reference/eng-api
summary:
  types: [apiKey]
  api_key_in: [header]
  oauth2_flows: []
  notes: >-
    The TrojAI platform is self-hosted / single-tenant (Cloud or Enterprise),
    so the API host is per-deployment (https://<your_trojai_host>). The platform
    API and the Firewall Proxy API use two distinct header-based keys. Platform
    user identity is backed by Keycloak (upgraded to Keycloak 26 in v2.17.0);
    rotating the identity provider invalidates existing API keys, which must be
    regenerated.
schemes:
  - name: platform-api-key
    type: apiKey
    in: header
    parameter: x-trojai-api-key
    applies_to: Platform API (/api/v2 endpoints)
    description: >-
      Raw API key generated in the web application (profile menu > API Keys >
      Generate API Key). Sent verbatim in the x-trojai-api-key header, NOT
      prefixed with "Bearer". Shown only once at creation. Authenticates
      management calls (users, datasets, models, firewall configs, firewall
      events, red team jobs/results, secrets).
    source: https://docs.troj.ai/reference/eng-api
  - name: firewall-proxy-client-id
    type: apiKey
    in: header
    parameter: x-eag-clientid
    applies_to: Firewall Proxy API (TrojAI Defend)
    description: >-
      Client-ID header used by the Defend Firewall Proxy API to select which
      firewall policy applies to a proxied request. Distinct from the platform
      x-trojai-api-key.
    source: https://docs.troj.ai/trojai-defend/eng-proxy-api

Work with this as data

Every security artifact here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for security posture

4 MCP tools reach this
  • find_securityBrowse and filter every security artifact in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This security artifact
curl "https://apis.io/api/v1/security/trojai-authentication"
All security posture
curl "https://apis.io/api/v1/security?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.