Identity

Authentication and user management

Login to the API

post
Authorizations
Body
usernamestringRequired

Username for authentication

passwordstringRequired

Password for authentication

Responses
200

Successful login

post
/v1/login
POST /v1/login HTTP/1.1
Host: connect2.tsanet.org
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 37

{
  "username": "text",
  "password": "text"
}
{
  "accessToken": "text",
  "tokenType": "text",
  "expiresIn": 1
}

Get current user information

get
Authorizations
Responses
200

Current user information

get
/v1/me
GET /v1/me HTTP/1.1
Host: connect2.tsanet.org
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "company": {
    "id": 1,
    "name": "text",
    "description": "text",
    "domain": "text"
  },
  "user": {
    "id": 1,
    "username": "text",
    "firstName": "text",
    "lastName": "text",
    "email": "text",
    "phone": "text",
    "phoneCountryCode": "text",
    "city": "text"
  }
}

Last updated