---
title: "Get public API token"
method: GET
path: "/workspaces/{workspace_id}/api-token"
tags: ["publicAPI"]
---

# Get public API token

`GET /workspaces/{workspace_id}/api-token`

Retrieves the current Public API token for a partner-managed workspace. If a token already exists it is returned as the raw token value so that the partner can configure it in their integration. If no token exists yet, the platform creates a new one and returns it. Only workspaces owned by the calling partner and not billed via are eligible. The response must be treated as sensitive: tokens are returned only over authenticated Partner API calls .

## Path parameters

- `workspace_id` string, required

## Headers

- `X-TL-Partner-Id` string, required

## Response `200`

Public API token

- PartnerAPIPublicTokenResponse — Response payload for retrieving or rotating a workspace Public API token. Returns the workspace_id and the raw token value, and, for rotation calls, the rotated_at timestamp that indicates when the previous token became invalid.
  - `workspace_id` string, required — Unique identifier for the workspace
  - `token` string, required — Raw Public API token value
  - `rotated_at` string, date-time — Timestamp when the token was rotated and became invalid.

---

[API](https://skmtc.dev/initechsoftware/apis/partner-api.md) · [All operations](https://skmtc.dev/initechsoftware/apis/partner-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/initechsoftware/partner-api/revisions/f5ac60374320/schema)
