Terraform Enterprise provides three types of API tokens: user, team, and organization. For most operations, a user token is the most appropriate. The intended use for team tokens is by a CI/CD pipeline, to perform plans or applies on a workspace. The organization token is used to manage teams and team membership and create and manage workspaces, but not to create or manage runs within workspaces.
If you’re receiving unexpected responses (like empty data) or 401 or 404 errors from the TFE API, verify that your HTTP Header
Authorization with the value
Bearer <token> is using a user token (generated from your user settings page) rather than an organization token (from the organization tokens page).