# Power Automate

API key

A custom connector for the Microsoft Power Platform - use exchange rates and conversion in Power Automate flows, Power Apps and Logic Apps (and pull them into Power BI). Built from our OpenAPI 2.0 spec, so setup is a single import.

[OpenAPI 2.0 spec (Swagger)](https://rate-api.com/openapi/swagger.json) [API reference](/content/docs/api/index.html)

## Examples

`GetLatest - latest rates for a base currency``Convert - from / to / amount``GetPair - rate for a currency pair``GetHistorical - rates on a past date`

## Setup

1. 1

### Open custom connectors

In Power Automate, go to Data → Custom connectors → New custom connector → Import an OpenAPI from URL.

2. 2

### Paste the spec URL

Use the URL below and continue. It defines every action, the parameters, and the API-key security for you.

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

3. 3

### Create the connector

Security is preconfigured as an API key in the X-API-Key header - nothing to change. Click Create connector at the top.

4. 4

### Connect with your key

The first time you add a Rate-API action to a flow, paste your API key (from your dashboard). It is saved as a connection credential, not embedded in the flow.

5. 5

### Use the actions

Add a step, search for Rate-API, and pick an action such as Convert or GetLatest. The same connector works in Power Apps and Logic Apps.
