Current user
GET
/api/v1/auth/me
const url = 'http://localhost:8080/api/v1/auth/me';const options = {method: 'GET', headers: {cookie: 'brokerium_session=<brokerium_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/api/v1/auth/me \ --cookie brokerium_session=<brokerium_session>Role: viewer.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The authenticated user.
Media typeapplication/json
object
user
required
object
id
required
string
username
required
string
role
required
string
disabled
required
boolean
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Example
{ "user": { "role": "admin" }}Error.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example generated
{ "error": { "code": "example", "message": "example" }}Apache®, Apache Kafka® and Kafka® are either registered trademarks or trademarks of the Apache Software Foundation in the United States and/or other countries. Brokerium is not affiliated with, endorsed by, or sponsored by the Apache Software Foundation.