Skip to content

Get Tenant

GET
/api/v1/tenants/{tenantID}
curl --request GET \
--url https://api.spartanauth.com/api/v1/tenants/example

Returns catalog metadata for one tenant. Optional ping checks whether the tenant database is reachable. Optional includeStats opens that tenant DB read-only for user/security counts. Only an admin of the platform default sector may call this.

tenantID
required
string
ping
boolean
includeStats
boolean

A successful response.

Media type application/json
object
tenant
object
tenantID
string
slug
string
kid
string
isPlatform
boolean
rootSectorID
string
sectorCount
integer format: int32
subSectorCount
integer format: int32
sectors
Array<object>
object
sectorID
string
slug
string
name
string
isDefault
boolean
reachable
boolean
reachError
string
stats
object
userCount
integer format: int32
pendingInviteCount
integer format: int32
adminCount
integer format: int32
apiTokenCount
integer format: int32
mfaRequired
boolean
selfSignupAllowed
boolean
webauthnConfigured
boolean
Example generated
{
"tenant": {
"tenantID": "example",
"slug": "example",
"kid": "example",
"isPlatform": true,
"rootSectorID": "example",
"sectorCount": 1,
"subSectorCount": 1
},
"sectors": [
{
"sectorID": "example",
"slug": "example",
"name": "example",
"isDefault": true
}
],
"reachable": true,
"reachError": "example",
"stats": {
"userCount": 1,
"pendingInviteCount": 1,
"adminCount": 1,
"apiTokenCount": 1,
"mfaRequired": true,
"selfSignupAllowed": true,
"webauthnConfigured": true
}
}

An unexpected error response.

Media type application/json
object
code
integer format: int32
message
string
details
Array<object>
object
@type
string
key
additional properties
Example generated
{
"code": 1,
"message": "example",
"details": [
{
"@type": "example"
}
]
}