sessions
Sessions

Create user session (log in)

Changed on

Create user session (log in)

post/sessions

Request

  • Base URL
    https://app.files.com/api/rest/v1
  • URL
    https://app.files.com/api/rest/v1/sessions
  • Auth
    none declared

Request body multipart/form-data

usernamestring

Username to sign in as

passwordstring

Password for sign in

otpstring

If this user has a 2FA device, provide its OTP or code here.

partial_session_idstring

Identifier for a partially-completed login

Example request

{
  "username": "username",
  "password": "password",
  "otp": "123456"
}

Response

The Sessions object.

idstring

Session ID

languagestring

Session language

read_onlyboolean

Is this session read only?

sftp_insecure_ciphersboolean

Are insecure SFTP ciphers allowed for this user? (If this is set to true, the site administrator has signaled that it is ok to use less secure SSH ciphers for this user.)

Example response

{
  "id": "60525f92e859c4c3d74cb02fd176b1525901b525",
  "language": "en",
  "read_only": true
}

Changes