Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

Migrating from Functions(Classic) to the new Functions Editor


(warning)

Warning

If you are using Functions(Classic) or Services and have included your auth token directly instead of using a variable, you must redeploy your classic functions and services when you rotate or update your auth token. Otherwise, those functions and services will fail with a 403 Forbidden error.

The Functions Editor is the all-new, redesigned way to experience Twilio Functions.

New Functions Editor UI.

Functions(Classic) now has its own sub-menu in the Twilio Console, within the Functions product menu.

List view of Functions(Classic).

Advantages

advantages page anchor

Advantages of the new editor include:

  • The new Functions Editor is built on a separate infrastructure from that of Functions(Classic), and utilizes the latest V2 APIs.
  • The ability to access logs live, or via the Logs endpoint at a later date. In Functions(Classic), logs were only available live while in the Console UI.
  • Increased reliability and refined user experience.
  • Easier organization and separation of your Twilio applications via the use of Services .

How to migrate functions from Functions(Classic) to the new editor

how-to-migrate-functions-from-functionsclassic-to-the-new-editor page anchor
  1. Create a Service in the new Functions editor to house your application.
  2. Copy the code from an existing Functions(classic) Function.
  3. Create a Function of the same name within the Service that you just created, using the Add+ button in new Functions Editor.
  4. Paste your code into the new Function, and click Save to save the Function.
  5. Configure any Dependencies for the Service.
  6. Configure any Environment Variables for the Service.
  7. Click Deploy all to deploy your Service and all of its Functions (and Assets, if any).
  8. If you have phone numbers configured to point to your old, Functions(classic) Function, configure the phone numbers to point to the new Function(s) that we just created.
(information)

Info

If you have multiple Twilio applications, create a Service for each application. That way, you can group the Functions that belong to a specific application together under one Service.

(warning)

Warning

Assets(Classic) and new Functions Editor are not compatible. You will need to re-upload any Assets(Classic) as Assets in order to work with them in the new editor.


Rate this page: