Skip to content

Add partner public key

Request

Adds one or more public keys for a partner organization to use for token exchange authentication. Accessible to TMC, company, and global admins.

Security
Bearer
Path
companyIdstring, (uuid)required

Organization identifier.

Example:4974a66b-7493-4f41-908c-58ba81093947
Bodyapplication/jsonrequired
keyTypestring(PartnerPublicKeyType)required

The type of public key being registered.

Value:"JWKS"
jwksobject(PartnerJwks)

JWKS containing the RSA public key. Required when keyType is JWKS.

curl -i -X POST \
  https://api-ext-sboxmeta.partners.spotnana.com/v2/companies/4974a66b-7493-4f41-908c-58ba81093947/partner-public-keys \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "keyType": "JWKS",
    "jwks": {
      "keys": [
        {
          "kty": "RSA",
          "use": "sig",
          "alg": "RS256",
          "kid": "string",
          "n": "string",
          "e": "string"
        }
      ]
    }
  }'

Responses

Keys created successfully.

Bodyapplication/json
keysArray of objects(PartnerPublicKeyInfo)

List of added partner public keys.

Response
{ "keys": [ { … } ] }