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.
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.Body
merchantstringrequired
The merchant to connect a login for.
user_refstring
Your own reference for the end user this login belongs to.
Response
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
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | merchant is missing. |
| 502 | connect_start_failed | The live window could not be opened. Retry. |