---
name: aprimo-dam-api-quickstart
description: Quick-start guide and API reference for Aprimo DAM REST API. Use when developers need authentication setup, code examples in their language, API endpoint details, getting started guidance, or troubleshooting DAM API integration.
---

# Aprimo DAM REST API – Quick Start

Get your first API call working in 5 minutes, then dive deeper into the full documentation.

## 60-Second Setup

### 1. Get an API Key

In your Aprimo DAM environment:
1. Navigate to **Administration** → **Integration** → **Registration**
2. Click **New** and fill out the form:
   - **OAuth Flow Type:** Client Credentials (recommended for integrations)
   - **Access Token Lifetime:** 10 minutes
3. Save the **Client ID** and **Client Secret**

### 2. Request an Access Token

```bash
curl -X POST 'https://<your-tenant>.aprimo.com/login/connect/token' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'grant_type=client_credentials' \
  -d 'scope=api' \
  -d 'client_id=YOUR_CLIENT_ID' \
  -d 'client_secret=YOUR_CLIENT_SECRET'
```

Save the `access_token` from the response.

### 3. Make Your First API Call

**Search for assets:**

```bash
curl -X POST 'https://<your-tenant>.dam.aprimo.com/api/core/search/records' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'API-VERSION: 1' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -d '{"searchExpression": {"expression": "Title CONTAINS '\''sample'\''"}, "logRequest": true}'
```

**You now have your first API response.** See examples below for your preferred language.

---

## Code Examples by Language

### Python

```python
import requests
import json

# Configuration
tenant = "your-tenant"
client_id = "YOUR_CLIENT_ID"
client_secret = "YOUR_CLIENT_SECRET"

# Step 1: Get access token
token_url = f"https://{tenant}.aprimo.com/login/connect/token"
token_response = requests.post(token_url, data={
    "grant_type": "client_credentials",
    "scope": "api",
    "client_id": client_id,
    "client_secret": client_secret
})
access_token = token_response.json()["access_token"]

# Step 2: Search for assets
search_url = f"https://{tenant}.dam.aprimo.com/api/core/search/records"
headers = {
    "Authorization": f"Bearer {access_token}",
    "API-VERSION": "1",
    "Content-Type": "application/json",
    "Accept": "application/json"
}

search_body = {
    "searchExpression": {
        "expression": "Title CONTAINS 'sample'"
    },
    "logRequest": True
}

response = requests.post(search_url, headers=headers, json=search_body)
results = response.json()

print(f"Found {results['totalCount']} assets")
for item in results.get('items', []):
    print(f"  - {item['id']}: {item.get('title', 'No title')}")
```

### JavaScript / TypeScript

```javascript
const tenant = "your-tenant";
const clientId = "YOUR_CLIENT_ID";
const clientSecret = "YOUR_CLIENT_SECRET";

// Step 1: Get access token
async function getAccessToken() {
  const tokenUrl = `https://${tenant}.aprimo.com/login/connect/token`;
  const params = new URLSearchParams({
    grant_type: "client_credentials",
    scope: "api",
    client_id: clientId,
    client_secret: clientSecret
  });

  const response = await fetch(tokenUrl, {
    method: "POST",
    body: params
  });
  
  const data = await response.json();
  return data.access_token;
}

// Step 2: Search for assets
async function searchAssets(accessToken) {
  const searchUrl = `https://${tenant}.dam.aprimo.com/api/core/search/records`;
  
  const response = await fetch(searchUrl, {
    method: "POST",
    headers: {
      "Authorization": `Bearer ${accessToken}`,
      "API-VERSION": "1",
      "Content-Type": "application/json",
      "Accept": "application/json"
    },
    body: JSON.stringify({
      searchExpression: {
        expression: "Title CONTAINS 'sample'"
      },
      logRequest: true
    })
  });

  const results = await response.json();
  console.log(`Found ${results.totalCount} assets`);
  
  results.items?.forEach(item => {
    console.log(`  - ${item.id}: ${item.title || 'No title'}`);
  });
}

// Run it
(async () => {
  const token = await getAccessToken();
  await searchAssets(token);
})();
```

### C#

```csharp
using System;
using System.Net.Http;
using System.Threading.Tasks;
using Newtonsoft.Json;

class AprimoDamClient
{
    private string _tenant = "your-tenant";
    private string _clientId = "YOUR_CLIENT_ID";
    private string _clientSecret = "YOUR_CLIENT_SECRET";
    private HttpClient _httpClient = new HttpClient();

    // Step 1: Get access token
    async Task<string> GetAccessToken()
    {
        var tokenUrl = $"https://{_tenant}.aprimo.com/login/connect/token";
        var content = new FormUrlEncodedContent(new[]
        {
            new KeyValuePair<string, string>("grant_type", "client_credentials"),
            new KeyValuePair<string, string>("scope", "api"),
            new KeyValuePair<string, string>("client_id", _clientId),
            new KeyValuePair<string, string>("client_secret", _clientSecret)
        });

        var response = await _httpClient.PostAsync(tokenUrl, content);
        var json = await response.Content.ReadAsStringAsync();
        dynamic data = JsonConvert.DeserializeObject(json);
        
        return data.access_token;
    }

