This is related to (write operations not working):
However, even read-only operations are not working.
I created a Project API token (scope: all
), and when I try to access a pipeline via
curl "https://circleci.com/api/v2/project/${PROJECT_SLUG}/pipeline/1092?circle-token=${CIRCLE_TOKEN}"
I get this response:
{
"message" : "Pipeline not found"
}
Changing CIRCLE_TOKEN to my personal token and leaving everything else unchanged, the request works.
yannCI
#2
Hello @Pasukaru,
Project-specific tokens are currently not supported on API v2, hence the situation you’re describing.
As you already found out, the workaround is to use personal API tokens.
1 Like
harshp
#3
Hello there! Is there a possible timeline when this support will be added?
@yannCI I do not want to use tokens with wide permissions. How do I access the API while limiting the consequences of a compromised token?