invalid_state
The resource is in a state that does not allow this action, such as a request that is no longer pending or a disconnected connection. An OAuth step answers 400 when its state is missing or expired.
What it means
The resource is in a state that does not allow this action, such as a request that is no longer pending or a disconnected connection. An OAuth step answers 400 when its state is missing or expired.
How to fix it
Read the resource again, check its status, and do what that status allows.
Where it comes from
400 invalid_state from 1 endpoint:
409 invalid_state from 46 endpoints, such as:
access-requests.cancelai-lines.regenerateai-lines.updateblocklist-entries.deleteblocklist-entries.updatebooking-links.createbooking-links.suggested-timesbooking-links.updatebookings.bulk-cancelbookings.bulk-reassignbookings.no-showcalling.calls-voicemail-dropcalling.numbers-releasecalling.numbers-updatecampaign-localizations.generatecampaign-localizations.regeneratecampaigns.archivecampaigns.launchcampaigns.pausecampaigns.replace-ai-workflows- and 26 more
The error body carries this code in error.code. Branch on the code, not on message. See the errors guide.