UCII API Reference

Universal Cryptographic Identity Infrastructure API.

UCII provides cryptographic identity primitives secured by post-quantum cryptography and protected through x402 economic authorization.

Base URL: https://api.ucii.sportgen-ai.com. All /v1/ paths below are also reachable at https://ucii.sportgen-ai.com/v1/. The root paths (/, /metadata, /health, /pricing, /docs, /openapi.json) live on the API host only.

---

Discovery Endpoints

Root Service Discovery

Endpoint: GET /

Returns:

  • service identity
  • version information
  • cryptographic capabilities
  • supported identity classes
  • ecosystem discovery links
  • ---

    Machine Metadata

    Endpoint: GET /metadata

    Returns machine-readable UCII capability metadata.

    Includes:

  • identity model
  • supported identity classes
  • PQC algorithms
  • x402 economic layer
  • service capabilities
  • ---

    Health and Pricing

    Endpoint: GET /health — service health.

    Endpoint: GET /pricing — service pricing summary.

    ---

    x402 Discovery

    Endpoint: GET /v1/x402/info

    Returns:

  • x402 service metadata
  • supported operations
  • pricing requirements
  • settlement network
  • Endpoint: GET /v1/x402/pricing — per-operation x402 prices.

    Endpoint: GET /v1/x402/settlements — settlement records.

    ---

    Check Signing Key

    Endpoint: GET /v1/authorization/delegated/check-signing-key

    Returns the public key the server uses to sign authorization check responses, so clients can verify every verdict.

    ---

    OpenAPI Schema

    Endpoint: GET /openapi.json

    Interactive documentation: GET /docs (Swagger UI).

    ---

    Authorization (Delegated)

    The core of UCII: every agent action is checked against a human-issued grant before it runs.

    Delegated Check

    Endpoint: POST /v1/authorization/delegated/check

    Checks one operation against an identity's active grant and returns a signed verdict. The check is free (not x402-priced) and never executes anything — it only answers allowed or denied. Requests are ML-DSA-65 signed; responses are signed with the check-signing key above. A stale, unparseable, or replayed request is rejected.

    ---

    Delegated Grant

    Endpoint: POST /v1/authorization/delegated/grant

    Creates a grant for an identity. Operator path only: grants go through the protected lifecycle daemon. One active grant per identity; granting replaces any existing grant.

    ---

    Delegated Revoke

    Endpoint: POST /v1/authorization/delegated/{authority_id}/revoke

    Revokes a grant. The kill is instant: the very next check after revocation is denied.

    ---

    Direct Check and Execute

    Endpoint: POST /v1/authorization/check

    Endpoint: POST /v1/authorization/execute

    Direct (non-delegated) check and execute paths. The delegated flow above is the documented path.

    ---

    Customer Self-Serve

    These endpoints serve the customer panel. They authenticate with the human-held control secret; the authority ID alone is view-only.

    List Authorities

    Endpoint: GET /v1/authorization/delegated/authorities

    ---

    Authority Status

    Endpoint: GET /v1/authorization/delegated/{authority_id}

    Returns the grant's status and exact allowed operations. Status responses carry no last-seen field.

    ---

    Customer Revoke (Kill Switch)

    Endpoint: POST /v1/authorization/delegated/{authority_id}/customer-revoke

    Instantly revokes the grant. Revocation history is preserved as audit rows.

    ---

    Replace Grant

    Endpoint: POST /v1/authorization/delegated/{authority_id}/replace

    Replaces the grant with a new set of operations. The old grant is revoked first and the new grant gets a new authority ID. An empty operation list is rejected (revoking everything is the kill, not an empty grant), and destructive is never grantable — it stays hall-pass-only. If the new grant fails after the old one is revoked, the customer is grantless until the operator re-grants.

    ---

    Hall Pass

    Endpoint: POST /v1/authorization/delegated/{authority_id}/hall-pass/request — request a one-time destructive grant.

    Endpoint: POST /v1/authorization/delegated/{authority_id}/hall-pass/activate — activate an approved pass with its one-time key.

    Endpoint: GET /v1/authorization/delegated/hall-pass/pending — list pending passes (operator).

    Endpoint: POST /v1/authorization/delegated/hall-pass/{request_id}/approve — approve (operator, requires the operator secret).

    Endpoint: POST /v1/authorization/delegated/hall-pass/{request_id}/deny — deny (operator).

    Hall passes are free. A pass covers one exact command in a 2-hour window, is never standing, and checks do not consume it. Revoking an authority invalidates its live passes.

    ---

    Identity Operations

    Create Identity

    Identity creation is x402-gated (0.5 USDC). The controller authority is returned once at creation — keep it; it is not shown again. Supported identity classes:

  • HUMAN
  • AI_AGENT
  • ROBOT
  • DEVICE
  • SERVICE
  • ORGANIZATION
  • ---

    Get Identity

    Endpoint: GET /v1/identity/{identity_id}

    ---

    Guardian Recovery

    UCII recovery is fixed 2-of-3 across the owner's devices: exactly 3 guardians, threshold always 2, with a fixed 24-hour delay. Recovery returns the same identity on fresh keys; the old keys are revoked at completion.

    Endpoint: POST /v1/identity/guardians — register a guardian set (owner-signed).

    Endpoint: POST /v1/identity/recover — open a recovery attempt (2 guardian attestations required).

    Endpoint: POST /v1/identity/recover/complete — complete an attempt after the 24-hour delay. This is an explicit trigger; there is no background job.

    Endpoint: POST /v1/identity/recover/object — object to an attempt. Unauthenticated by design: the owner's hard backstop during the delay is the kill switch.

    Endpoint: GET /v1/identity/{identity_id}/recovery — recovery attempts and unacknowledged notifications.

    ---

    Credential Operations

    Register Credential

    Endpoint: POST /v1/credentials/register

    Registers a cryptographic credential. Requires the X-UCII-Controller-Authority header. This endpoint is x402-priced (0.75 USDC).

    ---

    Get Credential

    Endpoint: GET /v1/credentials/{fingerprint}

    Looks a credential up by its full SHA-256 fingerprint.

    ---

    Verify Credential

    Endpoint: POST /v1/credentials/verify

    Verifies a cryptographic credential. This endpoint is x402-priced ($0.10). A non-active credential returns verified=false without a signature check.

    ---

    Revoke Credential

    Endpoint: POST /v1/credentials/{credential_id}/revoke

    Revokes a credential. This endpoint is x402-priced (0.25 USDC).

    ---

    Recover Credential

    Endpoint: POST /v1/credentials/{credential_id}/recover

    Recovers a credential. This endpoint is x402-priced (0.25 USDC).

    ---

    Demo (Public)

    Endpoint: GET /v1/demo/info — demo identity details.

    Endpoint: POST /v1/demo/check — a live authorization verdict with no signup. Send {"case": "allow"} or {"case": "deny"}. The demo evaluates the grant with the real evaluator and signs the response with the real check-signing key, but skips the client-proof half — no demo secret exists anywhere, and the demo page says so plainly.

    ---

    x402 Pricing

    Pay-per-operation prices in USDC on Solana, matching the live list at GET /v1/x402/pricing. The delegated check is free. Flat-rate entitlement ($49 CAD per agent per month, or $490 per year) is the alternative for gate customers — see the buy page.

  • Identity creation: 0.5 USDC
  • Credential registration: 0.75 USDC
  • Credential verify: 0.10 USDC
  • Credential revoke: 0.25 USDC
  • Credential recover: 0.25 USDC
  • Authorization execute: 0.10 USDC
  • Session register: 0.50 USDC
  • Session login: 0.25 USDC
  • Session logout: 0.10 USDC
  • Session revoke: 0.25 USDC
  • Session refresh: 0.00 USDC
  • Delegated check: free
  • Demo endpoints: free
  • ---

    Session Endpoints

    Endpoint: POST /v1/auth/register — create a session.

    Endpoint: POST /v1/auth/login — log in.

    Endpoint: POST /v1/auth/refresh — refresh a session.

    Endpoint: GET /v1/auth/me — current session identity.

    Endpoint: GET /v1/auth/session — session details.

    Endpoint: POST /v1/auth/logout — log out.

    Endpoint: POST /v1/auth/revoke — revoke a session.

    ---

    Verification

    Endpoint: GET /v1/verification/status — verification status.

    ---

    Most UCII infrastructure operations are x402-priced. The delegated check is free, and the demo endpoints are public.