/api/user/tokenReturn an encrypted API token for the authenticated user. GET/api/user/tokenResponse Body200application/json4xxapplication/json2004xx{ "token": "string" }E1000: Invalid request schema{ "error": "E1000: Invalid request schema", "code": 1000, "statusCode": 400 }E1001: Invalid upload optionsE1002: Invalid partial uploadE1003: Partial upload identifier is invalidE1004: Partial upload was not detectedE1005: Partial uploads only support one file fieldE1006: File extension is not allowedE1007: Invalid characters in filenameE1008: Invalid characters in original filenameE1009: Invalid filenameE1010: Unrecognized file mimetypeE1011: File already in folderE1012: File not in folderE1013: File ID is requiredE1014: File with this name already existsE1015: A folder cannot be its own parentE1016: Cannot move folder into one of its descendantsE1019: Invalid actionE1020: Cannot PATCH without an actionE1021: Cannot delete current session, use log out instead.E1022: Invalid settings updateE1023: Invalid setup, no settings found. Run the setup process again before exporting data.E1024: Export is not completedE1025: No files to exportE1026: No files found for the given requestE1027: No files were deleted.E1028: No files were updated.E1029: No ID providedE1030: No providers to deleteE1031: Session not found in logged in sessionsE1032: Invalid tag specifiedE1033: Cannot create tag with the same nameE1034: Tag name already existsE1035: Invalid invite codeE1036: Invites aren't enabledE1037: User registration is disabledE1038: Username already existsE1039: Username is takenE1040: A user with this username already existsE1041: Vanity already existsE1042: Vanity already takenE1043: You can't delete your last OAuth provider without a passwordE1044: Invalid username or passwordE1045: Invalid codeE1046: Missing WebAuthn challenge IDE1047: Missing WebAuthn payloadE1048: Passkey registration timed out, try again laterE1049: Error verifying passkey registrationE1050: Could not verify passkey registrationE1051: Error verifying passkey authenticationE1052: Could not verify passkey authenticationE1053: You don't have TOTP enabledE1054: TOTP is disabledE1055: Password must be a stringE1056: The 'maxBytes' value is requiredE1057: The 'maxFiles' value is requiredE1058: From date must be before to dateE1059: From date must be in the pastE1060: Passkey has legacy registration data and cannot be usedE1061: Invalid multipart/form-data requestE1062: No files in multipart/form-data requestE1063: Already linked to this OAuth providerE1064: Invalid OAuth state parameterE1065: Invalid MIME typeE2000: Invalid login sessionE2001: Invalid tokenE2002: Not logged inE2003: OAuth provider is not configured (or misconfigured)E2004: Invalid login steps (cookie relying on token)E3000: Admin onlyE3001: Metrics are disabledE3002: Folder is not openE3003: Parent folder does not belong to youE3004: Password protectedE3005: Incorrect passwordE3006: Target folder not foundE3007: You cannot assign this roleE3008: You cannot create this roleE3009: You cannot delete this userE3010: You cannot delete yourselfE3011: You do not own this folderE3012: Shortening this URL would exceed your quota of X URLsE3013: You don't have permission to delete the selected filesE3014: You don't have permission to modify the selected filesE3015: Not super adminE3016: OAuth registration is disabledE3017: OAuth login is not allowed for this accountE3018: Invalid access token provided.E4000: File not foundE4001: Folder not foundE4002: Folder or file not foundE4003: Folder or related records not found during deletionE4004: Invite not foundE4005: Invite not found through ID or codeE4006: No files were moved.E4007: Parent folder not foundE4008: Target folder not foundE4009: User not foundE4010: No settings table foundE4011: Thumbnails task not foundE5000: File size exceeds the configured limitE5001: File is too largeE5002: Storage quota exceededE6000: Failed to delete inviteE6001: Failed to fetch version detailsE6002: Failed to rename file in datasourceE6003: There was an error during a healthcheckE6004: Failed to fetch OAuth access tokenE6005: No access token in OAuth responseE6006: No refresh token in OAuth responseE6007: Failed to fetch OAuth userE6008: OAuth provider request failedE6009: Couldn't create user via OAuth profileE6010: The username is already taken by another accountE9000: Bad requestE9001: ForbiddenE9002: Not foundE9004: Internal server error/api/user/stats GETView aggregate statistics for the authenticated user's files and URLs./api/user/token PATCHRefresh the user's underlying token secret and return an updated token and user object.