---
title: "Rotate the SCIM bearer token"
method: POST
path: "/orgs/{orgId}/scim/token/rotate"
tags: ["orgs"]
---

# Rotate the SCIM bearer token

`POST /orgs/{orgId}/scim/token/rotate`

Revokes the current active token and generates a new one. The new plaintext token is returned only once.

## Path parameters

- `orgId` integer, required

## Response `200`

Token rotated

- CreateScimTokenResponse
  - `endpointUrl` string
  - `maskedToken` string
  - `token` string

## Other responses

- `403` — Operation not allowed
- `404` — Feature not enabled, organization not found, or no active token to rotate

---

[API](https://skmtc.net/seqeralabs/apis/seqera-api.md) · [All operations](https://skmtc.net/seqeralabs/apis/seqera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/seqeralabs/seqera-api/revisions/13316c9fe5ff/schema)
