[{"label":"Latest (v1.0)","version":"latest"}]
csp

Get Public Key

Description

Returns a list of public keys in jwks format. You should use this keys in your application to validate that the access-token is valid. The KID fields in the access-token is the ID of the public key. The PEM format is deprecated as it returns only the current active public key

Access Policy

Role User Accounts Service Accounts (Client Credentials Applications)
Anonymous ✔️ ✔️

Request

Request

URL

URL


get
https://{api_host}/csp/gateway/am/api/auth/token-public-key
Copy

Query Parameters

Query Parameters

string
format Optional

The format for the key. Must use the ‘jwks’ value because The ‘pem’ format is deprecated. Default value will be switched to ‘jwks’ after deprecation

Parameter Serialization Style: FORM Explode:true

Possible values are: pemjwks


Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns PublicKeyDto of type application/json
{
	"alg": "string",
	"issuer": "string",
	"keys": {},
	"value": "string"
}
string
alg Optional

The algorithm of the key.


string
issuer Optional

The issuer of the key.


array of object
keys Optional

The list of the keys.


string
value Optional

The value of the key.

Errors

Errors

CspErrorResponse
400

Invalid format of public key.


CspErrorResponse
404

The requested resource could not be found


CspErrorResponse
429

The user has sent too many requests


CspErrorResponse
500

An unexpected error has occurred while processing the request

Code Samples

Code Samples

cURL Command

curl https://{api_host}/csp/gateway/am/api/auth/token-public-key


Feedback

Was this page helpful?