ACME API Documentation logo

Verify Media URL Exists

Verify that the media file exists

POSThttps://api.acme.com/api/media/urlExists
Available on Premium, Business, Enterprise plans.

Verify that the media file exists when uploaded. It should be used in conjunction with the /media/uploadUrl endpoint.

Header Parameters

Authorizationstringrequired
API Key of the Primary Profile.

Format: Authorization: Bearer API_KEY

Verify Media URL Exists

POST https://api.acme.com/api/media/urlExists

Verify that the media file exists when uploaded. It should be used in conjunction with the /media/uploadUrl endpoint. You will also receive the contentType of the media file.

A HEAD request is made to the media URL to verify it exists. Please be sure the hosting provider is not blocking the HEAD request.

Body Parameters

mediaUrlstringrequired

URL of the media to verify exists.

curl \
-H "Authorization: Bearer API_KEY" \
-H 'Content-Type: application/json' \
-d '{"mediaUrl": "https://img.acme.com/012/vid.mp4"}' \
-X POST https://api.acme.com/api/media/urlExists
{
    "status": "success",
    "statusCode": 200,
    "contentType": "image/jpeg"
}