Skip to main content
GET
/
environments
/
{environmentId}
/
waas
/
delegatedAccess
/
encryptionPublicKeys
Get delegated access encryption public keys for an environment
curl --request GET \
  --url https://app.dynamicauth.com/api/v0/environments/{environmentId}/waas/delegatedAccess/encryptionPublicKeys \
  --header 'Authorization: Bearer <token>'
{
  "message": "<string>",
  "key": {
    "id": "95b11417-f18f-457f-8804-68e361f9164f",
    "projectEnvironmentId": "95b11417-f18f-457f-8804-68e361f9164f",
    "kid": "<string>",
    "alg": "RSA-OAEP-256",
    "publicKeyPemB64": "<string>",
    "status": "pending",
    "type": "dynamic",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "expiresAt": "2023-11-07T05:31:56Z",
    "revokedAt": "2023-11-07T05:31:56Z"
  },
  "keys": [
    {
      "id": "95b11417-f18f-457f-8804-68e361f9164f",
      "projectEnvironmentId": "95b11417-f18f-457f-8804-68e361f9164f",
      "kid": "<string>",
      "alg": "RSA-OAEP-256",
      "publicKeyPemB64": "<string>",
      "status": "pending",
      "type": "dynamic",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "expiresAt": "2023-11-07T05:31:56Z",
      "revokedAt": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

Query Parameters

includeAll
boolean
default:false

If true, returns all encryption public keys. Otherwise, returns only the latest active key.

Response

Encryption public keys fetched successfully

message
string
required

Message describing the operation result

key
object

Single key when includeAll is false

keys
object[]

Array of keys when includeAll is true