Skip to main content
POST
/
api
/
v1
/
image-assets
Create Image Asset
curl --request POST \
  --url https://api.passentry.com/api/v1/image-assets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "imageAsset": {
    "imageType": "banner",
    "image": "https://example.com/silver_tier_banner.png",
    "name": "Silver tier banner",
    "entityId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "watermark": {
      "color": "dark",
      "position": "bottomLeft"
    }
  }
}
'
{
  "data": {
    "id": "19cb334f9696e64e10e7759f0",
    "type": "imageAsset",
    "attributes": {
      "name": "Silver tier banner",
      "imageType": "banner",
      "processingStatus": "pending",
      "size": {
        "width": 1125,
        "height": 432
      },
      "entityId": "a1b2c3d4",
      "createdAt": "2026-03-01T12:00:00Z",
      "url": "https://cdn.passentry.com/image-assets/99/553085/19cb334f9696e64e10e7759f0.png",
      "watermark": {
        "color": "light",
        "position": "bottomRight"
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
imageAsset
object

Response

Image asset created successfully

data
object