Projects

Get api tokens for project.

Changed on

Returns the project-specific API tokens that have been created for this project.

get/api/admin/projects/{projectId}/api-tokens

Request

  • Base URL
    https://app.unleash-instance.example.com
  • URL
    https://app.unleash-instance.example.com/api/admin/projects/{projectId}/api-tokens
  • Auth
    • API key in header Authorization
    • or HTTP bearer

Path parameters

projectIdstring required

Response

apiTokensSchema

Example response

{
  "tokens": [
    {
      "secret": "project:environment.xyzrandomstring",
      "tokenName": "some-user",
      "type": "client",
      "environment": "development",
      "project": "developerexperience",
      "projects": [
        "developerexperience",
        "enterprisegrowth"
      ],
      "expiresAt": "2023-04-19T08:15:14.000Z",
      "createdAt": "2023-04-19T08:15:14.000Z",
      "seenAt": "2023-04-19T08:15:14.000Z",
      "alias": "randomid-or-some-alias",
      "secure": true
    }
  ]
}

Changes

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became optional for the status

    • info

      added the optional property // to the response with the status