1 get:
2 operationId: GetUsersMe
3 summary: Get Logged-In User
4 description: Retrieve the logged-in user's details.
5 x-authenticated: true
6 parameters:
7 - name: fields
8 in: query
9 description: >-
10 Comma-separated fields that should be included in the returned data. if
11 a field is prefixed with `+` it will be added to the default fields,
12 using `-` will remove it from the default fields. without prefix it will
13 replace the entire default fields.
14 required: false
15 schema:
16 type: string
17 title: fields
18 description: >-
19 Comma-separated fields that should be included in the returned data.
20 if a field is prefixed with `+` it will be added to the default
21 fields, using `-` will remove it from the default fields. without
22 prefix it will replace the entire default fields.
23 externalDocs:
24 url: '#select-fields-and-relations'
25 x-codeSamples:
26 - lang: JavaScript
27 label: JS SDK
28 source:
29 $ref: ../code_samples/JavaScript/admin_users_me/get.js
30 - lang: Shell
31 label: cURL
32 source:
33 $ref: ../code_samples/Shell/admin_users_me/get.sh
34 tags:
35 - Users
36 responses:
37 '200':
38 description: OK
39 content:
40 application/json:
41 schema:
42 $ref: ../components/schemas/AdminUserResponse.yaml
43 '400':
44 $ref: ../components/responses/400_error.yaml
45 '401':
46 $ref: ../components/responses/unauthorized.yaml
47 '404':
48 $ref: ../components/responses/not_found_error.yaml
49 '409':
50 $ref: ../components/responses/invalid_state_error.yaml
51 '422':
52 $ref: ../components/responses/invalid_request_error.yaml
53 '500':
54 $ref: ../components/responses/500_error.yaml
55 security:
56 - cookie_auth: []
57 - jwt_token: []