Open Forum

 View Only
  • 1.  Error generating OAuth2 token

    Posted 08-14-2025 05:55

    Hello,

    We are trying to integrate Cvents into an external platform, we have followed the documentation on authenticating

    Developer Documentation

    However, all API calls to https://api-platform-eur.cvent.com/ea/oauth2/token return 

    {
        "error": {
            "code": "Bad Request",
            "message": "Failed to authenticate"
        }
    }

    I have confirmed that the client secret and client id are valid and in the right order. This is a sample of our curl

    curl --location 'https://api-platform-eur.cvent.com/ea/oauth2/token' \
    --header 'Content-Type: application/x-www-form-urlencoded' \
    --header 'Authorization: Basic {{Token}}}' \
    --data-urlencode 'grant_type=client_credentials' \
    --data-urlencode 'client_id={{ClientId}}'

    Kindly advise on what we might be overlooking. 


    #Integrations

    ------------------------------
    Project Senior
    SalesforceGenericAccountUnited States
    ------------------------------


  • 2.  RE: Error generating OAuth2 token

    Posted 08-28-2025 14:46

    Hi,

    Looking at the above I can see the token endpoint is set to 'https://api-platform-eur.cvent.com/ea/oauth2/token' instead of '

    https://api-platform.cvent.com/ea/oauth2/token'. Is your account in the EU database or is it in the NA database? If the NA database please use the endpoint for all your calls starting with 'https://api-platform.cvent.com/ea/'



    ------------------------------
    Carl Robinson
    Senior Solutions Specialist
    Cvent
    ------------------------------



  • 3.  RE: Error generating OAuth2 token

    Posted 09-15-2025 07:48
    Edited by Project Senior 09-16-2025 12:29

    Hi Carl, 

    Following your response to my colleague.

    The URL we are sending the request to is

    https://api-platform-eur.cvent.com/ea/oauth2/token" href="https://api-platform-eur.cvent.com/ea/oauth2/token" rel="noreferrer noopener" target="_blank" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://api-platform-eur.cvent.com/ea/oauth2/token">https://api-platform-eur.cvent.com/ea/oauth2/token

    form data:

    [0]: {[grant_type, client_credentials]}
    [1]: {[client_id, [My Client ID]}

     

    Authorization Header: Bearer [my bearer token]

     

    This is exactly as recommended here https://developers-eur.cvent.com/docs/rest-api/tutorials/developer-quickstart" href="https://developers-eur.cvent.com/docs/rest-api/tutorials/developer-quickstart" rel="noreferrer noopener" target="_blank" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://developers-eur.cvent.com/docs/rest-api/tutorials/developer-quickstart">https://developers-eur.cvent.com/docs/rest-api/tutorials/developer-quickstart

     

    however, we are still getting this error 

    {"error":{"code":"Bad Request","message":"Failed to authenticate"}}



    ------------------------------
    Project Senior
    SalesforceGenericAccountUnited States
    ------------------------------



  • 4.  RE: Error generating OAuth2 token

    Posted 09-15-2025 15:10

    Hi,

    I suggest removing your Client ID from the above as the forum is indexable, although it requires the secret, it's always better to remove all potential pieces of information that is vulnerable. That being said I suggest you reach out to your account team or call in to support to get assistance with this matter so we may have someone work directly with you to have your issue resolved.



    ------------------------------
    Carl Robinson
    Senior Solutions Specialist
    Cvent
    ------------------------------