Connections
Get a connection
One connection with its status and passkey layer. Poll it after a disconnect to watch the passkey being removed.
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.Path parameters
idstringrequired
The connection id.
Response
connection_idstring
merchantstring
statusstring
Available options:
pending, connected, removedlayerstring
Available options:
session, passkeypasskey_statusstring
Available options:
none, enrolling, awaiting_password, pending, connected, connected_unmanaged, failed, needs_person, login_failed, removing, removed, removed_locallyremote_removalstring
Available options:
available, unavailablepasskey_connected_atstring
request_idstring
The request id, also in the
X-Mooj-Request-Id header.Errors
| Status | Code | When |
|---|---|---|
| 404 | connection_not_found | No such connection on your account. |