Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Handling temporary and perm failures on Context.IO

status_callback_url payloads

Permanent failures (DISABLED status)

To clear a permanent failure, a user must re-authenticate. You can POST new credentials to 2.0/accounts/:id/sources/:label or lite/users/:id/email_accounts/:label.

Sample payload:

{"account_id":"5690***************4569","user_id":"5690***************4569","server_label":"test::gmail","email_account":"test::gmail","timestamp":1234567890,"failure":"permanent"}

Cleared status

When a failure status has been cleared, you will see this sample payload:

{"account_id":"5690***************4569","user_id":"5690***************4569","server_label":"test::gmail","email_account":"test::gmail","timestamp":1234567890,"failure":"cleared"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment