# 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 %}


---

# 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://apis.seerbit.com/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.
