RelayAPI
Tools
POST
/v1/tools/validate/media
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://api.relayapi.dev/v1/tools/validate/media" \  -H "Content-Type: application/json" \  -d '{    "url": "http://example.com"  }'
{
  "accessible": true,
  "content_type": "string",
  "size": 0,
  "platform_limits": {
    "twitter": {
      "within_limit": true,
      "max_size": 0
    },
    "instagram": {
      "within_limit": true,
      "max_size": 0
    },
    "facebook": {
      "within_limit": true,
      "max_size": 0
    },
    "linkedin": {
      "within_limit": true,
      "max_size": 0
    },
    "tiktok": {
      "within_limit": true,
      "max_size": 0
    },
    "youtube": {
      "within_limit": true,
      "max_size": 0
    },
    "pinterest": {
      "within_limit": true,
      "max_size": 0
    },
    "reddit": {
      "within_limit": true,
      "max_size": 0
    },
    "bluesky": {
      "within_limit": true,
      "max_size": 0
    },
    "threads": {
      "within_limit": true,
      "max_size": 0
    },
    "telegram": {
      "within_limit": true,
      "max_size": 0
    },
    "snapchat": {
      "within_limit": true,
      "max_size": 0
    },
    "googlebusiness": {
      "within_limit": true,
      "max_size": 0
    },
    "whatsapp": {
      "within_limit": true,
      "max_size": 0
    }
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}