cURL
curl --request POST \ --url https://api.decodahealth.com/email/threads/{thread_id}/archive \ --header 'API-KEY: <api-key>' \ --header 'TENANT: <tenant>'
{ "success": true, "threadId": "<string>", "action": "<string>", "newValue": true }
Toggle archive status on a thread.
The tenant you are making this request on behalf of
Your api key
Successful Response
Response for thread actions (star, archive, etc.).