Generate an Account-Token with your username and password. This Account-Token is necessary for all the following account operations.
usernamecan be the account e-mail address, the login ID or the contact e-mail address.- Without the device parameters, the server returns the user's single account-wide token (the same token is returned on every call).
- If
platform,device_idanddevice_nameare sent (all three are required together), a separate device token is created and listed under the user's linked devices. Depending on the user's role, connecting desktop (windows,linux,mac),androidoriosclients may be denied.
Two-factor authentication (2FA): If 2FA is activated for your account, send the current one-time password in the header X-SEAFILE-OTP (backup codes are not accepted by the API). If it is missing or invalid, the server responds with 400 and the response header X-Seafile-OTP: required. With X-SEAFILE-2FA-TRUST-DEVICE: 1 the server additionally returns a X-SEAFILE-S2FA response header; sending this value in later requests as X-SEAFILE-S2FA skips the OTP check for the remembered device.
Failed login attempts are counted. Depending on the server configuration, the account is frozen after too many failed attempts.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
429Too many requests (rate limit for anonymous requests)