Back to top

Sessions

Session Management

Destroy my current session
/session

Destroy my current session.

  • Response  204   no content
Log in
/sessions

Log in.

  • Parameters
  • login
    string  (required) in query

    login

    password
    string  (required) in query

    password

  • Response  201   created
  • {
    	"id": "string",
    	"token": "string",
    	"expires_at": "string",
    	"created_at": "string",
    	"updated_at": "string",
    	"description": "string",
    	"user": {
    		"href": "string"
    	}
    } 
  • Response  401   unauthorized
  • Response  404   not found
  • Response  412   precondition failed
  • Response  422   unprocessable entity
  • Response  424   failed dependency
Delete a specific session
/sessions

Deletes a session specified by id.

  • Parameters
  • id
    string  (required) in path

    Session UUID

  • Response  204   no content
  • Response  401   unauthorized
  • Response  404   not found
Retrieve all session tokens for current user
GET
/sessions

Returns all session tokens for the current user.

  • Parameters
  • include
    string in query

    related attributes to include

  •  
  • Response Body Show Hide
  • Request URL Show Hide
  • cURL Show Hide
  • Response  200   ok
  • {
    	"sessions": [
    		{
    			"id": "string",
    			"token": "string",
    			"expires_at": "string",
    			"created_at": "string",
    			"updated_at": "string",
    			"description": "string",
    			"user": {
    				"href": "string"
    			}
    		}
    	]
    } 
  • Response  401   unauthorized
  • Response  404   not found