Unable to create meeting invitation link

Using this template helps us debug your issues more effectively :slight_smile:

Description

Hello, we have created an application that accepts a service that hosts users to register and participate in meetings that are open to others.

The problem we are currently having is that after successfully pre-creating the meeting, we need to create an invite link for the meeting, but the API responds that we don’t have the required permissions.

Error

{
    "code": 4700,
    "message": "Invalid access token, does not contain scopes: [meeting:write:master, meeting:master]."
}

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

APP Type: OAuth

Which Endpoint/s?

Create meeting’s invite links
https://api.zoom.us/v2/accounts/{accountId}/meetings/{meetingId}/invite_links

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

curl --location --request POST 'https://api.zoom.us/v2/accounts/pCLUF3mJQVK7F6MffaRWFw/meetings/95895222213/invite_links' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' \
--header 'Cookie: _zm_chtaid=664; _zm_ctaid=9EBsMcfKRnCG72xopvqTbg.1644396133662.f3ad9c2699bd34da02a9006f9bbcaef2; _zm_page_auth=aw1_c_mWrRHD-rRDu9sinE-f6fRA; _zm_ssid=aw1_c_bKlqaXnqSWyNs5A51-NjCg; cred=1AFE1F3BE9A072CE9382BABB7DA590DE' \
--data-raw '{
    "ttl": 7200,
    "attendees": ["Jake"]
}'

Hi @ChienHsun ,

You need to add those scopes under “scopes” on your OAuth app:
OAuth Scopes - OAuth 2.0 - Authorization - Documentation.

Then it should work after saving and doing the request again!

Gianni

Hi @gianni.zoom ,

I tried looking at “scopes” in the app like you did but I don’t see the same name.

Picture Scopes List

Picture Scopes List

Hi @ChienHsun ,

Ahh I see! this is because you do not have a Master account which I assumed you did since you were using this API endpoint. Only Master API endpoints are prepended with /accounts/{accountID}. To look into Master account plan, please refer to this page:
https://marketplace.zoom.us/docs/api-reference/master-account-apis/

Thank you,
Gianni

Ok, thank you very much for your help, we will try our best to submit the application and hope to pass as soon as possible…

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