Skip to main content
Service AccountCreate Service Account
TestMu AI
StatusCommunityBlog
Service Account

Create Service Account

Create Service Account

POST
/api/organization/service-accounts
Create Service Account
curl --request POST \
--url "https://auth.lambdatest.com//api/organization/service-accounts" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"group_id": 0,
"name": "<name>"
}'
{
"group": {
"id": 814,
"name": "g2"
},
"message": "Service Account Created SuccessFully",
"name": "pawan rai",
"type": "success",
"id": 515639
}

Authorizations

Authorizationstringheaderrequired

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

Body

application/json
group_idnumber
namestring

Response

application/json

Create Service Accounts Success

groupobject
group.idnumber
Example: 814
group.namestring
Example: "g2"
messagestring
namestring
typestring
idnumber
Create Service Account
curl --request POST \
--url "https://auth.lambdatest.com//api/organization/service-accounts" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"group_id": 0,
"name": "<name>"
}'
{
"group": {
"id": 814,
"name": "g2"
},
"message": "Service Account Created SuccessFully",
"name": "pawan rai",
"type": "success",
"id": 515639
}