Skip to main content

Hi,

 

I’m testing a token refresh method that uses OAuth to enable the regular execution of processes that were previously handled via personal access tokens(PAT).

Using a PAT for a specific organization account, we can successfully extract data from organization projects and retrieve all of the following:

  • /v1/teams/:team_id/projects
  • /v1/projects/:project_id/files
  • /v1/files/:file_key

 

However, after switching to OAuth, creating an app, and publishing it with the `file_content:read` and `projects:read` scopes enabled, I can only retrieve `/v1/files/:file_key` data. `/projects` list and `/files` list return a "Not Found" error and cannot be retrieved.

According to the documentation, enabling and publishing the "projects:read" scope should grant access. Why are we receiving a 404 error?

 

I changed the team permissions from 'Can edit' to 'Admin', but I'm still getting 404 errors on the `:team_id` and `:project_id` endpoints. Still I can only retrieve the `:file key`.

 

Is there some additional configuration required when retrieving via OAuth, unlike when using a PAT?