Accounts API

post
Query parameters
organizationCodestringOptional
emailstringOptional
impersonatorOrganizationCodestringOptional
impersonatorUserEmailstringOptional
Responses
chevron-right
400

Bad Request

stringOptional
post
/api/accounts/cookies/login
400

Bad Request

post
Responses
post
/api/accounts/cookies/logout
200

OK

No content

Creates a new authentication cookie with the specified name and lifetime using the raw request body as the cookie value.

post

In contrast to security/cookies/generate endpoint, this endpoint makes no assumptions about the request body. This means you can POST whatever cookie name and cookie value you want (encoded/escaped or not) and this method tries to create a new cookie for you. This is useful for testing the behaviour of the API when it receives unexpected (or corrupted) cookie tokens. Please note this endpoint is available in localhost environments only!

Query parameters
namestringOptional

The name of the cookie to create. If not provided, uses the default cookie name from API configuration settings.

lifetimeinteger · int32Optional

The lifetime of the cookie in seconds. If not provided, uses the default lifetime from API configuration settings.

Responses
chevron-right
400

Bad Request

stringOptional
post
/api/accounts/cookies/create
400

Bad Request

Decodes and deserializes a cookie token from the request body.

post
Responses
post
/api/accounts/cookies/decode
200

OK

No content

Generates a new authentication cookie using the provided token from the request body.

post
Responses
chevron-right
400

Bad Request

stringOptional
post
/api/accounts/cookies/generate
400

Bad Request

Introspects the current authentication cookie and returns detailed information about the authentication and authorization status.

get
Authorizations
InSite.WebTokenstringRequired
Responses
get
/api/accounts/cookies/introspect
200

OK

No content

Validates a cookie token from the request body without setting it as an authentication cookie.

post
Responses
chevron-right
400

Bad Request

stringOptional
post
/api/accounts/cookies/validate
400

Bad Request

post
Authorizations
BearerstringRequired
Path parameters
languagestringRequired
Responses
post
/api/accounts/cookies/change-language/{language}
200

OK

No content

post
Authorizations
BearerstringRequired
Path parameters
themestringRequired
Responses
post
/api/accounts/cookies/change-theme/{theme}
200

OK

No content

post
Authorizations
BearerstringRequired
Responses
post
/api/accounts/cookies/refresh-session
200

OK

No content

post
Responses
post
/api/accounts/passwords/hash
200

OK

Generates a new client secret for the authenticated user, replacing any existing secret.

post
Authorizations
BearerstringRequired
Query parameters
expiryinteger · int32Optional

The number of days until the secret expires. If omitted, the default is assumed (90 days).

Responses
chevron-right
400

Bad Request

stringOptional
post
/api/accounts/secrets/generate
400

Bad Request

get
Authorizations
SecretstringRequired
Responses
get
/api/accounts/secrets/introspect
200

OK

No content

post
Body
DebugbooleanOptional
PagingbooleanOptional
Secretstring · nullableOptional
Lifetimeinteger · int32 · nullableOptional
Organizationstring · uuid · nullableOptional
Agentstring · uuid · nullableOptional
Subjectstring · uuid · nullableOptional
Responses
post
/api/accounts/tokens/generate
401

Unauthorized

get
Authorizations
BearerstringRequired
Responses
get
/api/accounts/tokens/introspect
200

OK

post
Responses
post
/api/accounts/tokens/validate
200

OK

Last updated

Was this helpful?