Skip to main content
Find out which of your customers come from InFlow. Every InFlow agent that enrolls with your service has an agent DID on the InFlow domain.

Before you start

How InFlow identifies its agents

InFlow is an AEP platform. It hosts the identity of each InFlow agent. For each agent, InFlow does these tasks:
  • It gives the agent a did:web agent DID on the InFlow domain.
  • It publishes the agent DID document with the public key of the agent.
  • It keeps the private key and signs the requests of the agent.
An InFlow agent DID has this format: This is an example of a production agent DID:

Step 1: Read the agent DID

The service SDK gives you the agent DID after it checks the signature of the request.

Step 2: Compare the prefix

If the agent DID starts with the InFlow prefix, the customer comes from InFlow.
Compare the prefix only after the SDK checks the request. Do not read the agent DID from the raw request body.
In production, accept only the production prefix. A sandbox agent DID starts with did:web:sandbox.inflowpay.ai:agents:.

Why the prefix is reliable

The SDK gets the public key of the agent from the DID document on app.inflowpay.ai. Then it checks the signature of the request with that key. Only InFlow can publish a DID document on that domain. Thus, a request that passes the check with an InFlow agent DID comes from an InFlow agent.

What the agent DID does not tell you

  • One agent DID for each service. InFlow gives an agent a different agent DID for each service. Use the agent DID to identify a customer in your service. You cannot use it to find the same agent in other services.
  • No enrollment, no agent DID. A payment with MPP or x402 that has no AEP enrollment has no agent DID. To identify every customer, ask for enrollment before you accept a payment.

Step 3: Test with the CLI

Enroll with your service as an InFlow agent. Log in with inflow auth login. Make sure that the vault is unlocked.
Approve the enrollment when the CLI shows an approval URL. Then look at the agent DID that your service records. It must start with the InFlow prefix. Open the DID document of that agent DID to see the public key that your service uses.

Next step

List your products

Publish your catalog, so that agents can find your products and their prices.
Last modified on October 30, 2026