Skip to contentSkip to navigationSkip to topbar
Page tools
Useful for sharing or LLM
Accelerate development with AI

On this pageProducts used
Looking for more inspiration?Visit the

Use TaskRouter with Twilio Regions


(new)

Public beta

TaskRouter in IE1, including the API, is available as a public beta release, and the information on this page is subject to change. Some features are not yet implemented, and others may change before Twilio declares TaskRouter in IE1 generally available. Public beta features aren't covered by the Twilio Support Terms or Twilio Service Level Agreement.

TaskRouter in IE1 is not PCI compliant or a HIPAA Eligible Service and should not be used in workflows that are subject to HIPAA or PCI.

You can use TaskRouter in Twilio's Ireland (IE1) Region for EU data residency. TaskRouter in IE1 works the same way it does in US1, with the differences called out on this page. For the complete list of Twilio Regions and product availability, see Regional product and feature availability.


Configure your account for IE1

configure-your-account-for-ie1 page anchor

To use TaskRouter in IE1, complete the following steps.

  1. In the Twilio Console, use the region selector to switch to Ireland (IE1). When you set the Console to the IE1 region, created Workspaces, TaskQueues, and Workers only exist in IE1.

  2. Use Region-specific credentials. Twilio isolates its Regions. When you target IE1, a US1 Auth Token or API key doesn't work. To learn more, see Manage Regional API Credentials.

    1. In the Console, go to API keys & tokens.
    2. Change the region selector to Ireland (IE1).
    3. Find your IE1 Auth Token.
    4. Create API keys with the Console region selector set to Ireland (IE1). Any keys you create only work in IE1.
  3. Send TaskRouter API requests to the dublin edge, using the following base URL.

    ResourceBase URL
    TaskRouter REST APItaskrouter.dublin.ie1.twilio.com

    Using the Twilio CLI, sign in with the IE1 region and the dublin edge.

    twilio login --region ie1 --edge dublin

    Using a Twilio helper library, pass both the region and the edge when you create the client. In Node.js:

    const client = require('twilio')(accountSid, authToken, { region: 'ie1', edge: 'dublin' });

Connect Workers with the TaskRouter JS SDK

connect-workers-with-the-taskrouter-js-sdk page anchor

If your application uses the TaskRouter JS SDK to build a Worker-facing UI, pass region: 'ie1' to both the Worker's Access Token and the Worker client. The JS SDK doesn't take an edge parameter — only region.

1
const token = new AccessToken(accountSid, apiKeySid, apiKeySecret, {
2
identity: workerIdentity,
3
region: 'ie1',
4
});
5
token.addGrant(new AccessToken.TaskRouterGrant({ workerSid, workspaceSid, role: 'worker' }));
const worker = new Worker(token.toJwt(), { region: 'ie1' });

Keep TaskRouter resources in the same Region

keep-taskrouter-resources-in-the-same-region page anchor

A Workspace that runs in IE1 can only reference TaskQueues, Tasks, Workers, and Workflows that also exist in IE1. You can't mix US1 and IE1 resources within a single Workflow.