Skip to content
Baack

Client Context

Representation of the client context metadata to allow callers to understand the current client session state. The client context may be using a regular web session (in the case of your client accessing content via a logged in user session), a bearer token either from a secure server to server context or a bearer token from an insecure browser client. The response JSON will let you understand your session state in order to trigger experiences like logging in a user to allow them to use client features like the Editor or Tasks clients.

Browse the docs

Endpoints

  • GET/n/v1/clientcontext/{urn}

    Client context provides state information for the request context which can be useful for directing interactions

    Responses

    200 OK
    returns Client ContextREAD_SUCCESS
    404 Not found
    returns ErrorNOT_FOUND
    curl -H "Authorization: Bearer $BAACK_API_TOKEN" \
      https://api.baack.co/n/v1/clientcontext/{urn}

Fields

Client Context fields
FieldTypeDescription
hasBearerboolean
identityIdentity
hasSessionboolean
clientAPI Client
companyCompany
loginIframeSrcstring (uri)
userUser

User

Representation of a session user returned in contexts like the API client context when user based authentication is being used

Fields

User fields
FieldTypeDescription
urnstring (uuid)
rolestring

One of: ANONYMOUS, DEFAULT, COMMENTER, EDITOR, PUBLISHER, ADMIN, SUPER

statusstring

One of: UNVERIFIED, VERIFIED, MODERATED

Used by: Client Context