Token › Fetch Service Account Token
Token
Fetch Service Account Token Fetch Service Account Token
Fetch Service Account Token curl -- request GET \
-- url "https://auth.lambdatest.com/api/organization/service-accounts/{id}/token" \
-- header "Authorization: Basic <encoded-value>"
{
"message" : "Access Token retrieved successfully" ,
"token" : {
"id" : 426314 ,
"token" : "EwnnWltfbiauIWQcGp5R6WlgIZgiP0FIuNszYIM8qP4NSuwveC" ,
"user_id" : 407939 ,
"username" : "415203LOjvQIAizR"
} ,
"type" : "success"
}
Authorizations Authorization string header required
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Path Parameters id integer required
Service Account ID
Response 200▼
application/json Success
token object
▶ Hide child attributestoken. id number
Example: 426314
token. token string
Example: "EwnnWltfbiauIWQcGp5R6WlgIZgiP0FIuNszYIM8qP4NSuwveC"
token. user_id number
Example: 407939
token. username string
Example: "415203LOjvQIAizR"
Fetch Service Account Token curl -- request GET \
-- url "https://auth.lambdatest.com/api/organization/service-accounts/{id}/token" \
-- header "Authorization: Basic <encoded-value>"
{
"message" : "Access Token retrieved successfully" ,
"token" : {
"id" : 426314 ,
"token" : "EwnnWltfbiauIWQcGp5R6WlgIZgiP0FIuNszYIM8qP4NSuwveC" ,
"user_id" : 407939 ,
"username" : "415203LOjvQIAizR"
} ,
"type" : "success"
}