Skip to content

Retrieves the attributes for an authenticated user in the Zephr user store.

Request

Retrieves the attributes for an authenticated user in the Zephr user store. In addition to the standard authenticators, this endpoint also accepts an OAuth bearer token through the Authorization header. The response will only include publicly accessible user attributes.

Security
CookieBlaizeSession or JwtQuery or JwtHeaderXBlaizeJwt or JwtHeaderXZephrJwt or JwtBearer or JwtCookie
Headers
Cookiestring

The session cookie.

Example:blaize_session=57685913-7365-4dae-a425-1c2c2f72cc0
Authorizationstring

An OAuth access token key that references a previously created OAuth token. Such a token can be created using the '/zephr/oauth2/token' endpoint and is expected to have the scope 'user.profile:update'.

Example:Bearer AYjcyMzY3ZDhiNmJkNTYt0Zi
cURL
curl -i -X GET \
  https://demo-site/blaize/profile \
  -H 'Authorization: Bearer AYjcyMzY3ZDhiNmJkNTYt0Zi' \
  -H 'Cookie: blaize_session=57685913-7365-4dae-a425-1c2c2f72cc0' \
  -b blaize_session=YOUR_API_KEY_HERE

Responses

OK. The user attributes were successfully retrieved. Returns a single layer JSON object of this user's attributes.

Headers
any
Bodyapplication/json
property name*string or number or integer or booleanadditional property
Any of:
string
Response
{ "first_name": "Joe", "surname": "Blow" }