# Data Compliance Token

**URL:** <https://devforum.zoom.us/t/data-compliance-token/37946>\
**Category:** API and Webhooks\
**Created:** [December 8, 2020, 6:12pm UTC](https://devforum.zoom.us/t/data-compliance-token/37946 "2020-12-08T18:12:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thrive](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/thrive/32/17878_2.png) [@Thrive](https://devforum.zoom.us/u/Thrive)\
**Post date:** [December 8, 2020, 6:12pm UTC](https://devforum.zoom.us/t/data-compliance-token/37946/1 "2020-12-08T18:12:51Z")

</div>

```auto
curl -X POST \
  https://api.zoom.us/oauth/data/compliance \
  -H 'Authorization: Basic TERaOXMwYlRXbVBPVWx2Q1UwVV93OlFwWTBRU253TmIzN0JrVzBXS2FSemUxWnM5b1Z4eEpr' \
  -H 'Content-Type: application/json' \
  -H 'cache-control: no-cache' \
  -d '{
  "client_id": "ABcDefGHIj12A",
  "user_id": "a8yCxjayaSiw02igC8p8l0",
  "account_id": "abcdEfghIJklMn00",
  "deauthorization_event_received": {
   "user_data_retention": "false",
        "account_id": "abcdEfghIJklMn00",
        "user_id": "a8yCxjayaSiw02igC8p8l0",
        "signature": "85f9dd5684aecfa97h7bc86b7edc345204467f2jfj4df1b290093cf73fd1e6b00",
        "deauthorization_time": "2019-06-17T13:52:28.632Z",
        "client_id": "ABcDefGHIj12A"
  },
  "compliance_completed": true
}
'

```

I am looking at this [example](https://marketplace.zoom.us/docs/guides/publishing/data-compliance) from the document, what token am I suppose to use for posting the data compliance? In this example, it has a value of:

`TERaOXMwYlRXbVBPVWx2Q1UwVV93OlFwWTBRU253TmIzN0JrVzBXS2FSemUxWnM5b1Z4eEpr`

---

<div class="post-metadata">

**Author:** ![Thrive](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/thrive/32/17878_2.png) [@Thrive](https://devforum.zoom.us/u/Thrive)\
**Post date:** [December 8, 2020, 9:05pm UTC](https://devforum.zoom.us/t/data-compliance-token/37946/2 "2020-12-08T21:05:26Z")

</div>

I forgot to make it Base64 of the Client ID and Client Secret. Something like this (ruby):

```
  headers_secret = Base64.strict_encode64("#{CLIENT_ID}:#{CLIENT_SECRET}")
  headers = { 'Authorization': "Basic #{headers_secret}" }
```

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [December 9, 2020, 8:48pm UTC](https://devforum.zoom.us/t/data-compliance-token/37946/3 "2020-12-09T20:48:23Z")

</div>

Hey @Thrive,

Thank you for reaching out to the Zoom Developer Forum. Good Question! If we take a look at the [Data Compliance API](https://marketplace.zoom.us/docs/api-reference/data-compliance/data-compliance/compliance), we can see that the Signature can be found in the [Deauthorization Webhook](https://marketplace.zoom.us/docs/api-reference/webhook-reference/app-events/app-deauthorized) event that your application receives when a user uninstalls the app.

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/5/15ae9d221e67db908ee4ad8be6596cb7073e1d73.png)

I hope that helps! Let me know if you have any questions.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [January 9, 2021, 6:48am UTC](https://devforum.zoom.us/t/data-compliance-token/37946/4 "2021-01-09T06:48:28Z")

</div>

Closed on January 9, 2021, 6:48am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
