# Authentication & API structure

Datelist API is a standard HTTP based JSON API that follows a conventional structure.&#x20;

## Authentication&#x20;

Each request must be authenticated with an API key, which you can get in your user profile in the Datelist.io application (<https://datelist.io/users/edit>) .

To use it in your HTTP calls, you must emit each of your request using a custom "Authorization" endpoint, which follows this format:&#x20;

**`Authorization: Bearer API_TOKEN`**&#x20;

## API Structure

Once authenticated, Datelist API will answer your requests using HTTP payload in JSON format. Standard HTTP status code is used to indicate the success or the failure of each request.&#x20;

To be sure to get data in the correct format, be sure to append the following headers:&#x20;

**`Accept: application/json`** \
**`Content-Type: application/json`**


---

# 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://apidoc.datelist.io/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.
