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

**URL:** <https://discuss.circleci.com/t/not-able-to-use-the-circleci-api-project-not-found/31376>\
**Category:** Build Environment\
**Created:** [July 16, 2019, 1:08pm UTC](https://discuss.circleci.com/t/not-able-to-use-the-circleci-api-project-not-found/31376 "2019-07-16T13:08:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![benyitzhaki](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/benyitzhaki/32/23401_2.png) [@benyitzhaki](https://discuss.circleci.com/u/benyitzhaki)\
**Post date:** [July 16, 2019, 1:08pm UTC](https://discuss.circleci.com/t/not-able-to-use-the-circleci-api-project-not-found/31376/1 "2019-07-16T13:08:50Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![benyitzhaki](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/benyitzhaki/32/23401_2.png) [@benyitzhaki](https://discuss.circleci.com/u/benyitzhaki)\
**Post date:** [July 16, 2019, 1:20pm UTC](https://discuss.circleci.com/t/not-able-to-use-the-circleci-api-project-not-found/31376/2 "2019-07-16T13:20:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [July 26, 2019, 1:32pm UTC](https://discuss.circleci.com/t/not-able-to-use-the-circleci-api-project-not-found/31376/3 "2019-07-26T13:32:30Z")

</div>

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