Token › Generate Service Account token
Token
Generate Service Account token Generate Service Account token
Generate Service Account token curl -- request POST \
-- url "https://auth.lambdatest.com/api/organization/service-accounts/{id}/token" \
-- header "Authorization: Basic <encoded-value>"
{
"message" : "Access Token generated successfully" ,
"token" : {
"id" : 421827 ,
"token" : "bmrt4HX52bTcOHniFl3HAA9G4ehQHnLqUkGmLPRVxfef4iIBVZ" ,
"user_id" : 407938 ,
"username" : "4152033k0HaL6tuC"
} ,
"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: 421827
token. token string
Example: "bmrt4HX52bTcOHniFl3HAA9G4ehQHnLqUkGmLPRVxfef4iIBVZ"
token. user_id number
Example: 407938
token. username string
Example: "4152033k0HaL6tuC"
Generate Service Account token curl -- request POST \
-- url "https://auth.lambdatest.com/api/organization/service-accounts/{id}/token" \
-- header "Authorization: Basic <encoded-value>"
{
"message" : "Access Token generated successfully" ,
"token" : {
"id" : 421827 ,
"token" : "bmrt4HX52bTcOHniFl3HAA9G4ehQHnLqUkGmLPRVxfef4iIBVZ" ,
"user_id" : 407938 ,
"username" : "4152033k0HaL6tuC"
} ,
"type" : "success"
}