For AI agents and LLMs: a machine-readable index is available at llms.txt. A plain-Markdown version of any documentation page is available by appending .md to its URL.
Skip to main content
User ProfileFetch token by users
TestMu AI
StatusCommunityBlog
User Profile

Fetch token by users

Fetch token by users

GET
/api/user/token
Fetch token by users
curl --request GET \
--url "https://auth.lambdatest.com/api/user/token" \
--header "Authorization: Basic <encoded-value>"
{
"message": "Access Token retrieved successfully",
"token": {
"id": 426312,
"token": "6KVBcEhO9iMdGXnZbxh8Ki19tNEX8GPpYjGPP5ivKHfKMUkF9s",
"user_id": 407868,
"username": "pawan17"
},
"type": "success"
}

Authorizations

Authorizationstringheaderrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Response

application/json

Success

messagestring
tokenobject
token.idnumber
Example: 426312
token.tokenstring
Example: "6KVBcEhO9iMdGXnZbxh8Ki19tNEX8GPpYjGPP5ivKHfKMUkF9s"
token.user_idnumber
Example: 407868
token.usernamestring
Example: "pawan17"
typestring
Fetch token by users
curl --request GET \
--url "https://auth.lambdatest.com/api/user/token" \
--header "Authorization: Basic <encoded-value>"
{
"message": "Access Token retrieved successfully",
"token": {
"id": 426312,
"token": "6KVBcEhO9iMdGXnZbxh8Ki19tNEX8GPpYjGPP5ivKHfKMUkF9s",
"user_id": 407868,
"username": "pawan17"
},
"type": "success"
}