# Unable to successfully post to /oauth/data/compliance

**URL:** <https://devforum.zoom.us/t/unable-to-successfully-post-to-oauth-data-compliance/20361>\
**Category:** API and Webhooks\
**Created:** [June 4, 2020, 8:01pm UTC](https://devforum.zoom.us/t/unable-to-successfully-post-to-oauth-data-compliance/20361 "2020-06-04T20:01:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dimitriy](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@Dimitriy](https://devforum.zoom.us/u/Dimitriy)\
**Post date:** [June 4, 2020, 8:01pm UTC](https://devforum.zoom.us/t/unable-to-successfully-post-to-oauth-data-compliance/20361/1 "2020-06-04T20:01:48Z")

</div>

**Description**  
I am unable to successfully report completion of deauth event processing to /oauth/data/compliance

**Error**  
Request failed with status code 400

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
OAuth

**Which Endpoint/s?**  
/oauth/data/compliance

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

url - [https://api.zoom.us/oauth/data/compliance](https://api.zoom.us/oauth/data/compliance)  
headers - {“Content-Type”:“application/json”, “Authorization: Basic xxx”}  
body - {“client\_id”:“aaa”,“user\_id”:"bbb,“account\_id”:“ccc”,“deauthorization\_event\_received”:{“user\_data\_retention”:“false”,“account\_id”:“ccc”,“user\_id”:“bbb”,“signature”:“4f0a216c8162f8f89079c9ac912f450f7cca969756624f0e271b345fffaddd4a”,“deauthorization\_time”:“2020-06-04T19:54:58.386Z”,“client\_id”:“aaa”},“compliance\_completed”:true}

Note that sensitive information has been edited out.

**Additional context**  
I have also tried using Send Test Request on /docs/api-reference/data-compliance/data-compliance/compliance to validate the format of the data posted to /oauth/data/compliance using a live payload. The only new piece of information I received is this error :

{  
“error”: “invalid\_request”,  
“reason”: “Invalid client id or client secret”  
}

I am not sure if this is relevant to the original issue though.

Please advise

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 9, 2020, 10:12pm UTC](https://devforum.zoom.us/t/unable-to-successfully-post-to-oauth-data-compliance/20361/2 "2020-06-09T22:12:17Z")

</div>

Hey @Dimitriy,

Let me know if this thread helps:

> [@Compliance Api returning \`Invalid Request\` in 2020](https://devforum.zoom.us/t/compliance-api-returning-invalid-request-in-2020/12299/6):
>
> @alayvakil - it was a user error - I was using the wrong client\_id to make the call. After I changed the client\_id to the right one…surprise - it worked. The error message is not very informative, but they may have a reason for that.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![Dimitriy](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@Dimitriy](https://devforum.zoom.us/u/Dimitriy)\
**Post date:** [June 11, 2020, 5:58pm UTC](https://devforum.zoom.us/t/unable-to-successfully-post-to-oauth-data-compliance/20361/3 "2020-06-11T17:58:44Z")

</div>

@tommy

Yep, I saw this thread as I was trying to debug our issue. Long story short, I take the deauthorize\_event from the deaut request and post it to /ouath/data/compliance. For the life of me, I don’t see a discrepancy, thus this post.

Perhaps I could share the details with you in a private message so we could look at the details?

Thank you.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 16, 2020, 6:46pm UTC](https://devforum.zoom.us/t/unable-to-successfully-post-to-oauth-data-compliance/20361/4 "2020-06-16T18:46:39Z")

</div>

Hey @Dimitriy,

Sure, please email your issue, your whole request url, headers, and body, and the API credentials to [developersupport@zoom.us](mailto:developersupport@zoom.us).

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:04pm UTC](https://devforum.zoom.us/t/unable-to-successfully-post-to-oauth-data-compliance/20361/5 "2020-08-21T22:04:41Z")

</div>

Closed on August 21, 2020, 10:04pm UTC


