Skip to content

List Services

GET
/api/v1/sectors/{sectorID}/services
curl --request GET \
--url https://api.spartanauth.com/api/v1/sectors/example/services

Lists services in a sector (name, prefix, created, last exchange). Does not return secrets. Requires sector-admin or tenant-root admin access.

sectorID
required
string

A successful response.

Media type application/json
object
services
Array<object>

Service is one of the customer’s own programs. Its secret mints short-lived tokens for calls to other programs in the same app sector.

object
id
string
name
string
sectorID
string
prefix
string
createdAt
string format: int64
lastExchangedAt
string format: int64
Example generated
{
"services": [
{
"id": "example",
"name": "example",
"sectorID": "example",
"prefix": "example",
"createdAt": "example",
"lastExchangedAt": "example"
}
]
}

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"
}
]
}