Connect with x402 through AWS Marketplace

Use the HERE Location Reasoning x402 endpoint if you want your AI agent to pay for each tool call per request, without a HERE platform account, sign-up, or API key. The endpoint uses the x402 payment protocol. Your agent can discover the endpoint, receive the price in the payment requirement, and pay for it through a payment provider such as AgentCore payments in Amazon Bedrock AgentCore, which settles charges on your AWS bill.

📘

Choose the right path

Endpoint

The x402 integration uses its own MCP endpoint:

https://hlr.here.ai/x402/mcp

This endpoint differs from the standard https://hlr.here.ai/mcp endpoint. It does not use HERE OAuth: you do not need a HERE platform account, an application, or access credentials. The endpoint uses the x402 payment flow described below.

Payment and request handling

The MCP protocol does not define payment or billing for individual request types. HERE Location Reasoning uses the x402 protocol for payment, and AWS provides the payment method and provider through AgentCore payments. Pricing is part of the payload as the endpoint returns the price in each payment requirement, so your agent does not need to look it up elsewhere. Payment methods and account eligibility might vary by account and region. For more details, see the Amazon Bedrock AgentCore payments documentation.

If you call a tool without the required payment, the endpoint returns HTTP 402 Payment Required with a payment-required header. The header contains a Base64-encoded x402 payment requirement with the price quote. An x402-capable client reads the requirement, completes the payment through its configured provider, and repeats the request with proof of payment. Each payment is accepted only once.

The endpoint rejects JSON-RPC batch requests with HTTP 400. Send one request at a time.

Set up your agent

Your agent needs an x402 client that can answer a 402 response. On AWS, use Amazon Bedrock AgentCore payments:

  1. Set up the AWS Marketplace payment connector in AgentCore payments, and configure spending limits before your agent transacts.
  2. Add https://hlr.here.ai/x402/mcp as the MCP server URL in your agent.
  3. Call tools/list to discover the available tools. Your agent pays the price quoted in each payment requirement.

For details, see:

Next steps


Did this page help you?