> For the complete documentation index, see [llms.txt](https://docs.reveald.com/technical-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.reveald.com/technical-documentation/data-sources-early-access/fortios/generate-a-fortios-api-token.md).

# Generate a FortiOS API Token

{% hint style="warning" %}
This feature is in Early Release/BETA. Please contact your Epiphany Systems support or sales contact to learn more.
{% endhint %}

#### **Step 1:**

* Determine your source address. The source address is needed to ensure the API token can only be used from trusted hosts. You can skip this step if you already know the trusted host IP address.

#### Step 2:

* In the FortiGate GUI, select the **Status** dashboard and locate the **Administrators** widget.
* Select **your-userid** > **Show active administrator sessions**.

#### Step 3:

Create an Administrator profile:

* Select **System** > **Admin Profiles** > **Create New**.
* Populate the fields as shown in the image:

![](/files/WjiNes0L946K7lg8MF7T)

* Select **OK.**

#### Step 4:

Create the REST API Admin:

* Select **System** > **Administrators** > **Create New** > **REST API Admin**.
* Populate the fields as shown in the image:

![](/files/iaxH0WbiWD016VAS0rVe)

* Select **OK**. An API token will be generated.

![](/files/2CWKzKOUpBUgbAI7iFEY)

* Select **Close** to complete creation of the REST API Admin.

{% hint style="warning" %}
Make note of the API token as it is only shown once and cannot be retrieved. It will be needed for the remaining instructions.
{% endhint %}

## FortiOS Manual Collection

In In the event that local API collection is not possible, data can be manually collected for the network modeling process. A command line interface (CLI) connection to the devices is needed, as well as a terminal emulator such as Putty or SecureCRT, capable of logging data presented via the **show** commands used.

#### Step 1:

* Authenticate to the device.
* Enter the following commands into the command line interface:

```
Get Configuration
show
get router info routing-table all
```


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.reveald.com/technical-documentation/data-sources-early-access/fortios/generate-a-fortios-api-token.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
