Skip to main content
POST
/
tenant-auth
/
v1
/
login
Login and obtain access token
curl --request POST \
  --url https://api.swarmd.ai/tenant-auth/v1/login \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "<string>",
  "password": "<string>"
}
'
{
  "accessToken": "<string>",
  "tokenType": "<string>",
  "expiresIn": 123,
  "refreshToken": "<string>"
}

Authorizations

Authorization
string
header
required

JWT token (USER, AGENT, or SERVICE auth)

Body

application/json
email
string
required
password
string
required

Response

200 - */*

OK

accessToken
string
required
tokenType
string
required
expiresIn
integer<int64>
required
refreshToken
string
required