Upload a creative
Upload your first creative using IQM's API in this step-by-step quickstart guide.
The following endpoints are used to upload a creative:
POSTGET
POST
GET
About IQM creatives
The IQM APIs provide access to upload a creative in image, video, audio, HTML, XLSX, or CSV formats. The APIs can be used to connect to the desired applications.
More resources
- Creatives and specifications Help Center article
- Creative API guidelines
Before you begin
To upload a creative, the following are required:
- An account on the IQM platform
- See Before you begin to create an account and request a Client ID and Client Secret
- Image, video, audio, HTML, VAST, DAAST, CSV, or XLSX file to upload creative
File requirements for creative file:
- 2MB for JPG, JPEG, PNG
- 750KB for GIF
- 400MB for MOV, MP4
- 100MB for MP3, WAV, OGG, MPEG
See IAB Tech Lab's documentation on VAST and DAAST for more information.
Sample CSV file: https://app.iqm.com/creatives/example-files/sample_html_creatives.csv
Authentication
Use the following header parameters for all requests after logging in:
| Headers | |
|---|---|
Authorization string required | Bearer followed by the access_token from the login response. See Sign up and authenticate. |
X-IAA-OW-ID integer required | Organization Workspace ID header. |
Upload a creative using the IQM API
This quickstart guide covers how to upload a creative and check its status.
The minimum requirements to perform this task are: logging in with authentication credentials and uploading a creative. Once these steps are accomplished, more can be learned about IQM's API through the guidelines pages.
- Log in
- Optional if you have already logged in and have a token
- Request creative types
- Optional if you already know supported/desired types
- Upload creative file
- Check creative status
Step 1: Log in
POSTTo log in, send the Authorization: Basic header with your Base64-encoded Client ID and Client Secret, and send the request body as form data (application/x-www-form-urlencoded). The response contains an OAuth access token.
To find the Organization Workspace IDs that you have access to, use Get list of accessible Organizations.
For further information see OAuth token.
| Headers | |
|---|---|
Authorization string required | Basic followed by your Base64-encoded client_id:client_secret. See Sign up and authenticate. |
Content-Type string required | application/x-www-form-urlencoded. Send the request body as form data. |
| Request schema | |
|---|---|
grant_type string required | password for login. See OAuth Grant Types. |
username string required | User account email. |
password string required | User account password. |
- JSON
curl -i --location 'https://api.iqm.com/api/v3/ua/oauth/token' \
--header 'accept: application/json, text/plain, */*' \
--header 'Authorization: Basic <Client ID/Client Secret>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'username=user@iqm.com' \
--data-urlencode 'password=<your password>'
{
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIn0...",
"refresh_token": "eyJhbGciOiJIUzUxMiIsInR5cCIgOiAiSldUIn0...",
"scope": "read write",
"token_type": "bearer",
"expires_in": 86399
}
More responses
{
"success": false,
"errorObjects": [
{
"error": "Bad Credentials or invalid grant type"
}
]
}
{
"error": "Client details are not provided."
}
Step 2: Request creative types
GETTo upload a creative, a creative type must be provided. Use the creative type list endpoint to request a full list of allowed creative types.
For further information see Get creative types list.
- JSON
{
"success": true,
"data": {
"totalRecords": 5,
"creativeTypeList": [
{
"id": 11,
"name": "Image",
"displayName": "Image",
"order": 95,
"rtbCreativeTypeId": 1
},
{
"id": 13,
"name": "HTML",
"displayName": "HTML",
"order": 96,
"rtbCreativeTypeId": 1
},
{
"id": 14,
"name": "Video",
"displayName": "Video",
"order": 97,
"rtbCreativeTypeId": 3
},
{
"id": 17,
"name": "Audio",
"displayName": "Audio",
"order": 98,
"rtbCreativeTypeId": 2
},
{
"id": 15,
"name": "Native",
"displayName": "Native",
"order": 99,
"rtbCreativeTypeId": 4
}
],
"filteredRecords": 5
}
}
More responses
{
"statusCode": 500,
"responseObject": {
"errorMsg": "Internal server error",
"errorCode": 500
}
}
Step 3: Upload a creative
POSTOnce you have the desired creative type ID, you can upload a creative. With the two request parameters, creativeRequest and creativeFiles, you add the creative metadata and the creative file respectively.
creativeRequest maps an ID to fields defining the creative metadata outlined in the table below and shown as an example in the request sample code block in the right-hand column.
creativeFiles are added as multipart format. See the MDN documentation on Multipart/form-data encoding for more information.
| Request schema | |
|---|---|
creativeRequestform data required | This parameter accepts a map of IDs to creative metadata. Each ID corresponds to a single creative. All creatives in one request must have the same platformCreativeTypeId. |
creativeFilesmultipart/form-data | Array of creative files to upload. Required only when creative source type is FILE in the creative metadata. Each uploaded file's name must exactly match the creativeSource value specified in the corresponding creative object. Supports multiple file uploads for batch creative creation. Accepted file types include images (JPEG, PNG, GIF), videos (MP4, WebM), and audio (MP3, WAV, OGG). |
Creative metadata
creativeName string | Creative name. | ||||||||||||||||||||||||||||
externalCreativeId string | External creative ID. | ||||||||||||||||||||||||||||
platformCreativeTypeId integer | Creative type ID. | ||||||||||||||||||||||||||||
creativeSourceType string | Creative source type Supported values: HTML, FILE, URL, VAST_URL, VAST_XML, DAAST_URL, DAAST_XML. | ||||||||||||||||||||||||||||
creativeSource string | Creative source. | ||||||||||||||||||||||||||||
clickUrl string | Click URL. Not allowed for HTML creatives (add click tracking inside the HTML instead). | ||||||||||||||||||||||||||||
subMediaType integer | Subcategory of media type (for native video creatives). | ||||||||||||||||||||||||||||
htmlDetails object | HTML creative details. | ||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
creativeWidth integer | Creative width (px). |
creativeHeight integer | Creative height (px). |
imageDetails object
imageDetails object properties
pixelUrl string | Pixel URL. |
creativeWidth integer | Creative width (px). |
creativeHeight integer | Creative height (px). |
audioDetails object
audioDetails object properties
duration integer | Audio duration (s). | ||||||||||||
customTracking object | Custom tracking details. | ||||||||||||
| |||||||||||||
startUrl string | Start URL. |
firstQuartileUrl string | First quartile URL. |
midPointUrl string | Midpoint URL. |
thirdQuartileUrl string | Third quartile URL. |
completeUrl string | Complete URL. |
impressionUrl string | Impression URL. |
logoSource string
videoDetails object
videoDetails object properties
creativeWidth integer | Creative width (px). | ||||||||||||
creativeHeight integer | Creative height (px). | ||||||||||||
duration integer | Video duration (s). | ||||||||||||
customTracking object | Custom tracking details. | ||||||||||||
| |||||||||||||
startUrl string | Start URL. |
firstQuartileUrl string | First quartile URL. |
midPointUrl string | Midpoint URL. |
thirdQuartileUrl string | Third quartile URL. |
completeUrl string | Complete URL. |
impressionUrl string | Impression URL. |
nativeDetails object
nativeDetails object properties
title string | Title. | ||||||
description string | Description. | ||||||
cta object | Call-to-Action object details (for native video). | ||||||
| |||||||
id integer | CTA ID. |
ctaText string | CTA display text. |
defaultCta boolean | Default CTA for associated creative. |
brandName string
brandIconSourceUrl string
brandIconHeight integer
brandIconWidth integer
thumbnailSourceUrl string
thumbnailHeight integer
thumbnailWidth integer
Response properties
success boolean | true when the request was processed, even if every creative in it failed. Check failedData. | |||||
data object | Upload results, keyed by the IDs you used in creativeRequest (for example, I001). | |||||
| ||||||
successData object | Map of each request ID that succeeded to the new creative ID, as a string (for example, "I001": "803406"). Empty if no creative was created. |
failedData object | Map of each request ID that failed to its error message. Empty if every creative was created. |
POST /api/v3/crt/creatives HTTP/1.1
Host: https://api.iqm.com
Authorization: Bearer YOUR_TOKEN_HERE
X-IAA-OW-ID: 12345
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="creativeRequest"
{"I001":{"creativeName":"Summer Sale Banner","externalCreativeId":"campaign-2024-001","platformCreativeTypeId":11,"creativeSourceType":"FILE","creativeSource":"summer-banner.jpg","clickUrl":"https://www.example.com/summer-sale","imageDetails":{"pixelUrl":"https://tracker.example.com/pixel","creativeWidth":728,"creativeHeight":90}}}
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="creativeFiles"; filename="summer-banner.jpg"
Content-Type: image/jpeg
[Binary image data]
------WebKitFormBoundary7MA4YWxkTrZu0gW--
{
"success": true,
"data": {
"successData": {
"I001": "803406"
},
"failedData": {}
}
}
More responses
{
"success": true,
"data": {
"successData": {},
"failedData": {
"I001": "Creative file missing. Please attach the required file."
}
}
}
{
"success": false,
"errorObjects": [
{
"error": "All entries in the request must have the same platformCreativeTypeId.",
"field": "creativeRequest"
}
]
}
Step 4: Check creative status
GETThis API checks a creative's status. Use the creative ID returned in successData in the previous step (a string, keyed by the ID you gave the creative in creativeRequest) to get its details.
The creative details endpoint returns a status ID (highlighted in code sample). A new creative starts with status ID 1 (pending) and changes to 2 (running) once it is approved.
| Path parameter | |
|---|---|
creativeId integer | Creative ID. |
- JSON
{
"success": true,
"data": {
"clickUrl": "https://www.example.com/summer-sale",
"createdAt": 1793036350122,
"creativeCardSource": "https://d3jme5si7t6llb.cloudfront.net/Screenshots/204851/278x220/rvNRZ1A_1793036350122.jpg",
"creativeId": 803406,
"creativeName": "Summer Sale Banner",
"creativePreviewFlag": 1,
"creativeSource": "https://d3jme5si7t6llb.cloudfront.net/image/204851/rvNRZ1A_1793036350122.jpg",
"creativeSourceType": "file",
"creativeStatusId": 1,
"externalCreativeId": "campaign-2024-001",
"imageDetails": {
"pixelUrls": [
"https://tracker.example.com/pixel"
],
"pixelUrl": "https://tracker.example.com/pixel",
"creativeWidth": 728,
"creativeHeight": 90
},
"isMetadataFaulty": false,
"modifiedAt": "2026-10-26T17:39:14.334Z",
"organizationDetails": {
"owId": 204851,
"organizationName": "Example Organization"
},
"platformCreativeTypeId": 11,
"rtbCreativeTypeId": 1,
"userDetails": {
"uowId": 291477,
"userName": "Jane Smith",
"userEmail": "user@example.com"
}
}
}