Medallia - How to Connect Your Account
Overview
Medallia Experience Cloud APIs use OAuth 2.0 to authenticate access to data and API endpoints. To establish a connection with Medallia, you will need the following:
- Client ID: The unique identifier for your account, used as the HTTP Basic Authentication username.
- Client Secret: The secret key for your account, used as the HTTP Basic Authentication password.
- Reporting Instance: The domain of your Medallia account.
- Tenant Name: The tenant name of your Medallia account.
- Gateway URL: The gateway URL for your Medallia account.
This guide will walk you through generating these credentials and using them to connect your account.
Prerequisites
- Admin access to your Medallia Experience Cloud instance.
- OAuth 2.0 enabled for your account.
Step 1: Generate OAuth Credentials
To access Medallia APIs, you need to create a Client ID and Client Secret:
-
Log into your Medallia Experience Cloud instance:
- Navigate to the Admin Settings.
- Go to the OAuth 2.0 Management section.
-
Create a new Client ID and Client Secret:
- Click Create OAuth Client.
- Assign a role to the client ID. This role determines the actions and data the client ID can access.
- Save the generated Client ID and Client Secret securely. These values will not be shown again.
⚠️ Note: Each environment (production, sandbox, developer) requires separate credentials.
Step 2: Retrieve an Access Token
-
Identify the OAuth Token URL:
- Use the following format:
https://${reportingInstance}/oauth/${tenantName}/token
.
- Use the following format:
-
Request a Token:
-
Use the Client ID and Client Secret to send a
POST
request to the OAuth endpoint. -
Example
cURL
command:
-
-
Access Token Response:
-
If successful, you will receive a response like this:
-
Save the
access_token
securely. Use it in subsequent API requests.
-
Step 3: Connect Your Medallia Account
-
Field Requirements:
- Reporting Instance: Enter the domain of your Medallia account (e.g.,
instance.medallia.com
). - Tenant Name: Provide the tenant name for your account.
- Gateway URL: Specify the gateway URL (e.g.,
instance-tenant.apis.medallia.com
). - Client ID and Secret: Use the credentials generated earlier.
- Reporting Instance: Enter the domain of your Medallia account (e.g.,
-
Authentication Flow:
- The integration will use your Client ID and Secret to fetch an access token.
- The token will authenticate your connection to the Medallia API.
Notes
- Tokens expire after 3600 seconds (1 hour). The integration will refresh tokens automatically as needed.
- Ensure that the role assigned to your Client ID has the necessary permissions for your use case.
- For API usage and permissions, refer to the Medallia Experience Cloud documentation.