# Delx Commerce HMAC-SHA256 Hex Digest API

> Delx Commerce HMAC-SHA256 Hex Digest API is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Computes an HMAC-SHA256 hex digest of an input text using a provided secret key, payable per-call via USDC.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/hmac-sha256-hex?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-hmac-sha256-hex-digest-api-60c68b89
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Cr5aZ_o3mbBdophc88aJt

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 delx-commerce-hmac-sha256-hex-digest-api-60c68b89 -d '<json body>'
```

Example prompt: Compute an HMAC-SHA256 hex digest for the message 'order:12345:confirmed' using the secret key 'mysecretkey42'.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call HMAC-SHA256 computation without managing infrastructure or signing up for an account, especially in agentic or automated workflows that already use x402/USDC micropayments on Base or Solana. It is ideal for one-off or low-volume cryptographic signing tasks within agent pipelines.

## Known failure modes

- Missing 'text' or 'secret' fields returns an error
- Empty string inputs may produce valid but trivially weak digests
- Payment failure via x402 (insufficient USDC balance) blocks the request
- Network timeout results in no digest returned
- Invalid JSON body returns a parsing error

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object containing the hex-encoded HMAC-SHA256 digest of the input text, along with the algorithm name ('hmac-sha256') and schema version string ('delx/util-hmac-sha256-hex/v1').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Input field: text."
  },
  "secret": {
   "type": "string",
   "description": "Input field: secret."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hex": "5d98b45c90a207fa998ce639fea6f02ecc8cc3f36fef81d694fb856b4d0a28ca",
  "schema": "delx/util-hmac-sha256-hex/v1",
  "algorithm": "hmac-sha256"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-hmac-sha256-hex-digest-api-60c68b89/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
