Get started
Agent onboarding
Sign up in the agent conversation, verify an email OTP and continue integrating.
Updated
The AI integrating your app can sign you up for Infi in the same conversation. It asks for your email, requests a code and verifies the OTP you receive. Your account is created with an owner, tenant, slug, product and test keys. Sign in to the dashboard later with the same email. There is no later claim step.
The conversation
You: Hello! I want my first sandbox payment link in this app.
Agent: I will create your sandbox account. Confirming the code authorizes creating the account and handing its test keys to this project. Which email should I use?
You: [email protected]. The app is called Acme. I want the BRL 29.90 single-payment sample.
Agent: I requested a code by email. What is this signup's six-digit OTP?
You: provide the code you received.
Agent: Your Acme account is ready and already belongs to you. I will save the keys in the app's server secrets. Here is your first BRL 29.90 sandbox payment link and the dashboard link for later.
The agent uses the project name and billing intent when already known and asks only for missing details. Provide only this signup's OTP, never your password or an existing account's MFA code.
Connect the MCP without initial login
Add Infi's remote MCP to your AI:
https://api-sandbox.beinfi.com/mcpFor new account signup, connect without a token or key. The server offers
onboarding_start_v1, onboarding_verify_v1 and the connection_status_v1
sign-in entry. To operate the account after OTP, call connection_status_v1:
the client starts normal OAuth. Sign in with the same email, select the account
and consent to scopes in the dashboard, then refresh the tool list. The returned
API keys are for the app; MCP uses OAuth. Anonymous signup is unavailable in production.
Signup tools
Call onboarding_start_v1 without arguments. It returns requires_input,
questions for missing details and a key for resuming the same request.
No account is created and no email is sent at this stage.
With the person's answers, call again:
{
"name": "onboarding_start_v1",
"arguments": {
"key": "KEY_RETURNED_BY_THE_TOOL",
"email": "[email protected]",
"accountName": "Acme",
"intent": "one-time"
}
}The requires_verification result includes challengeId, expiresAt,
deliveryStatus and the code question. If all details arrived without a key,
the tool returns ready_to_send with one. The agent repeats the call with that
key, without asking the person for a technical identifier.
Ask for the OTP and confirm it:
{
"name": "onboarding_verify_v1",
"arguments": {
"challengeId": "RETURNED_CHALLENGE_ID",
"code": "CODE_FROM_EMAIL"
}
}The complete response contains account with tenantId, tenantSlug,
accountName, productId, apiKeySecret, publishableKey, dashboardUrl and
offer details. Keys appear once. Save apiKeySecret as INFI_SECRET_KEY in
server secrets and tenantSlug as INFI_TENANT_SLUG. Do not print the key in
chat or put it in browser code or git. Embedded checkout uses a public link
and needs no API key.
Signup is finished. Continue integrating and test the app before reporting a
working integration. Give the person dashboardUrl for later sign-in and
paymentLinkUrl to test checkout when an offer was published.
For the first link, choose the offer before sending the OTP. With one-time,
verification returns the BRL 29.90 single-payment sample link. The link uses
/pay/sandbox/{slug}/links/{token}, which selects the sandbox API in the frontend.
No dashboard sign-in or OAuth consent is needed to receive or open that link.
OAuth is for subsequent existing-account operations through MCP.
Initial offer
| Intent | Sample offer |
|---|---|
one-time | Single BRL 29.90 charge |
crm | BRL 49.90 monthly subscription |
usage-saas | BRL 0.10 per request |
prepaid-ai-chat | BRL 19.90 monthly with 50,000 tokens |
Omit intent for an unpriced draft. Other values are refused before sending
a code. These are sample offer amounts, not Infi's pricing. Opening checkout
does not collect or mark an invoice paid. Production keeps its dashboard
registration and approval requirements.
Recovery and existing accounts
Codes expire in 10 minutes and lock after five wrong attempts. Asking the code
question without providing a value does not spend an attempt. Repeating a send
request with the same key and fields returns the same challenge without
resending. To resend, wait 60 seconds and use a new key. There are at most five
sends per email per 24 hours. A verified attempt must complete or expire.
deliveryStatus: sent means provider acceptance, not inbox delivery. unknown
does not confirm acceptance. Explain that uncertainty instead of claiming the
message arrived. Request another code after the cooldown if needed.
After a temporary failure, retry verification with the same code before expiry. Infi reconciles the identity and rolls back local failures. A consumed code never reveals another key. If the successful response was lost, sign in to the dashboard with the same email and create another test key.
An existing email requires normal sign-in, including MFA. This OTP cannot grant access or issue keys for an existing account. Creating a new account also does not grant OAuth consent to operate businesses through MCP.
Agents without MCP
The same journey is available over HTTP:
curl -X POST https://api-sandbox.beinfi.com/public/v1/agent-signups \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: 2b6468f1-9df6-49a7-9ac9-ec5d60acf782' \
-d '{"email":"[email protected]","accountName":"Acme","intent":"one-time","ref":"lovable"}'The 202 returns the challenge, without an account or keys. Ask for the OTP, then:
curl -X POST https://api-sandbox.beinfi.com/public/v1/agent-signups/CHALLENGE_ID/verify \
-H 'Content-Type: application/json' \
-d '{"code":"CODE_FROM_EMAIL"}'The 201 returns the account and keys as response fields. Reuse the same
idempotency key when retrying the send request. Limits and refusals match MCP.
Old stdio packages were replaced by remote MCP. Anonymous creation at
POST /public/v1/claimables returns 410 signup_required. Existing provisional
accounts retain their claim links until their original deadlines.