List Web Keys
GET/v2beta/web_keys
List all web keys and their states.
Required permission:
iam.web_key.read
Required feature flag:
web_key
Responses​
- 200
- 400
- 403
- 404
- default
List of all web keys.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
Array [
- STATE_INITIAL: A newly created key is in the initial state and published to the public key endpoint.
- STATE_ACTIVE: The active key is used to sign tokens. Only one key can be active at a time.
- STATE_INACTIVE: The inactive key is not used to sign tokens anymore, but still published to the public key endpoint.
- STATE_REMOVED: The removed key is not used to sign tokens anymore and not published to the public key endpoint.
]
webKeys
object[]
The unique identifier of the key.
The timestamp of the key creation.
The timestamp of the last change to the key (e.g. creation, activation, deactivation).
Possible values: [STATE_UNSPECIFIED
, STATE_INITIAL
, STATE_ACTIVE
, STATE_INACTIVE
, STATE_REMOVED
]
Default value: STATE_UNSPECIFIED
rsa
object
Possible values: [RSA_BITS_UNSPECIFIED
, RSA_BITS_2048
, RSA_BITS_3072
, RSA_BITS_4096
]
Default value: RSA_BITS_2048
Bit size of the RSA key. Default is 2048 bits.
Possible values: [RSA_HASHER_UNSPECIFIED
, RSA_HASHER_SHA256
, RSA_HASHER_SHA384
, RSA_HASHER_SHA512
]
Default value: RSA_HASHER_SHA256
Signing algrithm used. Default is SHA256.
ecdsa
object
Possible values: [ECDSA_CURVE_UNSPECIFIED
, ECDSA_CURVE_P256
, ECDSA_CURVE_P384
, ECDSA_CURVE_P512
]
Default value: ECDSA_CURVE_P256
Curve of the ECDSA key. Default is P-256.
{
"webKeys": [
{
"id": "69629012906488334",
"creationDate": "2024-12-18T07:50:47.492Z",
"changeDate": "2024-12-18T08:04:47.492Z",
"state": "STATE_ACTIVE",
"rsa": {
"bits": "RSA_BITS_2048",
"hasher": "RSA_HASHER_SHA256"
}
},
{
"id": "69629012909346200",
"creationDate": "2025-01-18T12:05:47.492Z",
"state": "STATE_INITIAL",
"ecdsa": {
"curve": "ECDSA_CURVE_P256"
}
}
]
}
- Schema
- Example (from schema)
Schema
Array [
- STATE_INITIAL: A newly created key is in the initial state and published to the public key endpoint.
- STATE_ACTIVE: The active key is used to sign tokens. Only one key can be active at a time.
- STATE_INACTIVE: The inactive key is not used to sign tokens anymore, but still published to the public key endpoint.
- STATE_REMOVED: The removed key is not used to sign tokens anymore and not published to the public key endpoint.
]
webKeys
object[]
The unique identifier of the key.
The timestamp of the key creation.
The timestamp of the last change to the key (e.g. creation, activation, deactivation).
Possible values: [STATE_UNSPECIFIED
, STATE_INITIAL
, STATE_ACTIVE
, STATE_INACTIVE
, STATE_REMOVED
]
Default value: STATE_UNSPECIFIED
rsa
object
Possible values: [RSA_BITS_UNSPECIFIED
, RSA_BITS_2048
, RSA_BITS_3072
, RSA_BITS_4096
]
Default value: RSA_BITS_2048
Bit size of the RSA key. Default is 2048 bits.
Possible values: [RSA_HASHER_UNSPECIFIED
, RSA_HASHER_SHA256
, RSA_HASHER_SHA384
, RSA_HASHER_SHA512
]
Default value: RSA_HASHER_SHA256
Signing algrithm used. Default is SHA256.
ecdsa
object
Possible values: [ECDSA_CURVE_UNSPECIFIED
, ECDSA_CURVE_P256
, ECDSA_CURVE_P384
, ECDSA_CURVE_P512
]
Default value: ECDSA_CURVE_P256
Curve of the ECDSA key. Default is P-256.
{
"webKeys": [
{
"id": "69629012906488334",
"creationDate": "2024-12-18T07:50:47.492Z",
"changeDate": "2024-12-18T08:04:47.492Z",
"state": "STATE_ACTIVE",
"rsa": {
"bits": "RSA_BITS_2048",
"hasher": "RSA_HASHER_SHA256"
}
},
{
"id": "69629012909346200",
"creationDate": "2025-01-18T12:05:47.492Z",
"state": "STATE_INITIAL",
"ecdsa": {
"curve": "ECDSA_CURVE_P256"
}
}
]
}
- Schema
- Example (from schema)
Schema
Array [
- STATE_INITIAL: A newly created key is in the initial state and published to the public key endpoint.
- STATE_ACTIVE: The active key is used to sign tokens. Only one key can be active at a time.
- STATE_INACTIVE: The inactive key is not used to sign tokens anymore, but still published to the public key endpoint.
- STATE_REMOVED: The removed key is not used to sign tokens anymore and not published to the public key endpoint.
]
webKeys
object[]
The unique identifier of the key.
The timestamp of the key creation.
The timestamp of the last change to the key (e.g. creation, activation, deactivation).
Possible values: [STATE_UNSPECIFIED
, STATE_INITIAL
, STATE_ACTIVE
, STATE_INACTIVE
, STATE_REMOVED
]
Default value: STATE_UNSPECIFIED
rsa
object
Possible values: [RSA_BITS_UNSPECIFIED
, RSA_BITS_2048
, RSA_BITS_3072
, RSA_BITS_4096
]
Default value: RSA_BITS_2048
Bit size of the RSA key. Default is 2048 bits.
Possible values: [RSA_HASHER_UNSPECIFIED
, RSA_HASHER_SHA256
, RSA_HASHER_SHA384
, RSA_HASHER_SHA512
]
Default value: RSA_HASHER_SHA256
Signing algrithm used. Default is SHA256.
ecdsa
object
Possible values: [ECDSA_CURVE_UNSPECIFIED
, ECDSA_CURVE_P256
, ECDSA_CURVE_P384
, ECDSA_CURVE_P512
]
Default value: ECDSA_CURVE_P256
Curve of the ECDSA key. Default is P-256.
{
"webKeys": [
{
"id": "69629012906488334",
"creationDate": "2024-12-18T07:50:47.492Z",
"changeDate": "2024-12-18T08:04:47.492Z",
"state": "STATE_ACTIVE",
"rsa": {
"bits": "RSA_BITS_2048",
"hasher": "RSA_HASHER_SHA256"
}
},
{
"id": "69629012909346200",
"creationDate": "2025-01-18T12:05:47.492Z",
"state": "STATE_INITIAL",
"ecdsa": {
"curve": "ECDSA_CURVE_P256"
}
}
]
}
The feature flag web_key
is not enabled.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
Schema
any
- Schema
Schema
any
- Schema
Schema
any
Returned when the user does not have permission to access the resource.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Returned when the resource does not exist.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
Array [
]
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}