GET/api/user/profileAuthenticated

Get 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_profileAccount

Authentication & permissionsAuthenticated

Any authenticated user

Accepted credentials
Who may call
Any authenticated user

Responses

application/json
UserProfileResponseThe caller's profile name fields; absent fields are unset.
PropertyTypeDescription
success*true
profile*object
usernamestring

minLength: 3maxLength: 32pattern: ^[A-Za-z0-9](?:[A-Za-z0-9._-]*[A-Za-z0-9])?$

first_namestring

minLength: 1maxLength: 64pattern: ^[^\u0000-\u001F\u007F]*$

middle_namestring

minLength: 1maxLength: 64pattern: ^[^\u0000-\u001F\u007F]*$

last_namestring

minLength: 1maxLength: 64pattern: ^[^\u0000-\u001F\u007F]*$

display_namestring

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>'

Other methods on this path