# Authentication

To make REST API requests, you need a valid API token. To generate a token, open the app, go to Settings, and find **API Access**. Here, you can create a new token. Remember, the token is shown only once when it's created.

<div align="center" data-full-width="true"><figure><img src="/files/B7lh9qu912NIt1InUyqT" alt="" width="563"><figcaption></figcaption></figure></div>

Include your token as a `x-gcf-access-token` header on all API queries.


---

# 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.giftcardfactory.app/integrations/gift-card-api/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.
