Files
lincodex/api/core/routes/identity_me.yml
T

27 lines
1.1 KiB
YAML

get:
operationId: GetCurrentAccount
summary: Read the account of the current session.
description: |-
Requires the session cookie. The account comes from the session, never from a request parameter. The client uses `scenario` and `onboarding_step` to return the user to the unfinished onboarding step. A missing, unknown, expired, or revoked session answers 401 unauthenticated. An unverified account never has a session, because login answers 403 email_not_verified for it, so this operation also answers 401 for such an account.
security:
- sessionCookie: []
tags:
- identity
responses:
"200":
description: The current account.
headers:
Cache-Control:
$ref: ../components/headers.yml#/CacheControlNoStore
content:
application/json:
schema:
$ref: ../components/schemas.yml#/Account
examples:
candidate:
$ref: ../components/examples.yml#/CandidateAccount
"401":
$ref: ../components/responses.yml#/Unauthenticated
default:
$ref: ../components/responses.yml#/Problem