Skip to main content
POST
/
upload
/
validate-embed-url
Validate an embed URL
curl --request POST \
  --url https://app.myhero.so/upload/validate-embed-url \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>"
}
'
{
  "url": "<string>",
  "valid": true,
  "message": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://developers.myhero.so/llms.txt

Use this file to discover all available pages before exploring further.

Checks whether the given url is safe and suitable for embedding in the editor. Blocks executable and archive file extensions, follows redirects, and inspects the Content-Type and Content-Disposition headers of the remote resource. Returns { valid: true } on success or { valid: false, message } with the reason for rejection.

Authorizations

Authorization
string
header
required

HERO personal access token

Body

application/json
url
string
required
Minimum string length: 1

Response

200 response

url
string
required
valid
enum<boolean>
required
Available options:
true
message
string
required