Question
What is a Worker SID and where can I find it?
Product
Twilio Flex
Environment
legacy Twilio Console
Answer
A Worker SID is a 34-character alphanumeric identifier that begins with the letters WK and can be found in the following places:
- Twilio Console
- REST API
Where to find a Worker SID in the Twilio Console?
A Worker SID can be found in the Twilio Console by clicking on TaskRouter --> Workspaces --> [Workspace Name] --> Workers in the sidebar.
Where to find a Worker SID with the REST API?
Multiple Workers can be fetched via API "Read multiple Worker resources".
With the Twilio CLI, Workers can be listed with:
twilio api:taskrouter:v1:workspaces:workers:list \
--workspace-sid WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaAnd filtered by name with:
twilio api:taskrouter:v1:workspaces:workers:list \
--workspace-sid WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \
--target-workers-expression "name IN ['Alice','Bob','Connie','David']"