List API keys for a user
GET/api/v1/apikeys
List all API keys for a user. The API keys can be used to authenticate the requests to the Astro Platform API.
Request
Header Parameters
X-API-KEY stringrequired
APIKey
Responses
- 200
- 404
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
data
object[]
apikey string
apiKey is the API key.
createdAt string
createdAt is the creation time of the APIkey.
expiresAt string
expiresAt is the expiration time of the API key.
id string
id is the unique identifier of the API key.
isPermanent boolean
isPermanent is a flag to make the API key permanent. If true, the API key will not expire. If false, the API key will expire after the duration. If not specified, the default value is false.
orgId string
orgId is the organization ID.
orgNamespace string
orgNamespace is the organization namespace.
userId string
userId is unique identifier of the user.
id string
message string
status string
{
"data": [
{
"apikey": "string",
"createdAt": "string",
"expiresAt": "string",
"id": "string",
"isPermanent": true,
"orgId": "string",
"orgNamespace": "string",
"userId": "string"
}
],
"id": "string",
"message": "string",
"status": "string"
}
no API keys found
- application/json
- Schema
- Example (from schema)
Schema
error string
error_code string
{
"error": "string",
"error_code": "string"
}
internal server error
- application/json
- Schema
- Example (from schema)
Schema
error string
error_code string
{
"error": "string",
"error_code": "string"
}
Loading...