> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getjusto.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Autenticación

La autenticación es esencial para proteger los recursos de la API. Este sistema usa tokens definidos por el usuario en el panel de administración.

## Uso del Token

Las llamadas que hagas a los endpoints deben incluir el token en el header `Authorization` de su solicitud HTTP.

<CodeGroup>
  ```bash cURL theme={null}
  curl --request POST \
    --url https://api.getjusto.com/api/v2/health \
    --header 'Authorization: Bearer <authorization>' \
    --header 'Content-Type: application/json'
  ```

  ```js Javascript theme={null}
  const options = {
    method: 'POST',
    headers: {
      Authorization: 'Bearer <authorization>',
      'Content-Type': 'application/json',
    },
  };

  fetch(
    'https://api.getjusto.com/api/v2/health',
    options
  )
    .then((response) => response.json())
    .then((response) => console.log(response))
    .catch((err) => console.error(err));
  ```

  ```python Python theme={null}
  import requests

  url = "https://api.getjusto.com/api/v2/health"

  headers = {
      "Authorization": "Bearer <authorization>",
      "Content-Type": "application/json"
  }

  response = requests.request("POST", url, headers=headers)

  print(response.text)
  ```
</CodeGroup>
