---
title: "Card intake public key"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.nicer.travel/llms.txt
> Use this file to discover all available pages before exploring further.

# Card intake public key

Path: Nicer API › tokenization

`GET /tokenization/intake-key`

URL: `https://api.nicer.travel/tokenization/intake-key`

Returns the public key the checkout seals card data to before calling the tokenization routes, with the algorithm and key id the envelope must carry. Cacheable for an hour. Anyone may call it, without a token: the key is public.

## Code samples

### JavaScript SDK

```javascript
import { createClient } from "@nicertravel/sdk";

const nicer = createClient({
  baseUrl: "https://api.nicer.travel",
  token: process.env.NICER_TOKEN,
});

await nicer.tokenization.intakeKey.list();
```

### Nicer CLI

```bash
nicer tokenization intake-key list
```

### cURL

```bash
curl --request GET \
  --url https://api.nicer.travel/tokenization/intake-key
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/tokenization/intake-key';
const options = {method: 'GET'};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.nicer.travel/tokenization/intake-key"

response = requests.get(url)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "alg": "RSA-OAEP-256+A256GCM",
  "kid": "string",
  "publicKey": "string"
}
```

- `alg` (`tokenization.intakeKey.list.response.200.alg`; string, required)
- `kid` (`tokenization.intakeKey.list.response.200.kid`; string, required)
  - minLength: `1`
- `publicKey` (`tokenization.intakeKey.list.response.200.publicKey`; string, required)
  - minLength: `1`

### 400

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`tokenization.intakeKey.list.response.400.errorCode`; string, required)
- `errorMessage` (`tokenization.intakeKey.list.response.400.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/tokenization/tokenization.intakeKey.list/index.md
