# ChatGPT (GPT Action)

API key

Give a custom GPT access to exchange rates. ChatGPT Actions import our OpenAPI 3.0 schema - setup is one URL.

[API reference](/content/docs/api/index.html)

## Examples

`Convert 250 USD to Japanese yen.``What is the EUR/GBP rate today?``How many AMD is 1000 euros?`

## Setup

1. 1

### Create an action

In ChatGPT: Explore GPTs → Create → Configure → Create new action.

2. 2

### Import the schema

Schema → Import from URL, and paste the OpenAPI 3.0 spec. It loads GetLatest, Convert, GetPair, GetHistorical, GetCrypto and more.

```
https://rate-api.com/openapi.json
```

3. 3

### Set authentication

Auth Type: API Key. Paste your Rate-API key. Custom Header Name: X-API-Key.

```
Auth Type:   API Key
Header Name: X-API-Key
```

4. 4

### Add the privacy policy

Required to publish a GPT. Use {APP\_URL}/privacy, then save and try a prompt like "Convert 250 USD to JPY".

```
https://rate-api.com/privacy
```
