Get List Files via API: Error 404 Not Found

We are getting this error with a simple Get request to retrieve Project Files via API.

With some other request, like List Projects or List Branches, we are getting the expected response OK.
I’m sure that the Token is created with all permissions for this project.


Url:
https://api.crowdin.com/api/v2/projects/643376/files?limit=25&offset=0

Method:
GET

Status:
Error

Message:
Not Found

Date/time:
Jan 27, 2024 10:31

IP:
Authorization Type:
Personal Access Token
Token Name:
Token Owner:

Request Details

limit:
25
offset:
0

user_agent:
PostmanRuntime/7.36.1

Errors

{ “error”: { “message”: “Not Found”, “code”: 404 } }

@ocodina-simbioe It seems like you’ve done everything correctly with the token permissions. To better assist you, could you please confirm if you have manager/owner access in the project? This is necessary to access certain endpoints.

Yes, I created the project 2 days ago, and I suppose that I’m the owner.

Dear @ocodina-simbioe , if you use the List Files, then the URL should look like https://api.crowdin.com/api/v2/projects/{projectId}/files

Yes, this is the exact URL reported by me.
But, with an unexpected response “404 Not Found”.

It seems like I don’t have permissions:

If a resource wasn’t selected during the personal access token creation, but you still try to access it with its ID, the 404 Not Found response will be received.

Hi @ocodina-simbioe,

Would you mind creating a new API token and ensuring you selected all needed scopes corresponding to your needs here?

Let us know how it goes!

Solved, mistake by me.
I signed up with a GitHub account, and I suppose that “Get Files List” method/endpoint has no sense.