CLIF provides three authentication-related endpoints. None of them require prior authentication — they are the entry points for establishing your identity with a CLIF server. After registering and obtaining aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/WyattBrashear/CLIF/llms.txt
Use this file to discover all available pages before exploring further.
user_id, include it along with your pass_hash in every protected request.
POST /register
Create a new user account on the server. The server assigns a uniqueuser_id and sets a default storage allocation based on the server’s CLIF.json configuration.
Send the password as a SHA-256 hex digest. See the API overview for how to compute it.
Request parameters
The display name for the new account. Must be unique on the server.
SHA-256 hex digest of the user’s plaintext password.
Response fields
"success" when the account is created."User Created" on success.The server-assigned unique identifier for the new user. Store this — you will need it for all authenticated requests.
Example
Success response
POST /authenticate
Verify that auser_id and pass_hash pair is valid. Use this to test credentials before making a series of requests, or to confirm a user’s identity in an integration.
Request parameters
The user’s unique identifier, returned at registration.
SHA-256 hex digest of the user’s password.
Response fields
"success" if credentials are valid, "fail" if not."Authentication Valid!" on success. "Authentication FailureI!" on failure (note the typo in the server source).Example
POST /translate_uname
Resolve a username string to the correspondinguser_id. Use this when you know a user’s display name but need their user_id to make authenticated requests on their behalf, or to look up your own user_id from a known username.
This endpoint does not require authentication. The
user_id is returned in the message field of the response.Request parameters
The display name of the user to look up.
Response fields
"success" when the username is found.The
user_id string corresponding to the given username.Example
Success response