Talk to usGet started
Connections

Disconnect

End a connection. The AgentPay key is destroyed first, the saved session is deleted, and the entry at the merchant is removed when AgentPay can. Idempotent.

DELETE/v1/connections/{id}
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.
Response200application/json
connection_idstring
statusstring
removing while the passkey is being removed at the merchant, removed otherwise.
passkey_statusstring
removing, then on a later read removed or removed_locally (the person removes the AgentPay-... entry in the merchant's security settings themselves).
request_idstring
The request id, also in the X-Mooj-Request-Id header.
Errors
StatusCodeWhen
404connection_not_foundNo such connection on your account.
502disconnect_failedThe passkey could not be revoked. Retry.