Cloud Manager API returns ‘Api Key is invalid’ (403003) error

✨ This content is AI generated and could be inaccurate. Generative AI Terms

This article explains how to resolve the ‘Api Key is invalid’ (error_code 403003) error that occurs when accessing the Cloud Manager API using credentials that are not subscribed to the Cloud Manager API.

Description description

Environment

Adobe Experience Manager Cloud Manager API (all versions)

Symptoms

When you call the Cloud Manager API with credentials (Client ID / x-api-key) from an Adobe Developer Console project that is not subscribed to the Cloud Manager API, the following error is returned:

{
  "title": "ErrInvalidAPIKey",
  "status": 403,
  "error_code": 403003,
  "message": "Api Key is invalid"
}

This error occurs when you make API calls, such as retrieving pipeline status, as described in the Cloud Manager API documentation.

Cause

The Client ID (x-api-key) belongs to a project that is not subscribed to the Cloud Manager API. Cloud Manager APIs require a Client ID from a project that explicitly includes the Cloud Manager API as a service.

Resolution resolution

Follow the steps below to resolve the issue.

  1. In Adobe Developer Console (https://developer.adobe.com/console/), create a new project or open an existing one in the same IMS organization.

  2. Add the Cloud Manager API to the project.

  3. Choose OAuth Server-to-Server as the authentication type.

  4. Select the appropriate Cloud Manager product profile when prompted.

  5. Use the OAuth Server-to-Server credential from this Cloud Manager project:

    • Request a token from IMS using client_credentials and the Client ID / Client Secret from the Cloud Manager API credential.

    • Call Cloud Manager APIs with the following headers:

    • Authorization: Bearer <token>

    • x-api-key: <client-id>

    • x-gw-ims-org-id: <org-id>

  6. Refer to the following documentation for detailed steps:

After completing these steps, verify that API calls to the Cloud Manager API succeed without the 403003 error.

recommendation-more-help
experience-cloud-kcs-help-kbarticles