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
- To subscribe through AWS Marketplace and sign in with a HERE platform account, use the HERE Location Reasoning listing and follow Get started with HERE Location Reasoning.
- To let an x402-enabled agent pay per request, use the endpoint described on this page. You do not need to visit the listing to use it, but you can find it as the HERE Location Reasoning (Agentic) listing in AWS Marketplace.
Endpoint
The x402 integration uses its own MCP endpoint:
https://hlr.here.ai/x402/mcpThis 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:
- Set up the AWS Marketplace payment connector in AgentCore payments, and configure spending limits before your agent transacts.
- Add
https://hlr.here.ai/x402/mcpas the MCP server URL in your agent. - Call
tools/listto discover the available tools. Your agent pays the price quoted in each payment requirement.
For details, see:
Next steps
- To connect from an MCP client with your HERE platform account, see Get started with HERE Location Reasoning.
- For a list of available tools, see HERE Location Reasoning tools reference.
Updated 55 minutes ago