2026-08-10 20:10:49 -04:00
|
|
|
get:
|
|
|
|
|
tags:
|
|
|
|
|
- Session
|
|
|
|
|
summary: Return the authenticated caller profile
|
|
|
|
|
description: Upserts the caller into users on first request and returns the stored profile used by the SPA session smoke path.
|
|
|
|
|
operationId: get-api-me
|
|
|
|
|
security:
|
2026-09-22 12:39:00 -04:00
|
|
|
- cookieAuth: []
|
2026-08-10 20:10:49 -04:00
|
|
|
responses:
|
|
|
|
|
"200":
|
|
|
|
|
description: Authenticated user profile.
|
|
|
|
|
content:
|
|
|
|
|
application/json:
|
|
|
|
|
schema:
|
|
|
|
|
$ref: ../components/schemas.yaml#/MeResponse
|
|
|
|
|
example:
|
|
|
|
|
id: 11111111-1111-4111-8111-111111111111
|
|
|
|
|
email: admin@seahavenind.com
|
|
|
|
|
name: Dev Admin
|
|
|
|
|
role: admin
|
|
|
|
|
"401":
|
2026-09-22 12:39:00 -04:00
|
|
|
description: Missing or invalid session cookie.
|
2026-08-10 20:10:49 -04:00
|
|
|
content:
|
|
|
|
|
application/json:
|
|
|
|
|
schema:
|
|
|
|
|
$ref: ../components/schemas.yaml#/Error
|
|
|
|
|
example:
|
2026-09-22 12:33:19 -04:00
|
|
|
error:
|
|
|
|
|
code: UNAUTHENTICATED
|
2026-09-22 12:39:00 -04:00
|
|
|
message: Missing id token.
|
2026-09-22 12:33:19 -04:00
|
|
|
correlationId: 11111111-1111-4111-8111-111111111111
|
2026-08-10 20:10:49 -04:00
|
|
|
"409":
|
|
|
|
|
description: Email is already linked to a different Cognito subject.
|
|
|
|
|
content:
|
|
|
|
|
application/json:
|
|
|
|
|
schema:
|
|
|
|
|
$ref: ../components/schemas.yaml#/Error
|
|
|
|
|
example:
|
2026-09-22 12:33:19 -04:00
|
|
|
error:
|
|
|
|
|
code: CONFLICT
|
|
|
|
|
message: Email admin@seahavenind.com is already linked to a different identity.
|
|
|
|
|
correlationId: 11111111-1111-4111-8111-111111111111
|
2026-08-10 20:10:49 -04:00
|
|
|
"404":
|
|
|
|
|
description: Not found.
|
|
|
|
|
content:
|
|
|
|
|
application/json:
|
|
|
|
|
schema:
|
|
|
|
|
$ref: ../components/schemas.yaml#/Error
|
|
|
|
|
example:
|
2026-09-22 12:33:19 -04:00
|
|
|
error:
|
|
|
|
|
code: NOT_FOUND
|
|
|
|
|
message: Not found.
|
|
|
|
|
correlationId: 11111111-1111-4111-8111-111111111111
|