﻿# UNSUPPORTED_KEY_TYPE — JWK kty not supported

`POST /oauth/keys/trusted` accepts only `kty: \RSA\` in v0.8.0. Cloud also supports `kty: \EC\` and `kty: \OKP\`; cyoda-go parity is tracked in a v0.8.1 f…

<em>cyoda-go version <a href="https://github.com/Cyoda/cyoda-go/releases/tag/v0.8.1">0.8.1</a></em>

# errors.UNSUPPORTED_KEY_TYPE

## NAME

UNSUPPORTED_KEY_TYPE — the JWK `kty` is not supported by this cyoda-go version.

## SYNOPSIS

HTTP: `400` `Bad Request`. Retryable: `no`.

## DESCRIPTION

`POST /oauth/keys/trusted` accepts only `kty: "RSA"` in v0.8.0. Cloud also supports `kty: "EC"` and `kty: "OKP"`; cyoda-go parity is tracked in a v0.8.1 follow-up.

## SEE ALSO

- errors
- errors.UNSUPPORTED_ALGORITHM

## See also

- [`cyoda help errors`](/help/errors/) — Every error response from the Cyoda REST API carries a structured `errorCode` in the `properties` object. Multiple codes may share the same HTTP status. Programmatic handling keys on `errorCode`, not HTTP status.
- [`cyoda help errors UNSUPPORTED_ALGORITHM`](/help/errors/unsupported_algorithm/) — cyoda-go v0.8.0 signs and verifies only `RS256`. Other enum values declared in the OpenAPI spec (`RS384`, `RS512`, `PS256`, `PS384`, `PS512`, `ES256`, `ES384`, `ES512`, `EdDSA`) are rejected with this error. Cyoda Cloud supports the full enum; parity is tracked in a v0.8.1 follow-up.

## Raw formats

- [`/help/errors/unsupported_key_type.json`](/help/errors/unsupported_key_type.json) — full descriptor (matches `GET /help/{topic}` envelope)
- [`/help/errors/unsupported_key_type.md`](/help/errors/unsupported_key_type.md) — body only