Docs and examples

Compile specs into agent-ready contracts.

Use `/v1/compile` for tool contracts, risk labels, workflow packaging guidance, and launch checklists. Use `/v1/score` for readiness checks. Send the API key in `x-alinafe-key`.

curl
curl -s https://alinafe.net/v1/compile \
  -H "content-type: application/json" \
  -H "x-alinafe-key: $ALINAFE_API_KEY" \
  -d @openapi.json

Authentication

Pass your key as `x-alinafe-key`. Missing, inactive, or over-limit keys return structured JSON errors.

Agent experience output

`agentExperience` returns risk counts, packaging mode, suggested toolsets, launch checklist, and sellable readiness assets.

OpenAPI endpoint

Fetch this API's own schema from /v1/openapi for client generation or inspection.

Errors, retries, and request IDs
# Every response includes x-request-id.
# Error responses use application/problem+json and mirror
# the stable code in x-alinafe-error-code and error.code.

curl -i https://alinafe.net/v1/compile \
  -H "x-request-id: my-trace-2026-0001" \
  -H "content-type: application/json" \
  -d '{}'

# Paid checkout creation supports safe retries.
curl -s https://alinafe.net/v1/checkout \
  -H "content-type: application/json" \
  -H "Idempotency-Key: checkout-dev-example-001" \
  -d '{"email":"dev@example.com","plan":"pro"}'
Launch-readiness fields
{
  "agentExperience": {
    "riskBreakdown": {
      "read": 14,
      "write": 8,
      "sensitive_write": 2,
      "destructive": 1
    },
    "packaging": {
      "mode": "workflow-scoped-toolsets",
      "suggestedToolsets": [
        { "name": "billing", "toolCount": 12, "publishAs": "direct agent toolset" }
      ]
    },
    "launchChecklist": [
      "Declare auth scopes and approval rules before exposing write-capable tools.",
      "Gate destructive operations behind explicit human confirmation."
    ]
  }
}