Skip to main content

Upload media

POST 
/media

Upload media file to Telnyx so it can be used with other Telnyx services

Request

Body

required

Upload media request

    media_url stringrequired

    The URL where the media to be stored in Telnyx network is currently hosted. The maximum allowed size is 20 MB.

    ttl_secs integer

    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.

    media_name string

    The unique identifier of a file.

Responses

201: A response describing a media resource

default: Unexpected error

Loading...