Skip to content
First requestVisit website ↗
Navigation

Classify a media URL before attaching it to a sequence step

Server-side HEAD (5s timeout, at most 3 redirects) with an SSRF guard. Used by the sequence composer to steer YouTube/Vimeo/Loom watch pages into video-link mode instead of attaching them as MMS.

POST
https://api.channelautomation.com/api/media/validate-url

Authorization

  • BearerAuth
    optional
    HTTP Bearer (JWT)
  • ApiKeyAuth
    optional
    API key in header

Request body JSON required

  • url
    string
    required

Returns

200

Classification result

JSON
  • ok
    optional
    boolean
  • contentType
    optional
    string
    or null
  • bytes
    optional
    number
    or null
  • kind
    optional
    image
    or
    video
    or
    webpage
    or
    unknown
  • provider
    optional
    youtube
    or
    vimeo
    or
    loom
    or
    r2
    or
    other
  • reason
    optional
    string
    or null

400

Invalid or private URL

Type to search…

↑↓ navigate↵ selectEsc close