cred_... id when a
credential session completes, pass that
id when triggering a Blueprint, and revoke it when the
user disconnects.
How you get a credential id
- Create a session with
POST /credential-sessions - Open
hosted_urlfor the end user - Poll
GET /credential-sessions/{id}(or confirm onreturn_url) untilstatusiscompleted - Store
credential_idagainst your user record
Revocation
When an end user disconnects an integration, callDELETE /credentials/{credentialId}.
After that, triggers that reference the id will fail — create a new session if
they reconnect.