The AI Agent Public Keys API provides a set of operations to manage public JSON Web Key (JWK) credentials that are used for AI agents. See AI agents.
A JWK is a JSON representation of a cryptographic key. Okta uses signing keys to verify the signature of a JWT when provided for the private_key_jwt client authentication method or for a signed authorize request object. Okta supports both RSA and Elliptic Curve (EC) keys for signing tokens.
Lists all JSON Web Keys (JWK) for an AI agent
OK
Unauthorized
Forbidden
Not Found
Too Many Requests
{- "data": [
- {
- "id": "pks2f4zrZbs8nUa7p0g4",
- "kid": "DRUFXGF9XbLnS9k-Sla3x3POBiIxDreBCdZuFs5B",
- "kty": "RSA",
- "alg": "RS256",
- "use": "sig",
- "e": "AQAB",
- "n": "AJncrKuine49_CEVR4GPn.....zOrouIUCSMlRL0HU=",
- "status": "INACTIVE",
- "created": "2023-02-21T20:08:24.000Z",
- "lastUpdated": "2023-02-21T20:08:24.000Z",
- "_links": {
- "activate": {
- "hints": {
- "allow": [
- "POST"
]
}
}, - "delete": {
- "hints": {
- "allow": [
- "DELETE"
]
}
}
}
}, - {
- "id": "pks2f50kZB0cITmYU0g4",
- "kid": "ASHJHGasa782333-Sla3x3POBiIxDreBCdZuFs5B",
- "kty": "RSA",
- "alg": "RS256",
- "use": "sig",
- "e": "AQAB",
- "n": "AJncrzOrouIUCSMlRL0HU.....Kuine49_CEVR4GPn=",
- "status": "ACTIVE",
- "created": "2023-04-06T21:32:33.000Z",
- "lastUpdated": "2023-04-06T21:32:33.000Z",
- "_links": {
- "deactivate": {
- "hints": {
- "allow": [
- "POST"
]
}
}
}
}
], - "_links": {
}
}Adds a new JSON Web Key (JWK) to the AI agent's JWK Set (JWKS)
Created
Bad Request
Unauthorized
Forbidden
Too Many Requests
{- "kid": "ASHJHGasa782333-Sla3x3POBiIxDreBCdZuFs5B",
- "kty": "RSA",
- "alg": "RS256",
- "use": "sig",
- "e": "AQAB",
- "n": "AJncrzOrouIUCSMlRL0HU.....Kuine49_CEVR4GPn=",
- "status": "ACTIVE"
}{- "id": "pks2f50kZB0cITmYU0g4",
- "kid": "ASHJHGasa782333-Sla3x3POBiIxDreBCdZuFs5B",
- "kty": "RSA",
- "alg": "RS256",
- "use": "sig",
- "e": "AQAB",
- "n": "AJncrzOrouIUCSMlRL0HU.....Kuine49_CEVR4GPn=",
- "status": "ACTIVE",
- "created": "2023-04-06T21:32:33.000Z",
- "lastUpdated": "2023-04-06T21:32:33.000Z",
- "_links": {
- "deactivate": {
- "hints": {
- "allow": [
- "POST"
]
}
}
}
}Retrieves an AI agent's JSON Web Key by keyId
OK
Unauthorized
Forbidden
Not Found
Too Many Requests
{- "id": "pks2f50kZB0cITmYU0g4",
- "kid": "ASHJHGasa782333-Sla3x3POBiIxDreBCdZuFs5B",
- "kty": "RSA",
- "alg": "RS256",
- "use": "sig",
- "e": "AQAB",
- "n": "AJncrzOrouIUCSMlRL0HU.....Kuine49_CEVR4GPn=",
- "status": "ACTIVE",
- "created": "2023-04-06T21:32:33.000Z",
- "lastUpdated": "2023-04-06T21:32:33.000Z",
- "_links": {
- "deactivate": {
- "hints": {
- "allow": [
- "POST"
]
}
}
}
}Deletes an AI agent's JSON Web Key by keyId. You can only delete an inactive key.
No Content
Bad Request
Unauthorized
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000001",
- "errorSummary": "Api validation failed: JsonWebKey",
- "errorLink": "E0000001",
- "errorId": "sampleQPivGUj_ND5v78vbYWW",
- "errorCauses": [
- {
- "errorSummary": "You can't delete an active JSON Web Key. Deactivate the key before deleting it."
}
]
}Activates an AI agent's JSON Web Key by keyId
Note: You can only have one active encryption key at any given time for an AI agent. When you activate an inactive key, the currently active key is automatically deactivated.
OK
Unauthorized
Forbidden
Not Found
Too Many Requests
{- "id": "pks2f50kZB0cITmYU0g4",
- "kid": "ASHJHGasa782333-Sla3x3POBiIxDreBCdZuFs5B",
- "kty": "RSA",
- "alg": "RS256",
- "use": "sig",
- "e": "AQAB",
- "n": "AJncrzOrouIUCSMlRL0HU.....Kuine49_CEVR4GPn=",
- "status": "ACTIVE",
- "created": "2023-04-06T21:32:33.000Z",
- "lastUpdated": "2023-04-06T21:32:33.000Z",
- "_links": {
- "deactivate": {
- "hints": {
- "allow": [
- "POST"
]
}
}
}
}Deactivates an AI agent's JSON Web Key by keyId
Note: You can only deactivate signing keys. You can't deactivate the active encryption key if the client has ID token encryption enabled. However, you can activate another encryption key, which makes the current key inactive.
OK
Bad Request
Unauthorized
Forbidden
Not Found
Too Many Requests
{- "id": "pks2f50kZB0cITmYU0g4",
- "kid": "ASHJHGasa782333-Sla3x3POBiIxDreBCdZuFs5B",
- "kty": "RSA",
- "alg": "RS256",
- "use": "sig",
- "e": "AQAB",
- "n": "AJncrzOrouIUCSMlRL0HU.....Kuine49_CEVR4GPn=",
- "status": "INACTIVE",
- "created": "2023-04-06T21:32:33.000Z",
- "lastUpdated": "2023-04-06T21:32:33.000Z",
- "_links": {
- "activate": {
- "hints": {
- "allow": [
- "POST"
]
}
}
}
}