Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Daniel-Stojanovski/finkiopendesk/llms.txt

Use this file to discover all available pages before exploring further.

Returns the full profile of the currently authenticated user. The server extracts the user’s UUID from the JWT’s subject claim and looks up the corresponding record, including any associated study program. This endpoint is the primary way for a client to resolve “who am I?” after obtaining a login token.
Authentication is required. Include a valid JWT login token in the Authorization header as Bearer <token>.

Request

GET https://finkiopendesk-be.onrender.com/auth/user
Authorization: Bearer <token>
Authorization
string
required
A valid JWT login token in the format Bearer <token>.

Response

Returns a User object. The password field is excluded from all API responses (WRITE_ONLY access).
userId
string
The user’s unique identifier (UUID v4).
email
string
The user’s email address.
student
boolean
true if the account was registered via the student flow (POST /auth/students/create), false for general user accounts.
enabled
boolean
true if the account has been activated and is allowed to authenticate. Student accounts are set to true after successful activation.
selectedProgram
object
The study program currently associated with the user’s account. null if no program has been selected.

Example

curl -X GET \
  "https://finkiopendesk-be.onrender.com/auth/user" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJhMWIy..."

Managing the user’s study program

Two additional authenticated endpoints let you associate or disassociate a study program with the current user.

POST /auth/user/program/

Sets the user’s selected study program.
POST https://finkiopendesk-be.onrender.com/auth/user/program/{programId}
Authorization: Bearer <token>
programId
string
required
The identifier of the program to associate with the user (e.g., CS, SE).
Returns 200 OK with an empty body on success.
curl -X POST \
  "https://finkiopendesk-be.onrender.com/auth/user/program/CS" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJhMWIy..."

DELETE /auth/user/program

Removes the user’s current program association. After this call, selectedProgram will be null on subsequent GET /auth/user responses.
DELETE https://finkiopendesk-be.onrender.com/auth/user/program
Authorization: Bearer <token>
Returns 200 OK with an empty body on success.
curl -X DELETE \
  "https://finkiopendesk-be.onrender.com/auth/user/program" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJhMWIy..."

Build docs developers (and LLMs) love