Description
Greetings - I am calling the Rest API to add a registrant to an existing meeting. First I am trying to get this working via Postman, then I’ll code it up in PHP. I have created a server-to-server oAuth app (so the grant type is account_credentials) and I have built a request to get the oAuth token (which is working), then a request to add a registrant to an existing meeting (which is returning the Code 124 error). I have checked the token format, scope, etc. and it all looks right to me so I am not sure why the API is returning this error.
I have my Postman Collection with the 2 queries saved off that I can provide to you (not here) and I can give you my Zoom account login credentials too if you need them (again not here). Please reach out to me and let me know how I can get these to you securely.
How To Reproduce
You will need my Postman Collection file which will make this super easy to illustrate the issue.
Then run the 1st query to get an oAuth2 token from my oAuth server-to-server app.
Then run the 2nd query with that oAuth2 token to TRY and add a registrant to an existing meeting.
Then you will see the error…
Any help you can give me would be GREATLY appreciated - I am been trying to get this working for 2 days now.
YES, that worked for Postman. Now I need to get my actual REST API call to add a registrant to an existing meeting working. I am getting the same error 124 with this POST:
You just need to pass
‘Authorization’ => 'Bearer ’ . ‘eyJzdiI6IjAwMDAwMSIsImFsZyI6IkhTNTEyIiwidiI6IjIuMCIsImtpZCI6IjEwNzZkNDRkLTY5YmQtNGNlOC1hZDRlLTYxOGIxYWUxYzYxNiJ9.eyJhdWQiOiJodHRwczovL29hdXRoLnpvb20udXMiLCJ1aWQiOiJYSERrTUtQeVNVS0t2a2J4eXdrM013IiwidmVyIjo5LCJhdWlkIjoiZmI1OWNjNjNmYWM3ODA5MDY1ZTQ2OTY1YWM5NzYzMGMiLCJuYmYiOjE2OTUzOTU2MDYsImNvZGUiOiJydWNxcWdlelEweVJLTDVxMFRfcFRRSktMajM1dkFNVEgiLCJpc3MiOiJ6bTpjaWQ6Ujk5cUR2aHdRRldCSTFCclVxR2ZYQSIsImdubyI6MCwiZXhwIjoxNjk1Mzk5MjA2LCJ0eXBlIjozLCJpYXQiOjE2OTUzOTU2MDYsImFpZCI6Imo2WDFjMTU2VHM2NEVrNFBZcTJzaFEifQ.lDq39wFUZWnyHbOC1Bsb6_NRJItJgNMwp9HnqoaYSNSfVq8wf-YOUqgxXxA8k0OV1SRKGfGT4rreLef0FXWr6Q’,
in headers like this , for you above token
sorry for the confucion i copied that from php you need to remove ‘’ from above statement it will be like this ‘Authorization’ => ‘Bearer yourtokenvalue’
AND I passed that entire oAuth Token with it. That results in a Code 124 error
Then I tried passing just the token string “eyJ…LtQ” same error code
Then I tried combinations of the oAuth Token parts same error code
Please show me EXACTLY what I need to paste into the “Token” input field in Postman to get this REST API call to work. I can’t seem to get it.
Your API documentation for adding a registrant says the required scopes are:
SCOPES: meeting:write:admin, meeting:write.
When I setup the scope there is no option for “meeting:write”.
Just “meeting:write:admin” but I THINK that includes “meeting:write” by default doesn’t it? Or is that an issue?
FINALLY - That did the trick. Thank you for all of your help.
And I got the REST API call working in PHP too. Here is the code in case anyone else needs it:
/*******************************************************************************************
Method: sendZoomAddRequest
Purpose: Adds the new registrant to an existing meeting in ZOOM
Params: $endPoint: The part of the URL after “https://api.zoom.us/v2”
$postFields: The registrant data that needs to be posted to ZOOM
$token: The OAUTH2 TOKEN
Return: The response back from the ZOOM API call
*******************************************************************************************/
function sendZoomAddRequest($endPoint, $postFields, $token)
{
// Specify request URL
$url = ZOOM_API_BASE_URL . $endPoint;