---
title: "Set the organization egress diagnostic bearer token"
method: PUT
path: "/v1/diagnostics/egress/token"
tags: ["Diagnostics"]
---

# Set the organization egress diagnostic bearer token

`PUT /v1/diagnostics/egress/token`

Stores the synthetic Diagnostics bearer token encrypted for this organization. The token is never returned by the API.

## Response `204`

The diagnostic token was stored.

## Other responses

- `401` — The caller must be signed in.
- `403` — Only workspace owners and super-admins can configure egress diagnostics.

---

[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/revisions/805150503452/schema)
