# Ailabra Agent Profit Ledger – Profit Attestation

> Ailabra Agent Profit Ledger – Profit Attestation is a paid API for AI agents from x402.ailabra.org, paid per call via x402, $0.25/call, status unknown (last checked 2026-09-15).

Submits economic events (revenue, expenses, fees, etc.) for a deterministic profit calculation and returns a cryptographically signed profit/cash-flow report for an autonomous agent.

## Facts

- Endpoint: POST https://x402.ailabra.org/api/v1/x402/profit/attest
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ailabra-agent-profit-ledger-profit-attestation-f0bf93e2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WJ04vGQ5qPexbv4-smKC-

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability ailabra-agent-profit-ledger-profit-attestation-f0bf93e2 -d '<json body>'
```

Example prompt: Record these economic events for my agent 'agent-007' under venture 'venture-xyz' — a $150.00 USDC revenue inflow from 'stripe' (receipt_verified) with external ID 'evt_001' that occurred at 2024-06-01T12:00:00Z in category 'subscription', and a $20.00 USDC fee outflow from 'openai' (system_observed) with external ID 'evt_002' — and give me back a signed profit attestation report.

## When to prefer this

Choose this endpoint when an autonomous agent needs a deterministic, cryptographically attested profit and cash-flow report — especially for compliance, auditing, or financial transparency of agent-operated ventures. Prefer this over generic bookkeeping APIs when you need Ed25519-signed, schema-versioned reports specifically designed for autonomous agent economics and x402 payment flows.

## Known failure modes

- Missing required fields (schemaVersion, externalId, occurredAt, kind, direction, amount, currency, category, source) result in a 400 validation error
- Invalid amount format (non-numeric or negative) causes schema validation failure
- Duplicate events detected via externalId + source.name combination may be rejected or deduplicated
- Unsupported currency code pattern causes rejection
- Invalid enum values for kind, direction, or source.verification return validation errors
- Payment failure or insufficient USDC balance returns 402 Payment Required
- Server-side calculation engine errors return 500 with no report

## How this service works

Deterministic profit and cash-flow infrastructure for autonomous agents.

## Output

A JSON object containing a signed profit/cash-flow report with a unique reportId, calculation engine version, schema version, and an Ed25519 digital signature attesting the deterministic profit calculation based on the submitted economic events.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "events": {
   "type": "array",
   "items": {
    "$id": "https://x402.ailabra.org/api/v1/schemas/economic-event",
    "type": "object",
    "title": "Ailabra Economic Event v1",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "required": [
     "schemaVersion",
     "externalId",
     "occurredAt",
     "kind",
     "direction",
     "amount",
     "currency",
     "category",
     "source"
    ],
    "properties": {
     "kind": {
      "enum": [
       "revenue",
       "expense",
       "refund",
       "fee",
       "transfer",
       "capital",
       "withdrawal",
       "asset_purchase",
       "asset_sale",
       "adjustment"
      ],
      "type": "string"
     },
     "amount": {
      "type": "string",
      "pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
     },
     "source": {
      "type": "object",
      "required": [
       "name",
       "type",
       "verification"
      ],
      "properties": {
       "name": {
        "type": "string",
        "maxLength": 120,
        "minLength": 1,
        "description": "Identifies the originating ledger or integration and participates in duplicate detection with externalId."
       },
       "type": {
        "type": "string"
       },
       "reference": {
        "type": "string"
       },
       "verification": {
        "enum": [
         "self_reported",
         "receipt_supplied",
         "receipt_verified",
         "onchain_verified",
         "system_observed"
        ],
        "type": "string"
       }
      },
      "additionalProperties": false
     },
     "agentId": {
      "type": "string"
     },
     "category": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1
     },
     "currency": {
      "type": "string",
      "pattern": "^[A-Z][A-Z0-9]{1,11}$"
     },
     "metadata": {
      "type": "object"
     },
     "direction": {
      "enum": [
       "inflow",
       "outflow"
      ],
      "type": "string"
     },
     "productId": {
      "type": "string"
     },
     "ventureId": {
      "type": "string"
     },
     "adjustment": {
      "type": "object",
      "required": [
       "reason",
       "profitTreatment"
      ],
      "properties": {
       "reason": {
        "type": "string"
       },
       "profitTreatment": {
        "enum": [
         "revenue",
         "cost",
         "exclude"
        ],
        "type": "string"
       }
      }
     },
     "customerId": {
      "type": "s
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "report": {
   "reportId": "rpt_example",
   "calculation": {
    "schemaVersion": "2",
    "calculationEngineVersion": "2.0.0"
   },
   "schemaVersion": "3",
   "calculationVersion": "2.0.0",
   "signatureAlgorithm": "Ed25519"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ailabra-agent-profit-ledger-profit-attestation-f0bf93e2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.ailabra.org](https://www.zero.xyz/host/x402.ailabra.org/llms.txt)
