Before you start
- Your service supports Onboard (AEP). See Enroll agents.
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:webagent 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.
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.Why the prefix is reliable
The SDK gets the public key of the agent from the DID document onapp.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 withinflow auth login. Make sure that the vault is unlocked.
Next step
List your products
Publish your catalog, so that agents can find your products and their prices.