ADNUNTIUS
Search…
/assets

GET

A GET request can always be filtered by the get parameters defined in the introduction section of the api documentation.
You must provide an id and/or creative-id to the assets endpoint when performing POST or GET
Example get request of a single asset:
1
GET https://api.adnuntius.com/api/v1/assets/<creative-id>/<id>?context=<context>
Copied!
Example get request of all the assets for a creative:
1
GET https://api.adnuntius.com/api/v1/assets/<creative-id>?context=<context>
Copied!
in order to see HIDDEN objects you will need to send includeHidden=trueas a parameter to the GET query

POST

Example POST object:
1
{
2
"objectState": "ACTIVE",
3
"network": { "id": "winning" },
4
"mimeType": "IMAGE_JPEG",
5
"fileName": "Panorama.jpg",
6
"cdnId": "//assets.adnuntius.com/aO59MDnCKaLBQNA0G0DUCc7nj8wJA0e149OPTkQCww8.jpg",
7
"primaryHtmlAsset": false,
8
"htmlUrls": {},
9
"fileSizeBytes": 71561,
10
"width": 980,
11
"height": 240,
12
"url": "/api/v1/assets/85y1jrfyx3bmpm1h/skqjv5r2w5fjwmx2"
13
}
Copied!
Example node.js code for uploading a file to create a new Asset
1
const fs = require("fs");
2
const fetch = require("node-fetch");
3
const FormData = require("form-data");
4
5
const form = new FormData();
6
const filePath = "./myFile.png";
7
form.append("file", fs.createReadStream(filePath));
8
9
const authToken = "my auth token"; // obtained from the authentication process
10
const creativeId = "sdnkrn7wcdnbpyy5"; // must be the creative ID of an existing creative
11
const assetId = "myNewAssetId";
12
const networkId = "myNetworkId";
13
fetch('https://api.adnuntius.com/api/v1/assets/' + creativeId + '/' + assetId + '?context=' + networkId + '&auth_token=' + authToken, {
14
method: 'POST',
15
body: form
16
});
Copied!
Last modified 2mo ago
Copy link
Contents
GET
POST