Zoho - Crm - Bulk Apis - Bulk Write

Zoho - Crm - Bulk Apis - Bulk Write

Hello,

I'm developing a new feature for our application and I need to use bulk apis.

I set up a self client in order to generate the code to send the request for the access_token.


I make the access_token request with the code and I receive a token for the "https://www.zohoapis.eu" :
{
    "access_token": "1000.9107449a57c2a5a012f67afead58dbd3.a755cd45c76ba435fc96ec5af0fd140d",
    "api_domain": "https://www.zohoapis.eu",
    "token_type": "Bearer",
    "expires_in": 3600
}
 

I tried to send the upload request but i get an error:

request: https://content.zohoapis.com/crm/v3/upload

Response:
{
    "ERROR_MESSAGE": "INVALID_OAUTHTOKEN",
    "ERROR_CODE": 401
}

I think the problem is that I'm sending the request to the .com domain while the acces_token is for eu domain.

I tried to change the domain in the upload request but I still get a 403 error.

Can you please tell me how I can i get a valid access_token to make the upload request?

Best regards,

Giovanni