    // Step 2: Search for assets
    async Task SearchAssets(string accessToken)
    {
        var searchUrl = $"https://{_tenant}.dam.aprimo.com/api/core/search/records";
        
        var request = new HttpRequestMessage(HttpMethod.Post, searchUrl);
        request.Headers.Add("Authorization", $"Bearer {accessToken}");
        request.Headers.Add("API-VERSION", "1");
        request.Headers.Add("Accept", "application/json");
        
        var searchBody = new
        {
            searchExpression = new { expression = "Title CONTAINS 'sample'" },
            logRequest = true
        };

        request.Content = new StringContent(
            JsonConvert.SerializeObject(searchBody),
            System.Text.Encoding.UTF8,
            "application/json"
        );

        var response = await _httpClient.SendAsync(request);
        var json = await response.Content.ReadAsStringAsync();
        dynamic results = JsonConvert.DeserializeObject(json);

        Console.WriteLine($"Found {results.totalCount} assets");
        foreach (var item in results.items)
        {
            Console.WriteLine($"  - {item.id}: {item.title ?? "No title"}");
        }
    }

    static async Task Main()
    {
        var client = new AprimoDamClient();
        var token = await client.GetAccessToken();
        await client.SearchAssets(token);
    }
}
```

---

## Essential Concepts

### Select-Headers (Critical for DAM)

By default, API responses contain minimal data. Use `select-` headers to request additional data without making extra requests.

**Example: Get metadata and files along with search results**

```bash
curl -X POST 'https://<tenant>.dam.aprimo.com/api/core/search/records' \
  -H 'select-record: fields, files, thumbnail' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  ... (rest of request)
```

**Common select values:**
- `fields` — Custom metadata fields
- `files` — All versions of attached files
- `masterfile` — Latest file version
- `thumbnail` — Thumbnail image
- `classifications` — Asset classifications
- `permissions` — Access control info

This is crucial for performance—request only what you need.

### Response Formats

**Accept: application/json** (Recommended for APIs)
- Flat, minimal JSON responses
- Best for integrations and performance

**Accept: application/hal+json** (Recommended for learning)
- Hypermedia responses with `_links` for navigation
- Self-documenting structure
- Larger payload size

### Required Headers on All Requests

```
Authorization: Bearer YOUR_ACCESS_TOKEN
API-VERSION: 1
Content-Type: application/json (for POST/PUT)
Accept: application/json (or application/hal+json)
```

---

## Rate Limiting

Aprimo's REST APIs enforce a **burst-based rate limit**. Each environment has a sustained
rate measured in requests per second, plus a burst buffer that absorbs short spikes. A
typical configuration is **15 requests per second with a burst buffer of 100 requests**,
but the exact figures are per-environment — confirm yours with your Aprimo Account
Executive, who can also discuss an increase.

Two properties of this model catch integrations out:

- **The budget is per environment, not per integration or per user.** Every application,
  script, and scheduled job pointed at the same tenant draws on the same allowance, so a
  bulk job can starve an interactive app running alongside it.
- **Excess requests are rejected, not queued.** Once both the sustained rate and the burst
  buffer are exhausted, further requests return `429 Too Many Requests` immediately. You
  get fast feedback rather than a silent delay, but your client has to handle it.

**Writing a well-behaved client:**

- **Retry a `429` with exponential backoff** — wait 1s, then 2s, 4s, 8s, and add a little
  random jitter so parallel workers don't all retry on the same beat.
- **Space out polling.** When waiting on a long-running operation, use progressive waits
  (1s, 3s, 5s…) rather than a tight loop.
- **Reuse access tokens** until they expire instead of requesting a fresh one per call.
- **Cache reference data** that rarely changes, and refresh it periodically.
- **Spread scheduled work out** rather than firing every request at the top of the hour.
- **Log every `429`** alongside the endpoint that caused it — the pattern usually points at
  a single hot loop.
- **Ask for related data in one call.** `select-` headers return fields, files, and
  thumbnails alongside the record, which is far cheaper than a follow-up request per
  record.

---

## Common Tasks

### Get Asset Metadata

```bash
# First, find an asset ID via search (see above)
RECORD_ID="the-id-from-search-results"

curl -X GET "https://<tenant>.dam.aprimo.com/api/core/record/$RECORD_ID" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "API-VERSION: 1" \
  -H "select-record: fields, files, thumbnail" \
  -H "Accept: application/json"
```

### Download a File

Files are downloaded through an **order**. Create a download order for the record's latest master file:

```bash
curl -X POST "https://<tenant>.dam.aprimo.com/api/core/orders" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "API-VERSION: 1" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "type": "download",
    "targets": [
      {
        "recordId": "THE-RECORD-ID",
        "targetTypes": ["Document"],
        "assetType": "LatestVersionOfMasterFile"
      }
    ]
  }'
