Make a SCIM token
POST
/api/settings/scim-tokens
const url = 'https://forge.example.com/api/settings/scim-tokens';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","days":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://forge.example.com/api/settings/scim-tokens \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "days": 1 }'Takes a name and its life in days, 1 to 366 (366 when left out). Answers the whole token once, in secret, with the address to give the identity provider; it is kept only as a keyed hash and never shown again. Three live tokens at most. Needs a step-up from the last 10 minutes (409 with stepUpNeeded without one). For administrators, never on a support session, and never in the public demo.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
null | string
days
required
null | integer | string format: int32
Example generated
{ "name": "example", "days": 1}Responses
Section titled “Responses”OK
Media typeapplication/json
object
token
required
object
id
required
string format: uuid
name
required
string
lastFour
required
string
createdAt
required
string format: date-time
createdBy
required
null | string
expiresAt
required
string format: date-time
revokedAt
required
null | string format: date-time
revokedBy
required
null | string
lastUsedAt
required
null | string format: date-time
lastUsedAddress
required
null | string
status
required
string
secret
required
string
address
required
string
Example generated
{ "token": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "lastFour": "example", "createdAt": "2026-04-15T12:00:00Z", "createdBy": "example", "expiresAt": "2026-04-15T12:00:00Z", "revokedAt": "2026-04-15T12:00:00Z", "revokedBy": "example", "lastUsedAt": "2026-04-15T12:00:00Z", "lastUsedAddress": "example", "status": "example" }, "secret": "example", "address": "example"}default
Section titled “default”A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.
Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}