# KEVAREMESH Gateway Finalize

> KEVAREMESH Gateway Finalize is a paid API for AI agents from kevaremesh-web.vercel.app, paid per call via x402, $0.0001/call, status unknown (last checked 2026-10-02).

Finalizes a previously initiated gateway request and retrieves the results of a paid AI agent capability job.

## Facts

- Endpoint: POST https://kevaremesh-web.vercel.app/api/x402/gateway/finalize?utm_source=zero.xyz
- Price: $0.0001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kevaremesh-gateway-finalize-cf149ebe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VrpaItwOmQEeuwpdArFgU

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 kevaremesh-gateway-finalize-cf149ebe -d '<json body>'
```

Example prompt: I submitted a KEVAREMESH gateway job earlier — use finalize token 'tok_abc123' and gateway request ID 'req-uuid-456' to finalize it and bring back the results.

## When to prefer this

Use this endpoint as the second step after initiating a KEVAREMESH gateway capability request — it is the designated finalization and result-retrieval endpoint for the buyer-side Capability Gateway, needed to collect job output and confirm payment settlement after a prior submission.

## Known failure modes

- Invalid or expired finalize_token returns an authentication or token error
- Unknown gateway_request_id returns a not-found error
- Payment not yet settled may return gateway_payment_settled: false with incomplete results
- Job failure indicated by job_success: false with potentially empty results array
- Network timeout if upstream capability execution is still in progress

## How this service works

Buyer-first MCP procurement gateway that discovers, compares and routes live x402 APIs without making the buyer choose a provider.

## Output

Returns an object containing the service and product name, the original gateway request ID, a boolean indicating whether the job succeeded, whether the gateway payment was settled, the gateway fee in USD, an array of result objects from the upstream capability, a timestamp, and the count of upstream executions performed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "finalize_token",
  "gateway_request_id"
 ],
 "properties": {
  "finalize_token": {
   "type": "string"
  },
  "gateway_request_id": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "service",
  "product",
  "gateway_request_id",
  "job_success",
  "gateway_payment_settled",
  "gateway_fee_usd",
  "results"
 ],
 "properties": {
  "product": {
   "type": "string"
  },
  "results": {
   "type": "array",
   "items": {
    "type": "object"
   }
  },
  "service": {
   "type": "string"
  },
  "job_success": {
   "type": "boolean"
  },
  "generated_at": {
   "type": "string"
  },
  "gateway_fee_usd": {
   "type": "number"
  },
  "gateway_request_id": {
   "type": "string",
   "format": "uuid"
  },
  "gateway_payment_settled": {
   "type": "boolean"
  },
  "upstream_execution_count": {
   "type": "integer"
  }
 },
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kevaremesh-gateway-finalize-cf149ebe/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kevaremesh-web.vercel.app](https://www.zero.xyz/host/kevaremesh-web.vercel.app/llms.txt)
