CircleCI-Archived / api-preview-docs

In-progress docs about the pre-release preview of CircleCI API v2
72 stars 39 forks source link

/me results in "you must login first" error #52

Closed ilyapuchka closed 4 years ago

ilyapuchka commented 4 years ago
  1. define New API Token for the project
  2. run export CIRCILECI_TOKEN=<token>
  3. run curl -u ${CIRCLECI_TOKEN}: https://circleci.com/api/v2/me

Result:

{
  "message" : "You must log in first."
}
ilyapuchka commented 4 years ago

The token needs to be PERSONAL TOKEN, not project API token