Rotate the token of a SCIM connection
Replaces the token of a SCIM connection. The previous token stops working immediately, and the new token is only returned in this response.
A unique entity identifier
^[a-zA-Z0-9_-]+$The unique id of the SCIM connection
Token rotated
A SCIM connection through which an identity provider provisions organization members.
The object type, which is always "scim-connection"
Unique identifier of the SCIM connection
Name of the SCIM connection, shown to organization admins.
Identity provider that provisions members through the SCIM connection.
SCIM base URL to configure in the identity provider
Last characters of the current token, to identify it
Date the current token was created
Date of the last request authenticated with the token
Date of creation
Date of the last update
Bearer token to configure in the identity provider. It can't be retrieved again.
Not Found
POST /v1/orgs/{organizationId}/scim/connections/{scimConnectionId}/token HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"object": "scim-connection",
"id": "text",
"label": "text",
"provider": "okta",
"baseURL": "https://example.com",
"tokenHint": "text",
"tokenCreatedAt": "2026-01-01T00:00:00.000Z",
"lastUsedAt": "2026-01-01T00:00:00.000Z",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z",
"urls": {
"location": "https://example.com"
},
"token": "text"
}Last updated
Was this helpful?