Talk to usGet started
Connections

Create a connection

Start a reusable login at a merchant. Returns a connect_url, a live window on the merchant's own sign-in page, for the person to complete.

POST/v1/connections
Live API. A POST to /v1/cards issues a real card.
Authorizations
Authorizationstringrequired
Bearer token: Authorization: Bearer mk_live_.... Create a key in the AgentPay console under Developer, API keys.
Bodyapplication/json
merchantstringrequired
The merchant to connect a login for.
user_refstring
Your own reference for the end user this login belongs to.
Response200application/json
connection_idstring
merchantstring
connect_urlstring
Open it for the person. AgentPay never sees the password.
statusstring
pending until you call complete.
request_idstring
The request id, also in the X-Mooj-Request-Id header.
Errors
StatusCodeWhen
400invalid_requestmerchant is missing.
502connect_start_failedThe live window could not be opened. Retry.