> ## Documentation Index
> Fetch the complete documentation index at: https://developer-embed.kolomonimfb.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication

> To interact with the Embed API, you’ll need to authenticate your requests using an apikey. This key is essential for accessing the API securely and ensuring that your requests are authorized.

## Getting Your API Key

#### Staging

For testing on the staging environment, you can visit the Embed staging dashboard here and follow the steps below to retrieve your unique staging api key:

1. **Navigate to Your Profile Settings Page:**\
   Log in to your Embed dashboard and go to the Profile Settings section to retrieve your OrganizationId (An organizationId is your identification for your organization.).
2. **Navigate to Your API Credentials Page:**\
   Log in to your Embed dashboard and go to the APIs
   & Integration (API credentials consist of a client key and a secret key, both required for generating tokens.) section to retrieve your api key (An api key is essential for API authentication.).

Note: You can submit dummy placeholder documents, images or PDFs during your sign up and onboarding on staging. We will approve your account immediately and promptly to enable you get both your staging api key and staging organisation Id.

#### Production

To generate your apikey on production, follow these steps:

1. **Navigate to Your Profile Settings Page:**\
   Log in to your Embed dashboard and go to the Profile Settings section to retrieve your OrganizationId (An organizationId is your identification for your organization.).
2. **Navigate to Your API Credentials Page:**\
   Log in to your Embed dashboard and go to the APIs
   & Integration (API credentials consist of a client key and a secret key, both required for generating tokens.) section to retrieve your api key (An api key is essential for API authentication.).

   > [!NOTE]
   >
   > A pre-requisite to successfully retrieving your production credentials is
   > uploading all required documentation and having them approved by the
   > Embed admin

***

> [!WARNING]
>
> You must also always pass in the **headers** of all your api request the correct api key as `x-api-key: {{you api key}}` based on the environment you are calling.

## Base URL

When making API requests, you'll need to use the appropriate base URL depending on the environment:

* **Production Environment:**\
  Use this URL for live, production-level operations:

  ```http theme={null}
  https://wallet.embedded.kolomoni.net/api/v1
  ```

* **Sandbox environment:**\
  Use this URL for testing and development purposes. The sandbox environment mirrors the production environment but is intended for safe testing without affecting real data:

  ```http theme={null}
  https://wallet.dev.embedded.kolomoni.net/api/v1
  ```

> [!NOTE]
>
> Ensure that you are using the correct base URL for your environment to avoid
> unintended data manipulation or errors. For testing, always start with the
> sandbox environment before moving to production.

> [!WARNING]
>
> For security reasons, ensure that your token is stored securely and never
> shared publicly. Tokens should be refreshed regularly to maintain secure
> access to the API.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.