```

When the order's `status` is `Success`, the download URL(s) are in `deliveredFiles`. Request each URL to get the file.

Orders are not always processed immediately. If `status` is `Pending`, `Queued`, or `Executing`, read the order back (waiting a few seconds between reads) until it finishes:

```bash
curl -X GET "https://<tenant>.dam.aprimo.com/api/core/order/ORDER_ID" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "API-VERSION: 1" \
  -H "Accept: application/json"
```

The user reading the order back needs the `ViewMaintenanceJobs` role. Treat `Failed` and `PartiallyFailed` as errors.

### Upload an Asset

See the full documentation for multipart file upload details.

---

## Troubleshooting

### 401 Unauthorized
- Verify your access token hasn't expired
- Check the Authorization header format: `Bearer YOUR_TOKEN`
- Ensure Client ID and Secret are correct
- Verify the token scope includes `api`

### 429 Too Many Requests
- You've hit the rate limit
- Implement exponential backoff (wait 1s, 2s, 4s, etc. before retrying)
- Use select-headers to reduce payload size
- Batch requests where possible

### 400 Bad Request
- Check required headers are present: `API-VERSION: 1`
- Verify your search expression syntax is valid
- Ensure JSON body is properly formatted

---

## API Documentation

### Full OpenAPI Specification

The complete OpenAPI 3.0 specification for the DAM REST API is published on the DAM OpenAPI Specification page, **https://developers.aprimo.com/docs/openapi-specifications/dam-openapi-spec**. It is not included in this file. Download it from that page and save it next to this file as `aprimo-dam-openapi.json`. If it isn't there, ask the user to download it. You can:

- **Import into Postman/Insomnia:** Use the aprimo-dam-openapi.json file to auto-generate API requests
- **Generate SDK code:** Use [OpenAPI Generator](https://openapi-generator.tech/) to create client libraries in any language
- **IDE integration:** TypeScript, Visual Studio Code, and other tools can use the spec for autocomplete

### Static Documentation

The full Aprimo developer documentation (authentication flows, advanced patterns, error reference, and more) is available at:

**https://developers.aprimo.com**

**For AI/Claude:** The site uses dynamic rendering. To fetch static, AI-readable versions:

1. **Browse available docs:** https://developers.aprimo.com/llms.txt
2. **Fetch specific articles as plaintext:**
   - Authentication details: `https://developers.aprimo.com/doc-content/docs/OAuth2.txt`
   - DAM intro & REST API guide: `https://developers.aprimo.com/doc-content/docs/rest-api/dam/dam-intro.txt`
   - Search syntax & patterns: `https://developers.aprimo.com/doc-content/docs/rest-api/dam/searching.txt`
   - Select headers reference: `https://developers.aprimo.com/doc-content/docs/rest-api/dam/select-headers.txt`
   - Rate limiting: `https://developers.aprimo.com/doc-content/docs/rate-limiting.txt`

Use these static `.txt` versions for comprehensive examples, advanced workflows, and detailed API behavior.

### Going Further: help.aprimo.com

Aprimo also publishes a product help site, **help.aprimo.com**, covering UI, configuration, and admin behavior that the REST API docs don't — reach for it when a question is about what a feature *is* or how it behaves on-screen, not about API syntax.

It requires an authenticated session, and there's no API key or service account for it — access rides on the user being logged into an Aprimo instance in the same browser. If your agent has browser tooling available:

1. **Ask the user to log in.** Have them sign in to their Aprimo instance in that browser, then load help.aprimo.com in the same session. Don't attempt to authenticate yourself and never ask for credentials.
2. **Search instead of guessing paths.** The site is built on MadCap Flare, so guessed URLs mostly 404. Use `https://help.aprimo.com/?q=<terms>` to find exact topic paths, then open the results from there.
3. **If you can run JavaScript in that browser**, fetching `/Content/<path>` with `credentials: 'include'` and reading the parsed body text is faster than clicking through topic by topic — topic bodies render into an iframe that plain text extraction can miss.

If access fails, tell the user plainly that the session is missing and ask them to log in again, rather than retrying the same request.

---

## Support & Next Steps

1. **Test your setup:** Verify you can get an access token and search for assets
2. **Pick your language:** Use the code examples above as a starting point
3. **Explore the API:** Ask Claude questions like:
   - "Show me how to get asset metadata in Python"
   - "What does the masterfile select-header do?"
   - "How do I handle rate limiting?"
   - "Generate a Node.js client library for DAM asset search"
4. **Build & integrate:** Use the OpenAPI spec and examples to build your application

---

## OpenAPI Specification

The full API schema (endpoints, parameters, request/response models, authentication) is in `aprimo-dam-openapi.json`, saved next to this file (see **Full OpenAPI Specification** above for where to download it). Claude can reference it directly for parameter details, error codes, and response shapes.

You can also use this file with:
- **Postman/Insomnia:** Import → Auto-generate API requests with examples
- **Code generation:** `openapi-generator-cli generate -i aprimo-dam-openapi.json -g python -o ./sdk`
- **IDE autocomplete:** VSCode, IntelliJ, etc. can provide autocomplete based on the spec

---

**Ready to build?** Start with the examples above, ask Claude questions as you build, and refer to the full documentation at developers.aprimo.com for advanced patterns and reference.
