GET
/api/user/profileAuthenticatedGet my profile
Returns the caller's profile name fields (username, first/middle/last name, display name), read fresh from the database: the auth token payload does not carry them.
operationId
get_api_user_profileAccountAuthentication & permissionsAuthenticated
Any authenticated user
- Accepted credentials
- Auth server session (refresh token cookie)
cookie "refresh_token_<auth_server_app_id>" - Access token (cookie)
cookie "access_token_<auth_server_app_id>" - Access token (Bearer)
Authorization: Bearer <JWT>
- Auth server session (refresh token cookie)
- Who may call
- Any authenticated user
Responses
application/json
UserProfileResponseThe caller's profile name fields; absent fields are unset.
| Property | Type | Description |
|---|---|---|
| success* | true | |
| profile* | object | |
| username | string | minLength: 3maxLength: 32pattern: ^[A-Za-z0-9](?:[A-Za-z0-9._-]*[A-Za-z0-9])?$ |
| first_name | string | minLength: 1maxLength: 64pattern: ^[^\u0000-\u001F\u007F]*$ |
| middle_name | string | minLength: 1maxLength: 64pattern: ^[^\u0000-\u001F\u007F]*$ |
| last_name | string | minLength: 1maxLength: 64pattern: ^[^\u0000-\u001F\u007F]*$ |
| display_name | string | minLength: 1maxLength: 64pattern: ^[^\u0000-\u001F\u007F]*$ |
JSONExample
"success"true
"profile"
"username""string"
"first_name""string"
"middle_name""string"
"last_name""string"
"display_name""string"
Example request
bashcurl
curl -X GET 'https://auth.schemavaults.com/api/user/profile' \
-b 'refresh_token_<auth_server_app_id>=<value>'