Overview
Twilio Assets allows you to upload static files for use with your Twilio project. Instead of managing files on your own servers, take advantage of Twilio’s low-latency hosting for common files like a voicemail greeting audio recording, an company logo for MMS messages, Flex plugins, and more. Read on for more information.
What You Need To Know
New: Console vs API
Twilio's Serverless API includes a new version of Assets that is currently API-only. Files uploaded via the Serverless API are not visible in Console, and conversely, files uploaded via Console are not visisble in the Serverless API. For full details of the new Serverless API, see Functions & Assets (API-only).
Console Asset Types
Console Assets can either be Public, Private or Protected:
Public assets
- Are available over the internet to anyone with the URL.
- Can be up to 25MB in size for each file.
- Allow storage for up to 1000 files total.
Private assets
- Are not available for public access.
- Are packaged with a Function.
- Allow storage for up to 50 files total.
Protected assets
- Are only available via Twilio Code such as Function, Studio Flow, or Flex.
- Can be up to 25MB in size for each file.
-
Allow storage for up to 1000 files total.
Manage Console Assets
Console Assets files can be managed from the Assets page in Console:
- Upload a file: Click the red plus + sign button to add your file, or drag it into the browser window.
-
View a file: The file's URL will be displayed on the Assets page under the PATH heading using the following format:
https://your-runtime-domain.twil.io/assets/filename.extension
This URL can be used anywhere you want to call this file: a Twilio Functions script, a Twilio API request, a TwiML response, etc. -
Delete a file: Assets you no longer need can be removed at any time by clicking the garbage can icon.