Check user and org claim (GET)
Returns whether the signed-in person has a profile, and its name. Send the person's Home sign-in token in the x-home-id-token header; the gateway verifies it and refuses the request with 401 without a valid one. The person is the token's subject: userId is set from it and any userId sent in the query is ignored.
query Parameters
userIdstringSet by the gateway from the verified token's subject (the Home's
sub). Any value the caller sends is dropped.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.x-home-id-tokenstring · requiredThe signed-in person's sign-in token (the ES256
id_tokenissued by the Home). The gateway verifies its signature, issuer, audience and expiry, and takes the person from its subject.
Responses
User check result with optional org claim
existsboolean · required
userIdstringemailstring · emailfirstNamestringlastNamestringorgUristringorgNamestringorgTypestring
Check if user exists (POST)
Checks whether the signed-in person has a profile. Send the person's Home sign-in token in the x-home-id-token header; the gateway verifies it and refuses the request with 401 without a valid one. The person is the token's subject: userId is set from it and any userId sent in the body is ignored.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.x-home-id-tokenstring · requiredThe signed-in person's sign-in token (the ES256
id_tokenissued by the Home). The gateway verifies its signature, issuer, audience and expiry, and takes the person from its subject.
Request Body optional
userIdstringSet by the gateway from the verified token's subject (the Home's
sub). Any value the caller sends is dropped.
Responses
User check result
existsboolean · required
userIdstringemailstring · emailfirstNamestringlastNamestring
