> For the complete documentation index, see [llms.txt](https://docs.apica.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apica.io/integrations/overview/generating-a-secure-ingest-token.md).

# Generating a secure ingest token

Apica Ascent uses an ingest token to secure the ingestion of log data from your data sources into your Apica Ascent deployment. You can generate a secure ingest token using the Apica Ascent UI and the command-line tool, [apicactl](https://github.com/ApicaSystem/apicactl).

### Obtaining an ingest token using UI

You can obtain a secure ingest token from the Account tab in the Settings page on the Apica Ascent UI.

To begin, click on the username on the navbar, click "**Settings**", and click on the "Account" tab if you are not brought there by default. Your secure ingest token will be displayed under the **Ingest Token** field. Click the **Copy** icon next to the token to copy it to your clipboard.

![Ingest Token](/files/BXPAnNT0zE0Gn7m2Vs3d)

### Generating using apicactl

To generate a secure ingest token, do the following.

1. [Install](https://github.com/ApicaSystem/apicactl?#quickstart) and [configure](https://github.com/ApicaSystem/apicactl/blob/main/docs/config/apicactl_config.md) `apicactl`, if you haven't already.
2. Run the following command to generate a secure ingest token:

   ```bash
   apicactl get httpingestkey
   ```
3. Copy the ingest key generated by running the command above and save it in a secure location.

You can now use this ingest token while configuring Apica Ascent to ingest data from your data sources, especially while using log forwarders like Fluent Bit or Logstash.
