The company’s SCIM tokens
const url = 'https://beta-api.plune.ai/v1/companies/example/scim/tokens';const options = {method: 'GET', headers: {cookie: 'plune_session=<plune_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://beta-api.plune.ai/v1/companies/example/scim/tokens \ --cookie plune_session=<plune_session>Live and ended, oldest first; never a value. The company owner only, with the session. A company without Enterprise in active or grace is refused 403 enterprise_required; it loses nothing and nobody is switched off.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Responses
Section titled “ Responses ”The tokens
object
A SCIM token of the company: never the value, never its hash.
object
The non-secret start of the value.
The last request the directory made with it; null before the first. Written at most once a minute, so it can be up to a minute behind.
What the directory has done in the company.
object
People the directory has in the company right now: its switched-on links whose person is still a member of the company and not in the Bin. Someone removed by hand or deleted is not counted; someone who was a member before the directory linked them is.
Example
{ "tokens": [ { "prefix": "plune_scim_Ab12Cd" } ]}No session
object
Example generated
{ "error": "example"}Not the owner, or no Enterprise (code: enterprise_required)
object
Example generated
{ "error": "example"}A company the caller is not in
object
Example generated
{ "error": "example"}