# Get Rampart Signing Keys

`GET /rampart/jwks` · Core · AI Safety

Returns the JSON Web Key Set (RFC 7517) that verifies Rampart `classificationReceipt` signatures. Find the key whose `kid` matches the receipt's protected header. The set lists only the classification-receipt keys, and keeps a retired key listed for a grace period so a receipt signed just before a key rotation still verifies. Cache by `kid` and refetch when a `kid` is missing; responses are cacheable for 5 minutes. Public: no authentication is required.

## Responses

- **200**: Success

| Field | Type | Required | Description |
|---|---|---|---|
| `keys` | array of object | yes | The public keys that sign classification receipts, newest first. A key stays listed through its grace period after it is retired, so a receipt signed just before a rollover still verifies. Cache keys by `kid` and fetch again when a receipt names a `kid` you don't have. |
| `keys.[]kty` | enum ("OKP") | yes | The key type. Receipt keys are Ed25519, so this is `OKP`. |
| `keys.[]crv` | enum ("Ed25519") | yes | The curve of the key. |
| `keys.[]x` | string | yes | The public key, base64url-encoded with no padding. |
| `keys.[]kid` | string | yes | The key id. A receipt's protected header names the `kid` it was signed with. |
| `keys.[]alg` | enum ("EdDSA") | yes | The signing algorithm. |
| `keys.[]use` | enum ("sig") | yes | The key's use: signatures. |
| `keys.[]k9o_signer_role` | enum ("public") | yes | Which platform signer holds the private half. Receipt keys are always held by the public gateway. |
| `issuer` | string | yes | The `iss` claim every classification receipt carries. Check a receipt's `iss` against this value. |
| `meta` | object | yes |  |


## Code samples

### cURL

```bash
curl -X GET 'https://<org>.api-<region>.k9o.io/rampart/jwks'
```

### fetch

```javascript
const res = await fetch('https://<org>.api-<region>.k9o.io/rampart/jwks', {
  method: 'GET',
});
const { data, meta } = await res.json();
```

### @k9o/core

```typescript
// const k9o = new K9o({ orgSlug: 'playground', projectSlug: 'storefront', apiKey: 'k9o_…' })
const { data } = await k9o.rampart.jwks()
```

### k9o

```python
# k9o = create_client(org_slug="playground", project_slug="storefront", api_key="k9o_…")
response = k9o.rampart.jwks()
```

### sdk-go

```go
// ctx := context.Background()
// client, _ := k9o.NewClient(k9o.ClientOpts{OrgSlug: "playground", ProjectSlug: "storefront", APIKey: "k9o_…"})
data, _, kerr := client.Rampart.Jwks(ctx)
```

### k9o

```rust
// let k9o = Client::new(ClientOpts { org_slug: "playground".into(), project_slug: "storefront".into(), api_key: "k9o_…".into() })?;
let resp = k9o.rampart.jwks().await?
```

### dev.k9o:core

```java
// K9o k9o = K9o.createClient(K9o.Opts.builder().orgSlug("playground").projectSlug("storefront").apiKey("k9o_…").build());
var response = k9o.rampart().jwks()
```

### K9o.Core

```c#
// var k9o = K9oClient.Create(new K9oOptions { OrgSlug = "playground", ProjectSlug = "storefront", ApiKey = "k9o_…" });
var response = await k9o.Rampart.JwksAsync()
```

### k9o

```ruby
# k9o = K9o.create_client(org_slug: "playground", project_slug: "storefront", api_key: "k9o_…")
response = k9o.rampart.jwks()
```

### k9o/sdk

```php
// $k9o = K9oClient::create(['org_slug' => 'playground', 'project_slug' => 'storefront', 'api_key' => 'k9o_…']);
$response = $k9o->rampart->jwks()
```


Canonical page: https://docs.kilimanjaro.dev/api-playground/core/get-rampart-signing-keys
