Retrieve the account

This endpoint is used to retrieve a user's core account details. The user's account details are returned in JSON format, including email_address, tracking_id and email_verified. If the request lacks valid authentication credentials, a 401 Unauthorized response is returned.

SecurityCookieBlaizeSession or JwtQuery or JwtHeaderXBlaizeJwt or JwtHeaderXZephrJwt or JwtBearer or JwtCookie
Request
header Parameters
cookie
required
string

The cookie header to retrieve a user's session details and ascertain whether the user is authenticated or not. If this is not provided, the user will be unauthorized by default.

Example: blaize_session=fac49a6-e423-4ac1-b0ad-d6789793444545
authorization
required
string

The oauth2 authorization header to retrieve a user's account details and ascertain whether the user is authenticated or not. If this is not provided, the user will be unauthorized by default.

Example: Authorization=bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
Responses
200

OK. The user account was successfully retrieved.

401

Unauthorized. The user lacks authentication, preventing retrieval of account details due to either an invalid blaize_session cookie header in the request or its absence.

404

Account not found. The request included a valid blaize_session cookie header, but no account was located matching the provided authentication credentials.

get/blaize/account
Response samples
application/json
{
  • "identifiers": {
    },
  • "tracking_id": "5fac49a6-e423-4ac1-b0ad-d678979344222",
  • "email_verified": true
}