Not able to use the circleci API (project not found)

Hi,
I’m trying to use your API (to cancel redundant jobs), however, no matter what api call i do, i get an error message saying the project was not found. for example:

[GET]

https://circleci.com/api/v1.1/project/github/UserName/ProjectName?circle-token=MyToken&limit=100

(replaced my actual values with UserName, ProjectName and MyToken for obvious reasons. i’m using valid values there in my code).

Response:

{
  "message" : "Project not found"
}

am i doing anything wrong? Tried other API end points, they are all returning me the same response.

thanks

2 Likes

apparently, there are 2 ways to create a token; via settings in the project and via the user’s settings. the latter is the right one (for anyone else that might bump into this issue).

fyi, this is very unclear

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.