Identity
Authentication and user management
Last updated
Authentication and user management
Last updated
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 /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"
}
}