# Authentication

## Get your alfred Sandbox Account

We only need a bit of information for you to start experimenting with our APIs. First, you need to create sandbox account, which gives you access to our free payments rail playground. Head over to <https://sandbox.alfredpay.io/> and register by filling out our quick form.

<figure><img src="https://content.gitbook.com/content/SQ8Njhm6SXdA2eVQZrJM/blobs/rkTSjt3kTL6uL3OFWyUT/image.png" alt=""><figcaption><p><a href="https://sandbox.alfredpay.io/">https://sandbox.alfredpay.io/</a></p></figcaption></figure>

### Introduction Call

That form will give our [head of partnerships](https://calendly.com/dylanalfred) some introduction information in order for him to be prepared for your first integration meeting. We confirm your use case and how our solution specialists can be there every step of the way until we successfully reach the finish line. Our team is here to assist with any questions or concerns you may have during your integration process.&#x20;

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXY1ePJgoXV8QE5Owsylb%2Fuploads%2FBMaLsszIi7sizKh3rsO2%2FEN%20-%201%20Get%20Started.mp4?alt=media&token=7db3333c-711c-4a7a-b0a6-15fb2d96149a>" %}

### Generate Client ID & Secret

You need your ClientId and secret before you can start using the alfred products and running API calls. Once you get your **ClientId** and **Secret** by getting in contact with our [head of partnerships](https://calendly.com/dylanalfred), you receive sandbox credentials through email. You sign in with a temporary password, create and confirm your accounts official password, and enter the sandbox environment. Once you get into your sandbox, you can retrieve your Client ID & Secret and start integrating!&#x20;

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXY1ePJgoXV8QE5Owsylb%2Fuploads%2F21K8jVW3YcE79dD14uHq%2FEN%20-%201%20Get%20Started.mp4?alt=media&token=566c44ad-fdf5-4468-8206-18eb9f77b6ff>" %}

### Environment Authentication - Variables & Headers

In order for you to authenticate your calls, set up the environment with the correct variables. Check out how to set up environments in [Postman](https://blog.postman.com/using-variables-inside-postman-and-collection-runner/).

In the table below are the environment variable names you'll need to have to be able to utilize our APIs. The variable names are case sensitive.

| Environment           | Description                                         |
| --------------------- | --------------------------------------------------- |
| Sandbox               | <https://api-dev-services.alfredpay.app/api/v1/>    |
| api-key               | Generated in your Sandbox account                   |
| api-secret            | Generated in your Sandbox account                   |
| \*\*authorization key | \*\*Access token obtained from the KYC Lite process |

***

### Post Authentication

Now that you're ready, let's get you rockin' and rolling.&#x20;

The best place to start is by downloading our [Postman Collection](https://www.postman.com/diegoemiller/workspace/alfred-public-api/collection/30541940-f02d8d56-041e-4ece-aefe-71a54adee35e?action=share\&creator=30541940). It covers all our available endpoints for all our API products. Once downloaded you only need to update the variables above with your own client id and secret and you are good to go.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://alfred.gitbook.io/alfred-integration-docs/welcome/alfred-overview/authentication.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
