List API Client Credentials
  • 04 Jul 2024
  • 1 Minute to read
  • Dark
    Light
  • PDF

List API Client Credentials

  • Dark
    Light
  • PDF

Article summary

Get
/env-mgmt/1.0/api-key/clients

This API enables users to get a list of Client Credentials through a Tenant or Environment.

Notice

Accessing the Policy Management APIs is through a dedicated domain/URL according to your PlainID Tenant Location:
`https://api.{REGION}.plainid.io`

United States (US) - `https://api.us1.plainid.io`
Canada (US) - `https://api.ca1.plainid.io`
Europe (US) - `https://api.eu1.plainid.io`

Replace{REGION} with your PlainID Tenant region (e.g. us1, eu1, ca1, etc.).


cURL Sample Guidelines

In order for the relevant parameters to appear in the cURL sample, you can input the values in the interactive API console on the right. They will then appear in the cURL sample on the bottom of the page in the correct format.

Security
HTTP
Type bearer

For more details about Administration API Authentication, check out the Authentication APIs documentation. Provide your bearer token in the Authorization header when making requests to protected resources. Example: Authorization: Bearer 123

Query parameters
filter

Client Owner is the Environment ID. The Environment ID can be found under the Details tab in the Environment Settings. If this is for a Tenant Admin, input null or - in the ownerId field.

object
id
string
name
string
ownerId
string Required

Client Owner is the Environment ID. The Environment ID can be found under the Details tab in the Environment Settings. If this is for a Tenant Admin, input null or - in the ownerId field.

Valid values[ "EnvId", "null or -" ]
permission
string
Valid values[ "ADMIN", "VIEWER" ]
sort
string
Valid values[ "ASC", "DESC" ]
limit
number
Maximum50
Minimum1
Default"50"
offset
number
Minimum0
Default"0"
Responses
200

Client

Expand All
data
Array of object
object
description
string
id
string
name
string
ownerId
string (UUID)
ownerType
string
permission
string
secret
string

Null value

tokenDuration
string (ISO-8601 duration)
limit
integer
offset
integer
total
integer
400

Missing required filter parameter: ownerId

missingOwnerId
{
  "id": "EW55XA",
  "message": "Missing required filter parameter: ownerId",
  "name": "MissingRequiredFilterParameterError",
  "status": 400
}
Expand All
object
args
object
path
string
code
string
id
string
message
string
name
string
status
integer
403

Forbidden

forbidden environment
{
  "id": "EW25XA",
  "message": "operation get for resource Environment {ownerId} is not allowed because the current user does not have the appropriate permissions",
  "name": "forbiddenEnvironment",
  "status": 403
}
forbidden tenant
{
  "id": "EW53XA",
  "message": "operation get for resource Environment {ownerId} is not allowed because the current user does not have the appropriate permissions",
  "name": "forbiddenTenant",
  "status": 403
}
Expand All
object
args
object
path
string
code
string
id
string
message
string
name
string
status
integer
404

Client not found

client not found
{
  "id": "EW54XA",
  "message": "Client {name} not found",
  "name": "clientNotFoundError",
  "status": 404
}
Expand All
object
args
object
path
string
code
string
id
string
message
string
name
string
status
integer

Was this article helpful?