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

# Authentication

> Learn how to generate and use your MyCreditApp API token to authenticate requests.

## Get the API client credentials

1. Open the [MyCreditApp Portal Settings](https://app.mycreditapp.ai/settings_general) from the sidebar menu.
2. Navigate to the **API Clients** tab.
3. Click **Create API Client** to generate new credentials.
4. Enter a name for your API client and click **Create**.
5. **Copy and securely store** your API client credentials.

<Warning> Keep your client secret safe! You will not be able to view it again. If it’s lost, you’ll need to create a new API client. </Warning>

## Authenticate with Your API Client Credentials

To obtain an access token for your API client, follow the guide [Generate OAuth2 client credentials token](/api-reference/oauth/generate-oauth2-client-credentials-token).

The response will include your access token:

<CodeGroup>
  ```json Response theme={null}
  {
    "access_token": "<string>",
    "expires_in": 123
  }
  ```
</CodeGroup>

<Tip>Use the **access\_token** in all subsequent API requests. The token is valid for **expires\_in** seconds.</Tip>

## API Base URL

The **MyCreditApp API** uses the following URL structure:

```http HTTP theme={null}
{base_uri}/{version}/{module}/...
```

* **Base URI**: `https://api.mycreditapp.ai`;
* **Version**: current version is `v1`;
* **Module**: any module available in **v1**, for example `organizations`.

## Example API call

Once you have your access token, you can make your first API request:

<CodeGroup>
  ```curl cURL theme={null}
  curl --request GET \
    --url https://api.mycreditapp.ai/v1/resources/currencies \
    --header 'Authorization: Bearer <Your access token>'
  ```
</CodeGroup>

<Tip>Replace **Your access token** with the token you retrieved in the previous step.</Tip>
