# Authentication

## Get Access Token

<mark style="color:green;">`POST`</mark> `https://api.payscore.com/api/v1/tenants/auth`

Request to get your API access token, which expires in 30 minutes. The access token will be returned in the `Authorization` header.

#### Request Body

| Name        | Type   | Description     |
| ----------- | ------ | --------------- |
| client\_id  | string | Your client ID  |
| secret\_key | string | Your secret key |

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

```
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIwMDAwMDAwMC0wM...
```

{% 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://docs.payscore.com/payscore-v1-deprecated/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.
