API reference
AI Security, Governance and Trust Infrastructure. Explore the public HTTP interfaces for integrations and partner front ends.
Reference generated from source. Live API execution is disabled.
341 documented operations · Contract fingerprint: 9fd3ec23f7857759d307436c83f3dc3bb080e3fbb800917cb0ba42e49da0e41a
Start here
Read-only reference
This page never asks for or stores an API key, sends API calls, or loads a third-party API console. Run the examples from your own development environment. Use a dedicated test tenant and test data: development is not a promise of an isolated sandbox.
Choose the correct region
Use the region where your tenant was provisioned. US: https://app.cyberarmor.ai. Singapore: https://am-app.cyberarmor.ai. Development: https://dev-app.cyberarmor.ai. Keys and tenants are not automatically shared between regions. Custom partner domains must be configured by your deployment operator.
Authenticate from your backend
Obtain an authorized, tenant-scoped integration key from your CyberArmor.AI administrator. Send it over HTTPS in the x-api-key header. Never put it in a URL, public JavaScript bundle, analytics, support screenshot or source repository. Keep a partner front end behind your own backend, which stores the key and checks the signed-in user's tenant and permissions. A tenant_id in a path or body must agree with the credential's tenant; it never grants access by itself.
Portal sessions are a different contract
The /api/customer/ endpoints use the customer's authenticated portal session, not an API key. State-changing requests also echo the ca_customer_csrf cookie as x-csrf-token. The ca_customer_session cookie is HttpOnly and should be handled by the browser. Never forge x-customer-* identity headers: the gateway sets them after authentication. Ask for a supported integration endpoint when a partner backend needs functionality currently available only through portal sessions.
Understand the result
Check the HTTP status before reading the body. Typical statuses are 400 for an invalid request, 401 for missing or invalid credentials, 403 for denied role, tenant or lifecycle access, 409 for a conflict, 422 for declared-schema validation, 429 for rate limiting, and 502/503/504 for an unavailable upstream. Not every route emits every status. A successful HTTP status alone is not a security verdict: read the route's decision fields. For approval gates, proceed only on an explicit cleared: true; timeout, malformed data and any other result do not authorize a change.
Keep your integration current
The build imports the FastAPI apps without starting services and exports only paths exposed by ingress. Each docs image rebuild regenerates the reference and both PDFs from the same schema. The fingerprint identifies the contract used for this publication. A PDF is a snapshot; compare its fingerprint with the current website. Schemas document declared model constraints; handlers with generic JSON remain visibly marked. This catalog covers the public control-plane, customer portal, policy gates and EDL. Internal service APIs and the separate mutual-TLS payment ingress are outside this catalog.
Localize a partner application
Download the OpenAPI JSON to generate clients or inspect types with compatible OpenAPI 3.1 tools. Keep HTTP paths, JSON field names, enum values and operation identifiers unchanged; translate only your own display text. Enforce tenant authorization on your backend for every request. English and Simplified Chinese share one machine contract. Additional documentation languages can be added later.
First request: read the public transport key
curl --fail-with-body --silent --show-error \ https://am-app.cyberarmor.ai/pki/public-key
This discovery request needs no API credential. It is not proof that authenticated API access is working. For an authenticated call, use the exact method, path, parameters and credential type shown for that endpoint.
Try an authenticated URL check from your own machine
Install httpx in your own development environment. This Python example prompts for a tenant ID and API key; the key is not echoed, placed in a URL or saved. Use synthetic data and your tenant's region. It submits a real request that may be logged and billed under your tenant. Redirects are disabled so credentials are not forwarded to a different host. Read the returned decision before deciding whether to fetch the URL.
from getpass import getpass
import httpx
tenant_id = input("Tenant ID: ").strip()
api_key = getpass("API key: ")
with httpx.Client(follow_redirects=False, timeout=75) as client:
response = client.post(
"https://am-app.cyberarmor.ai/proxy-svc/trust-gate/evaluate",
headers={"x-api-key": api_key},
json={"tenant_id": tenant_id, "url": "https://example.com/",
"source": "partner-backend", "depth": "fast"},
)
print(response.status_code)
response.raise_for_status()
print(response.json())
Endpoints
No endpoints match your search.
Unable to load endpoints. Download the OpenAPI JSON or PDF.