GET
/
assets
curl --request GET \
  --url https://v2.firstpromoter.com/api/v2/company/assets \
  --header 'Account-ID: <account-id>' \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": 123,
    "name": "<string>",
    "allowed_campaign_ids": [
      123
    ],
    "details": {
      "file_format": "<string>",
      "file_size": 123,
      "image_size": {
        "width": 123,
        "height": 123
      }
    },
    "content": "<string>",
    "landing_page_url": "<string>",
    "asset_type": "image",
    "url": "<string>",
    "thumbnail_url": "<string>",
    "uploading": true,
    "category": {
      "id": 123,
      "name": "<string>",
      "position": 123
    },
    "allowed_campaigns": [
      {
        "id": 123,
        "name": "<string>",
        "color": "<string>"
      }
    ]
  }
]

Authorizations

Authorization
string
header
required

Access token passed as a Bearer token in the Authorization header

Headers

Account-ID
string
required

Account identifier that specifies which account is making the request

Example:

"acc_123456"

Query Parameters

q
string

Search params. Search by name or url

filters[asset_type]
enum<string>

Asset type

Available options:
image,
document,
link,
text
filters[category_id]

Category ids. Can be Integer or Array of Integers. If params are "not_set" will retrieve the assets that have category_id: null.

filters[campaign_id]

Campaign ids. Can be Integer or Array of Integers

filters[created_at][from]
string

created_at start date

filters[created_at][to]
string

created_at end date

Response

200
application/json

List of assets

The response is of type object[].