> For the complete documentation index, see [llms.txt](https://zrpl-co-1.gitbook.io/zrpl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zrpl-co-1.gitbook.io/zrpl/quick-start.md).

# Quick Start

## Get your API keys

Access to the API requires authentication token. Requests made without token will result in error responses.

Generate your token effortlessly using the Auth API.

Token Validity : 10 Minutes

## Auth API curl to get the token. <a href="#auth-api-curl-to-get-the-token" id="auth-api-curl-to-get-the-token"></a>

<mark style="color:green;">`POST`</mark> {{Base\_url}}/rest/all/V1/integration/admin/token

The best Generate your token by providing your username and password in the request body.

{% tabs %}
{% tab title="Curl" %}
{% code fullWidth="true" %}

```json
curl --location '{{Base_url}}/rest/all/V1/integration/admin/token' \
--header 'Content-Type: application/json' \
--header 'Cookie: PHPSESSID=6t4unirh1unu87ef0stp2sv3kv; PHPSESSID=6t4unirh1unu87ef0stp2sv3kv' \
--data '{
  "username": "Enter Username",
  "password": "Enter Password"
}'
```

{% endcode %}
{% endtab %}
{% endtabs %}

**Responses**

{% tabs %}
{% tab title="Success Response 200" %}

```json
eyJraWQiOiIxIiwiYWxnIjoiSFMyNTYifQ.eyJ1aWQiOjU1LCJ1dHlwaWQiOjIsImlhdCI6MTcyNjIwMzA4OSwiZXhwIjoxNzI2MjA2Njg5fQ.ALq1a-GY_kKCWNb1kQ_0EfcIXheJjg6SV4ZYsmwdVOU
```

{% endtab %}

{% tab title="Error Response 401 " %}

```json
{
    "message": "The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later."
}
```

{% endtab %}
{% endtabs %}
