---
title: "Update Token Details"
method: PUT
path: "/v1/tokens/{tokenID}"
tags: ["Tokens"]
---

# Update Token Details

`PUT /v1/tokens/{tokenID}`

## Request body

- Token
  - `id` string
  - `created_at` integer
  - `updated_at` integer
  - `last_login` string
  - `api_access` 'disabled' | 'enabled' — Enable/disable API access. If disabled, it can only be used to open tunnel connections or forward webhooks but not change any existing configuration
  - `description` string
  - `scopes` TokenScopes
    - `tunnels` string[]
    - `buckets` string[]

## Response `200`

Successful Response

- Token
  - `id` string
  - `created_at` integer
  - `updated_at` integer
  - `last_login` string
  - `api_access` 'disabled' | 'enabled' — Enable/disable API access. If disabled, it can only be used to open tunnel connections or forward webhooks but not change any existing configuration
  - `description` string
  - `scopes` TokenScopes
    - `tunnels` string[]
    - `buckets` string[]

## Other responses

- `400` — Bad request (check response message)
- `404` — Tunnel not found

---

[API](https://skmtc.dev/webhookrelay/apis/webhook-relay.md) · [All operations](https://skmtc.dev/webhookrelay/apis/webhook-relay/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/webhookrelay/webhook-relay/revisions/ce8fd4d3cf19/schema)
