---
title: "Get worker connection tokens"
method: POST
path: "/v1/workers/{id}/tokens"
tags: ["Workers"]
---

# Get worker connection tokens

`POST /v1/workers/{id}/tokens`

Returns connection tokens and the resolved OpenWork connect URL for an existing worker.

## Path parameters

- `id` string, typeid, required

## Response `200`

Worker connection tokens returned successfully.

- WorkerTokensResponse
  - `tokens` object, required
    - `owner` string, required
    - `host` string, required
    - `client` string, required
  - `connect` object, nullable, required
    - `openworkUrl` string, nullable, required
    - `workspaceId` string, nullable, required

## Other responses

- `400` — The worker token path parameters were invalid.
- `401` — The caller must be signed in to request worker tokens.
- `404` — The worker could not be found.
- `409` — The worker is not ready to return connection tokens yet.

---

[API](https://skmtc.net/openworklabs/apis/den-api.md) · [All operations](https://skmtc.net/openworklabs/apis/den-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openworklabs/den-api/versions/55ba7d5c7a7b/schema)
