# Create an RiskRecon API Client
source: https://developer.mastercard.com/riskrecon-api/documentation/tutorials-and-guides/create-an-api-client-tutorial/index.md

This step-by-step tutorial guides you through the process of creating a RiskRecon Open API client.

<br />

<br />

To move to the next step in the tutorial, click the subsequent step in the left navigation pane or click the **Next** button.

## Download the OpenAPI Specification {#download-the-openapi-specification}

Follow these steps to download the RiskRecon Open API Specification:

1. Log in to Mastercard Developers.
2. Access the RiskRecon documentation.
3. Navigate to the [API Reference](https://developer.mastercard.com/riskrecon-api/documentation/api-reference/index.md) page.
4. Click the **Open Specification** to download the RiskRecon YAML.  
   The *Sandbox* is selected by default. To download the production YAML file, click *Production* . ![](https://static.developer.mastercard.com/content/riskrecon-api/uploads/download-specs.png)

The YAML file gets downloaded.  

5. Click **Next**.

## Install the OpenAPI Generator CLI {#install-the-openapi-generator-cli}

Follow these steps to install the OpenAPI Generator CLI using the language of your choice:

1. Download and install the OpenAPI Generator CLI as per the instructions provided [here](https://openapi-generator.tech/docs/installation).

2. For configuration options, visit [here](https://openapi-generator.tech/docs/configuration).  

3. Click **Next**.

## Generate an API Client {#generate-an-api-client}

Follow the instructions [here](https://openapi-generator.tech/docs/usage#generate) to generate a RiskRecon API client using the language of your choice.

Here are some examples of generating a Python, Elixir, Java, and Ruby client:
* Python
* Elixir
* Java
* Ruby

```python
openapi-generator-cli generate -g python -i v1_openapi.yaml -o python_client
```

```elixir
openapi-generator-cli generate -g elixir -i v1_openapi.yaml -o elixir_client
```

```java
openapi-generator-cli generate -g java -i v1_openapi.yaml -o java_client
```

```ruby
openapi-generator-cli generate -g ruby -i v1_openapi.yaml -o ruby_client
```

