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

# Authentication

Requests to the RACEMAP APIs must include a valid API token which serves as a secure key.

The token authenticates you to the RACEMAP platform to **retrieve** your data from or **direct** your data to RACEMAP. Requests without a valid token will be rejected - or, in the case of data‐retrieval calls, blocked.

### Obtain your API tokens

* Sign in to your RACEMAP account <https://racemap.com/auth/login>.
* Navigate to your account settings <https://racemap.com/admin/account>.
* Scroll to the API Tokens section and click the "Add Token"-button.
* Copy and store the token secure. You will not be able to view it again once you leave the page

<figure><img src="https://docs.racemap.com/~gitbook/image?url=https%3A%2F%2F1672210197-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-LSRNxaH2Ju9Flr7JhJD%252Fuploads%252Feh2oevZ1yFEeuxGyME2q%252Fimage.png%3Falt%3Dmedia%26token%3D89adbbcc-7548-412b-9471-73aee00280bc&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=937148c6&#x26;sv=2" alt=""><figcaption><p>Manage your API tokens in your RACEMAP account</p></figcaption></figure>

### Using API token

Sample to request participants from your event:

```
curl --location 'https://racemap.com/api/events/:eventId/starters' \
--header 'Authorization: Bearer <API_TOKEN>'
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.racemap.com/api/authentication.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
