Skip to main content
PUT
/
keys
/
custom-signing
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.keys.customSigning.set({
        keys: [
            {
                kty: "EC",
            },
        ],
    });
}
main();
{
  "keys": [
    {
      "kty": "EC",
      "kid": "<string>",
      "use": "sig",
      "key_ops": [
        "verify"
      ],
      "alg": "RS256",
      "n": "<string>",
      "e": "<string>",
      "crv": "P-256",
      "x": "<string>",
      "y": "<string>",
      "x5u": "<string>",
      "x5c": [
        "<string>"
      ],
      "x5t": "<string>",
      "x5t#S256": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

JWKS representing an array of custom public signing keys.

keys
object[]
required

An array of custom public signing keys.

Minimum array length: 1

Response

Custom signing keys were successfully created or replaced.

JWKS representing an array of custom public signing keys.

keys
object[]

An array of custom public signing keys.