{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/taskfuel-ai/json-schema/taskfuel-ai-call-result-schema.json",
  "title": "CallResult",
  "description": "A paid call whose response is still stored. The body itself is not here: fetch it with GET /v1/calls/{request_id}.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/taskfuel-ai-openapi.yml#/components/schemas/CallResult",
  "type": "object",
  "required": [
    "request_id",
    "method",
    "endpoint",
    "domain",
    "status",
    "content_type",
    "body_bytes",
    "charged_usd",
    "settlement",
    "called_at",
    "expires_at"
  ],
  "properties": {
    "request_id": {
      "type": "string"
    },
    "method": {
      "type": "string"
    },
    "endpoint": {
      "type": "string"
    },
    "domain": {
      "type": "string"
    },
    "status": {
      "type": "integer"
    },
    "content_type": {
      "type": "string"
    },
    "body_bytes": {
      "type": "integer"
    },
    "charged_usd": {
      "type": "number",
      "format": "double"
    },
    "settlement": {
      "type": [
        "string",
        "null"
      ],
      "description": "The settlement reference this call was debited against, `x402:<tx>`, `mpp:<reference>` or `l402:<payment_hash>`."
    },
    "called_at": {
      "type": "string",
      "format": "date-time"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "additionalProperties": false
}