Skip to main content
GET
/
assets
Get available assets
curl --request GET \
  --url https://v2.firstpromoter.com/api/v2/affiliate/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": "<string>",
    "url": "<string>",
    "thumbnail_url": "<string>",
    "uploading": true,
    "category": "<string>",
    "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"

Response

Successful operation

id
integer

ID of the asset

name
string

Name of the asset

allowed_campaign_ids
integer[]

List of allowed campaign IDs for the asset

details
object

Details about the asset

content
string | null

Content of the asset

landing_page_url
string | null

Landing page URL associated with the asset

asset_type
string

Type of the asset (e.g., document, image)

url
string

URL of the asset

thumbnail_url
string | null

URL of the thumbnail image (if applicable)

uploading
boolean

Indicates if the asset is currently being uploaded

category
string | null

Category of the asset

allowed_campaigns
object[]

List of allowed campaigns for the asset

I