{
  "format": "delx/intent-card/v1",
  "id": "basename-api",
  "intent": "Basename for an agent workflow",
  "title": "Basename API for agents",
  "description": "Extract basename from a URL or path-like string — first-party local utility for agent preflight and proven micro-utils expansion. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, no web search, no live RPC, and no mediagen. Results are advisory; the caller owns authorization, budgets, and production controls. Sibling of Delx routes that already converted externally (random, hash, URL, FX families).",
  "keywords": [
    "Basename API",
    "Basename for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-07",
  "canonical_url": "https://commerce.delx.ai/intents/basename-api",
  "machine_url": "https://commerce.delx.ai/intents/basename-api.json",
  "recommendation": {
    "tool_name": "util_basename",
    "service_name": "Delx Basename",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/basename",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "path": {
          "description": "Input field: path.",
          "type": "string"
        }
      },
      "required": [
        "path"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "path": "/api/v1/x402/hash"
    },
    "example_output": {
      "schema": "delx/util-basename/v1",
      "basename": "hash",
      "empty": false
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/basename -m POST -H 'x-delx-source: intent-card-basename-api' --max-amount 0.001 -b '{\"path\":\"/api/v1/x402/hash\"}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-basename-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/basename"
  }
}
