Basic Authentication
Basic Authentication enables API requests using a username and password or token. It is suitable for automated workflows and server-to-server integrations.
Basic Authentication is a simple authentication scheme built into the HTTP protocol that enables you to authenticate API requests using your Heretto CCMS username and password (or token, recommended). This method is reliable for automated workflows, server-to-server integrations, and any scenario requiring programmatic access without browser interaction.
With Basic Authentication, you send your credentials with each API request in an Authorization header. Your username and password (or token, recommended) are combined with a colon (username:password), encoded using base64, and sent with the word Basic in the header. The server verifies your credentials and processes the request if they're valid.
Basic Authentication requires your Heretto CCMS username and either your password or an API token:
-
Username: Your CCMS account username (your email address)
-
Password or Token: When single sign-on (SSO) is configured in the CCMS, you have to generate a token. Otherwise, you can use your CCMS password. However, for security reasons, using a token is strongly recommended regardless of whether SSO is configured.
For security reasons, using an API token is strongly recommended regardless of whether SSO is configured. Tokens offer several advantages: they can be revoked independently, limited in scope, and rotated regularly without affecting your password.
Basic Authentication Process
Generate a Token
You can generate a token to authenticate API requests instead of using your Heretto CCMS password. Use this token with any tool or application that makes API calls (such as cURL, WebDAV, Postman, or custom scripts).
Create separate tokens for different applications or scripts. This enables you to revoke a token without affecting other integrations.
Invalidate a Token
You can invalidate a token you previously generated for API authentication. Once your token is invalidated, any API requests using that token will fail, regardless of the tool or application making the request (such as cURL, WebDAV, Postman, or custom scripts).
Generate an Authorization Header
You need to encode your credentials in base64 format. When using a token, use your username and token in the format username:token.
Manual Generation - Command Line (Unix/Mac/Linux)
Manual Generation - Windows PowerShell
Online Base64 Encoders
Get a Resource UUID
Each resource in Heretto CCMS has its own Universally Unique Identifier (UUID). UUIDs are essential when working with Heretto CCMS API and are also useful in other scenarios, such as referencing resources like graphics or custom fonts in PDF Generator publishing configurations.
Make Authenticated API Calls
With authentication set up, you are ready to test your setup by making an API call using your username and token.
To make calls for specific files, you need the file-id parameter value (UUID) that you can get from the CCMS interface
-
Create a token in Heretto CCMS. See Generate a Token.
-
Generate your base64-encoded authorization header. See Generate an Authorization Header.
-
For resource-specific operations, obtain the resource UUID (fileId) from the CCMS interface. See Get a Resource UUID.
Replace Endpoint URL Variables
Apply Basic Authentication
A successfully authenticated request returns a 200 status code with the requested content. An example of a successful response is:
{
"content": [
{
"id": "deployment-123",
"name": "Product Documentation",
"type": "manual",
"lastUpdated": "2025-11-24T10:30:00Z"
}
],
"number": 0,
"size": 20,
"totalElements": 1,
"totalPages": 1
}