> For the complete documentation index, see [llms.txt](https://apis.seerbit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apis.seerbit.com/authentication.md).

# Authentication

Each API request that you make to SeerBit must be authenticated using the bearer token authentication type.

## Authentication

<mark style="color:green;">`POST`</mark> `https://seerbitapi.com/api/v2/encrypt/keys`

#### Request Body

| Name                                  | Type   | Description                                                  |
| ------------------------------------- | ------ | ------------------------------------------------------------ |
| key<mark style="color:red;">\*</mark> | string | consists of your privatekey and publickey seperated by a '.' |

{% tabs %}
{% tab title="200: OK Success" %}

```json
{
    "status": "SUCCESS",
    "data": {
    "code": "00",
    "EncryptedSecKey": {
	"encryptedKey": "SNt8kjeVjsdTG4lPlwg6sTvpVAay2RA7hoCEzHPkIQa+MNfDepx4VBr5JMgLb5Q5anq9XoN2pXU850bumqBWFVw1T1ZW5w8N+Sq/"
    },    
    "message": "Successful"
    }
}
```

{% endtab %}

{% tab title="400: Bad Request Bad Request" %}

<pre class="language-json"><code class="lang-json">{
  "message": "Bad Request",
<strong>  "error": "There has been a problem with reading or understanding the request."
</strong>}
</code></pre>

{% endtab %}

{% tab title="404: Not Found Not Found" %}

<pre class="language-json"><code class="lang-json">{
<strong>  "error": "Not Found"
</strong>}
</code></pre>

{% endtab %}

{% tab title="500: Internal Server Error Internal Server Error" %}

```json
{
 "message": "Internal Server Error",
 "error": "PROCESSING"
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="CURL" %}

```json
curl --location --request OPTIONS 'https://seerbitapi.com/api/v2/encrypt/keys' \
--header 'Content-Type: application/json' \
--data-raw '{
	"key": "merchantPrivateKey.merchantPublicKey"
}'
```

{% endtab %}
{% endtabs %}
