MeMy profile

My profile

The current user's profile (from the session).

curl -X GET "https://policy-engine-rest.ezig.workers.dev/api/v1/me/profile" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "id": "example_string",
  "email": "user@example.com",
  "role": "example_string",
  "name": "John Doe",
  "username": "John Doe",
  "image": "example_string",
  "color": "#000",
  "emoji": "🦊",
  "createdAt": "2026-07-02T11:25:15.134000Z",
  "updatedAt": "2026-07-02T11:25:15.134000Z"
}
GET
/api/v1/me/profile
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Session token. Mobile/services. The web uses a cookie.

Session token. Mobile/services. The web uses a cookie.
API Key (cookie: session_token)
session_tokenstring
Required

API key (sent in cookie)

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Session token. Mobile/services. The web uses a cookie.

path
parameterstring
Required

API Key for authentication. Provide your API key in the cookie.

Responses

idstring
Required
emailstring
Required
rolestring
Required
namestring
Required
usernamestring
Required
imagestring
Required

Link to the avatar

colorstring
Required

HEX color

emojistring
Required

Emoji icon

createdAtstring
Required
updatedAtstring
Required