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.
Environment
legacy Twilio Console
What You Need To Know
Twilio 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 Twilio Console, and conversely, files uploaded via Twilio Console are not visisble in the Serverless API. For full details of the new Serverless API, see Functions & Assets (API-only).
Twilio Console Asset Types
Twilio 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 Twilio Console Assets
Twilio Console Assets files can be managed from the Assets (Legacy) page in Twilio 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.
Costs
Your first 10,000 requests are free. Then pay as you go pricing is applied, starting at $0.0001 per request.
Limitations
- Twilio Assets cannot be used as an alternative solution to generate TwiML dynamically at runtime. It is recommended to use TwiML Bin with Templates if you would like to serve dynamic TwiML Response. Please see the instructions here How to use templates with TwiML Bins.