All GraphQL operations are sent as HTTP POST requests to /query with a JSON body containing query, optional variables, and optional operationName.
Authenticates a user and returns a JWT access token.
LoginInput| Field | Type | Required | Description |
|---|---|---|---|
email |
String | Optional | The user's email address |
password |
String | Optional | The user's password (plain text, hashed server-side) |
LoginResponse| Field | Type | Description |
|---|---|---|
status | Int | HTTP-style status code (e.g. 200) |
accessToken | String | JWT bearer token |
expiry | String | Token expiry timestamp (ISO 8601) |
tokenType | String | Token type, typically Bearer |
lastRefresh | String | Last refresh timestamp (ISO 8601) |
tokenTTL | Int | Token time-to-live in seconds |
Returns the currently authenticated user's profile. Requires a valid JWT bearer token.
User| Field | Type | Required | Description |
|---|---|---|---|
id | ID | Required | Unique user identifier |
email | String | Required | User's email address |
name | String | Optional | User's display name |
picture | String | Optional | URL of user's profile picture |
emailVerified | Boolean | Required | Whether the email has been verified |
Authorization: include the JWT token as an HTTP header:
Authorization: Bearer <accessToken>