---
title: "Get deployment environment tokens"
method: GET
path: "/api/v1/deployments/{deploymentId}/environments/{environmentId}/tokens"
tags: ["Environments"]
---

# Get deployment environment tokens

`GET /api/v1/deployments/{deploymentId}/environments/{environmentId}/tokens`

## Path parameters

- `deploymentId` integer, required
- `environmentId` integer, required

## Query parameters

- `offset` integer, nullable
- `limit` integer, nullable
- `after` string
- `first` integer

## Response `200`

- DeploymentEnvironmentTokensListResponse
  - `data` DeploymentEnvironmentToken[], required — Deprecated: use `items` instead. Kept for backward compatibility.
    - `created_at` string, required
    - `expires_at` string, required
    - `security_context` object, required
    - `token` string, required
  - `items` DeploymentEnvironmentToken[], required
    - `created_at` string, required
    - `expires_at` string, required
    - `security_context` object, required
    - `token` string, required
  - `pageInfo` PageInfo
    - `endCursor` string, nullable
    - `hasNextPage` boolean, required
    - `hasPreviousPage` boolean, required
    - `startCursor` string, nullable
  - `pagination` DeploymentsPagination
    - `limit` integer, required
    - `offset` integer, required
    - `total` integer, required

## Changes

- **2026-08-27** `97e151460143` — 6 breaking, 5 info
  - the response property `pagination` became optional for the status `200`
  - added `#/components/schemas/DeploymentsPagination, subschema #2` to the `pagination` response property `oneOf` list for the response status `200`
  - the `pagination` response's property type/format changed from `object`/`` to ``/`` for status `200`
  - removed the required property `pagination/limit` from the response with the `200` status
  - …7 more
- **2026-07-31** `a0c6b1d2ac96` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api/changes/api/v1/deployments/:deploymentId/environments/:environmentId/tokens/get.md)

---

[API](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api.md) · [All operations](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cube-js/cube-cloud-rest-api/revisions/3adb3c5e66ca/schema)
