Consumer Session

Inspect the authenticated consumer session and profile.

Get consumer session

Returns the authenticated consumer session.

No parameters required
POSThttp://api.metorial.com/consumer/session
curl -X POST "https://api.metorial.com/consumer/session" \
-H "Authorization: Bearer metorial_sk_..."

Logout consumer session

Revokes the authenticated consumer session.

No parameters required
POSThttp://api.metorial.com/consumer/session/logout
curl -X POST "https://api.metorial.com/consumer/session/logout" \
-H "Authorization: Bearer metorial_sk_..."

Get consumer profile

Returns the authenticated consumer profile.

No parameters required
POSThttp://api.metorial.com/consumer/profile
curl -X POST "https://api.metorial.com/consumer/profile" \
-H "Authorization: Bearer metorial_sk_..."

List consumer profile groups

Returns the effective groups for the authenticated consumer profile.

Query Parameters

limit

NumberOptional

after

StringOptional

before

StringOptional

cursor

StringOptional

order

EnumOptional
POSThttp://api.metorial.com/consumer/profile/groups
curl -X POST "https://api.metorial.com/consumer/profile/groups" \
-H "Authorization: Bearer metorial_sk_..."