Auth

Get optional web session state

Returns an anonymous state instead of an authorization error when no valid session is present.

get/auth/session-state

Request

  • Base URL: https://app.openpo.st/api/v1
  • URL: https://app.openpo.st/api/v1/auth/session-state
  • Auth: one of:
    • none
    • HTTP bearer
    • API key in cookie openpost_session

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

authenticatedboolean required

Whether the request has a valid OpenPost session

Example response

{
  "$schema": "https://example.com/api/v1/schemas/AuthSessionStateOutputBody.json",
  "user": {
    "$schema": "https://example.com/api/v1/schemas/UserProfile.json"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.