Skip to main content
The endpoints field in an Agent Passport lists all HTTP endpoints where the AI system is reachable. This is required for complior eval to know where to send conformity probes, and for Art.13 (instructions for use) to document the system’s interfaces.
Why endpoints matter: EU AI Act Art.13 requires clear documentation of the AI system’s interfaces. Art.15 requires robustness testing of the actual deployed system. Without endpoints, complior eval has no target.

Automatic detection

During complior init (or complior agent init), the endpoint discovery pipeline scans 5 sources in priority order: Once a port is found, Complior also scans source files for route patterns (.get(), .post(), etc.) and builds full endpoint URLs:

Detection examples

.env
Result: http://localhost:4000 + detected routes.
Dockerfile
Result: http://localhost:3000 + detected routes.
docker-compose.yml
Result: http://localhost:8080 + detected routes.
src/server.ts
Result: http://localhost:4000/api/chat, http://localhost:4000/health.
.env takes priority over code patterns. If you have PORT=5000 in .env and { port: 3000 } in code, the passport will use port 5000.

Manual configuration

If automatic detection doesn’t find your endpoints (e.g., the port is injected at deploy time, or the AI system is behind a reverse proxy), edit the passport JSON directly:
Find the endpoints field and add your URLs:
.complior/agents/my-agent-manifest.json
After editing, re-sign the passport:
Manual endpoints are preserved across complior init runs. Use --force only if you want to regenerate from scratch.

Using endpoints with eval

Once endpoints are in the passport, complior eval can auto-resolve the target:
When --agent is specified, the eval results are saved to that passport’s compliance.eval block.

When endpoints are not detected

If no port is found from any source, the passport’s endpoints field is omitted. You’ll see this in complior agent show:
Common reasons and fixes:

Data Pipeline

How endpoints fit into the 11-stage passport data fill pipeline.

Run Eval

Test your AI system’s behavior at the detected endpoints.