curl --header "Authorization: Bearer ${TFE_TOKEN}" --header "Content-Type: application/vnd.api+json" $TFE_ADDR/api/v2/organizations/$TFE_ORG/workspaces | jq .
You can have the above in a loop, or to get a specific workspace:
# id of the first workspace returned