FSM API ERROR Code "OAUTH_SCOPE_MISMATCH"
I am trying to create a contact via the ZOHO FSM API https://fsm.zoho.com/fsm/v1/Contacts
I have followed the instructions of the API documentation to Authenticate and Create a contact but I cant figure out what I am doing wrong.
Bellow are the steps I followed :
1. I have created a self client with the correct scopes : ZohoFSM.settings.ALL ZohoFSM.modules.contacts.ALL
2 After getting the code I have sent the request to get the access token and refresh token :
3. I then make a request to create a contact with the access token I got in step 2 in the header :
https://fsm.zoho.com/fsm/v1/contacts
I get this response :
Unauthorized - {"code":"OAUTH_SCOPE_MISMATCH","details":{},"message":"invalid oauth scope to access this URL","status":"error"}
Things I have tried : - Changing the scopes to use : scope=ZohoFSM.modules.Contacts.CREATE
- I have tried calling the list contacts FSM end point to test if maybe I am getting this response because my request to create contact is malformed but nothing changes I get the exact same error as mentioned.
Please can someone help me resolve this error ?