Verify Media URL Exists
Verify that the media file exists
POST
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
AuthorizationstringrequiredVerify 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
mediaUrlstringrequiredURL 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"
}