{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-upload-media-request-schema.json",
  "title": "Upload media request",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-media-storage-api-api-openapi.yml#/components/schemas/UploadMediaRequest",
  "properties": {
    "media_name": {
      "description": "The unique identifier of a file.",
      "type": "string"
    },
    "media_url": {
      "description": "The URL where the media to be stored in Telnyx network is currently hosted. The maximum allowed size is 20 MB.",
      "type": "string"
    },
    "ttl_secs": {
      "description": "The number of seconds after which the media resource will be deleted, defaults to 2 days. The maximum allowed vale is 630720000, which translates to 20 years.",
      "type": "integer"
    }
  },
  "required": [
    "media_url"
  ],
  "type": "object"
}