---
title: "Why am I unable to request access tokens to make Cloud Platform API v2 calls?"
date: "2025-04-08T02:19:42+00:00"
summary: "Troubleshoot Cloud Platform API v2 access token issues. Learn the correct content-type header for OAuth 2.0 requests."
image:
type: "article"
url: "/acquia-cloud-platform/help/66356-why-am-i-unable-request-access-tokens-make-cloud-platform-api-v2-calls"
id: "916a9f50-0750-4c83-a138-498a39cc8a07"
---

The [OAuth 2.0 Authorization](https://datatracker.ietf.org/doc/html/rfc6749) framework does not support content-types, such as `application/json`. Through Acquia ID, Acquia enforces the security posture strictly and follows the standards defined in the framework. Therefore, you must have the content-type header set explicitly to `application/x-www-form-urlencoded` when trying to access `https://accounts.acquia.com/api/auth/oauth/token`.

If you try to access `https://accounts.acquia.com/api/auth/oauth/token` with a different content-type header, you might get the following errors:

    { 
      "error": "invalid_client", 
      "error_description": "The client credentials are invalid" 
    }

    { 
      "errorCode": "E0000021", 
      "errorSummary": "Bad request. Accept and/or Content-Type headers likely do not match supported values.", 
      "errorLink": "E0000021", 
      "errorId": "oae7U5DSFSgR5Kl3gSWcy-Ncg", 
      "errorCauses": [] 
    }

In such cases, ensure that you use the `application/x-www-form-urlencoded` content-type in your token requests. For more information, visit [Cloud Platform API v2 authentication](https://docs.acquia.com/acquia-cloud-platform/docs/develop-apps/api/auth).