Skip to main content
POST
/
environments
/
{environmentId}
/
waas
/
delegatedAccess
/
encryptionPublicKeys
Create credentials for waas wallet delegation
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/environments/{environmentId}/waas/delegatedAccess/encryptionPublicKeys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "publicKey": "<string>",
  "alg": "An example name",
  "type": "dynamic"
}
'
{
  "publicKey": "<string>",
  "kid": "<string>",
  "alg": "RSA-OAEP-256",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "type": "dynamic"
}

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"

Body

application/json
publicKey
string
required

A string with a max length of 4096 characters

Maximum string length: 4096
alg
string
Maximum string length: 50
Example:

"An example name"

type
enum<string>
Available options:
dynamic,
external

Response

Credentials for waas wallet delegation created successfully

publicKey
string
required

A string with a max length of 4096 characters

Maximum string length: 4096
kid
string
required

Short identifier referenced in webhook envelopes so the developer knows which private key to use

Maximum string length: 64
alg
enum<string>
required

Algorithm for how this key is used

Available options:
RSA-OAEP-256,
HYBRID-RSA-AES-256
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
type
enum<string>
Available options:
dynamic,
external