Identity
Authentication and user management
Authorizations
Body
usernamestringRequired
Username for authentication
passwordstringRequired
Password for authentication
Responses
200
Successful login
400
Bad request
401
Unauthorized
post
/v1/loginPOST /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
}Authorizations
Responses
200
Current user information
401
Unauthorized
get
/v1/meGET /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