Compliance API returning "invalid_request"

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?
https://api.zoom.us/oauth/data/compliance

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

  1. Post request with options = {
    method: ‘POST’,
    url: ‘https://api.zoom.us/oauth/data/compliance’,
    headers: {
    ‘content-type’: ‘application/json’,
    authorization: ‘Basic aaa’
    },
    body: {
    client_id: ‘bbb’,
    user_id: ‘’,
    account_id: ‘’,
    deauthorization_event_received: {
    user_data_retention: ‘false’,
    account_id: ‘’,
    user_id: ‘’,
    signature: ‘’,
    deauthorization_time: ‘2021-02-04T10:20:46.848Z’,
    client_id: ‘’
    },
    compliance_completed: true
    },
    json: true
    };

  2. See response {
    “reason”: “Invalid client id or client secret”,
    “error”: “invalid_request”
    }

Additional context
I am using production credentials for all this.
At first I was getting response from compliance as { “reason” : “Internal Error” , “error” : “invalid_request” }.
After sometime I started getting response as { “reason” : “Invalid client id or client secret” , “error” : “invalid_request” }

Hey @venugopalverma01,

Thank you for reaching out to the Zoom Developer Forum. Just to clarify, have you confirmed that the client_id you’re using works for other requests?

If so, please send an email to developersupport@zoom.us with a link to this thread as well as the full request you’re making, including the client_id.

Thanks,
Max

My issue got solved.

I have included the URL of my source - from which I am sending the post request to Compliance API, in the list of Whitelist URL.
Before I was to sending the request from sources like postman and https://marketplace.zoom.us/docs/api-reference/data-compliance/data-compliance/compliance rather than from my source code.

Thanks.

1 Like

Hey @venugopalverma01,

I’m glad to hear that resolved your issues! If you encounter any further issues or questions, please don’t hesitate to reach out.

Thanks,
Max

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