Skip to content
Navigation

Get the current session

GET
/auth/session

Read the signed-in user, workspace, project and selected environment.

Authorization

  • browserSession
    optional
    API key in cookie
  • localBrowserSession
    optional
    API key in cookie

Header parameters

  • X-Simplcron-Environment
    optional
    production
    or
    development

    Environment for a browser session. Bearer keys always use their fixed environment.

    default: "production"

Returns

200

Account and selected scope

JSON
  • user
    object
    required
    • id
      string
      required
    • email
      string
      required
      format: email
  • workspace
    object
    required
    • id
      string
      required
    • name
      string
      required
      maxLength: 80 · minLength: 1
  • project
    object
    required
    • id
      string
      required
    • name
      string
      required
      maxLength: 80 · minLength: 1
  • environment
    production
    or
    development
    required

401

Authentication is required
JSON
  • error
    string
    required

403

The credential lacks permission
JSON
  • error
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close