Skip to main content

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:

POST
GET
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​

Before you begin​

To upload a creative, the following are required:

  1. An account on the IQM platform
    • See Before you begin to create an account and request a Client ID and Client Secret
  2. Image, video, audio, HTML, VAST, DAAST, CSV, or XLSX file to upload creative
info

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.

  1. Log in
    • Optional if you have already logged in and have a token
  2. Request creative types
    • Optional if you already know supported/desired types
  3. Upload creative file
  4. Check creative status

Step 1: Log in​

POST

To 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.
Request sample
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>'
Response 200
{
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIn0...",
"refresh_token": "eyJhbGciOiJIUzUxMiIsInR5cCIgOiAiSldUIn0...",
"scope": "read write",
"token_type": "bearer",
"expires_in": 86399
}
More responses
Response 401
{
"success": false,
"errorObjects": [
{
"error": "Bad Credentials or invalid grant type"
}
]
}
Response 403
{
"error": "Client details are not provided."
}

Step 2: Request creative types​

GET

To 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.

Response 200
{
"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
Response 500
{
"statusCode": 500,
"responseObject": {
"errorMsg": "Internal server error",
"errorCode": 500
}
}

Step 3: Upload a creative​

POST

Once 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
creativeRequest
form 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.
creativeFiles
multipart/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.
Supported values
0All
11Image
13HTML
14Video
15Native
17Audio
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.
htmlDetails object properties
creativeWidth
integer
Creative width (px).
creativeHeight
integer
Creative height (px).
imageDetails
object
Image creative details.
imageDetails object properties
pixelUrl
string
Pixel URL.
creativeWidth
integer
Creative width (px).
creativeHeight
integer
Creative height (px).
audioDetails
object
Audio creative details.
audioDetails object properties
duration
integer
Audio duration (s).
customTracking
object
Custom tracking details.
customTracking object properties
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
Logo source.
videoDetails
object
Video creative details.
videoDetails object properties
creativeWidth
integer
Creative width (px).
creativeHeight
integer
Creative height (px).
duration
integer
Video duration (s).
customTracking
object
Custom tracking details.
customTracking object properties
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
Native creative details.
nativeDetails object properties
title
string
Title.
description
string
Description.
cta
object
Call-to-Action object details (for native video).
cta object properties
id
integer
CTA ID.
ctaText
string
CTA display text.
defaultCta
boolean
Default CTA for associated creative.
brandName
string
Brand name.
brandIconSourceUrl
string
Brand icon source URL.
brandIconHeight
integer
Brand icon height (px).
brandIconWidth
integer
Brand icon width (px).
thumbnailSourceUrl
string
Thumbnail source URL (for native video).
thumbnailHeight
integer
Thumbnail height (px, for native video).
thumbnailWidth
integer
Thumbnail width (px, for native video).

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).
data object properties
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--
curl -X POST https://api.iqm.com/api/v3/crt/creatives \
-H "Authorization: Bearer YOUR_TOKEN_HERE" \
-H "X-IAA-OW-ID: 12345" \
-F '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}}}' \
-F 'creativeFiles=@summer-banner.jpg'
curl -X POST https://api.iqm.com/api/v3/crt/creatives \
-H "Authorization: Bearer YOUR_TOKEN_HERE" \
-H "X-IAA-OW-ID: 12345" \
-F 'creativeRequest={"H001":{"creativeName":"Interactive HTML Ad","platformCreativeTypeId":13,"creativeSourceType":"HTML","creativeSource":"<a href=\"https://example.com\"><img src=\"https://cdn.example.com/ad.jpg\"></a>","htmlDetails":{"creativeWidth":300,"creativeHeight":250}}}'
Response 200
{
"success": true,
"data": {
"successData": {
"I001": "803406"
},
"failedData": {}
}
}
More responses
Response 200 (creative failed)
{
"success": true,
"data": {
"successData": {},
"failedData": {
"I001": "Creative file missing. Please attach the required file."
}
}
}
Response 422
{
"success": false,
"errorObjects": [
{
"error": "All entries in the request must have the same platformCreativeTypeId.",
"field": "creativeRequest"
}
]
}

Step 4: Check creative status​

GET

This 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.
Response 200
{
"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"
}
}
}
Have a question?
Was this page helpful?