# Cloudflare ZTNA

## Connection Requirements

{% stepper %}
{% step %}

### Account ID

Cloudflare Account ID

* Go to Cloudflare Dashboard -> Account Home (top left)
* Under your account name, you’ll see the Account ID
  {% endstep %}

{% step %}

### API Token

You can create an API token in the Cloudflare dashboard.

If you're going to use user token:

* Open Cloudflare Dashboard -> My Profile -> API Tokens.
* Click Create Token.

If you're going to use account token:

* Open API Tokens
* Click Create Token.
  {% endstep %}

{% step %}

### Is Account Token?

Depending on your token type, verification of that token will change. Use this option if you authenticate through account tokens.
{% endstep %}

{% step %}

### Https Proxy

Https Proxy url. (optional)
{% endstep %}

{% step %}

### Users Enrichment

When this option enabled is, Octo will fetch active sessions, failed login attempts and last seen identity information of Users
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
You need **"Audit Logs Read"** permission. For both fetching users and its additional informations. If your token is Account token, then you need **Zero Trust**, **Access: Apps and Policies**, **Access: Device Posture**, **Access: Audit Logs** with "Account" scopes.
{% endhint %}

{% hint style="info" %}
Please perform a **connection test** to ensure there is a valid connection to the host.\
When the discovery operation is finalized, you will be able to see the details on the **Assets** page.
{% endhint %}


---

# 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://docs.octoxlabs.com/adapters/adapters/cloudflare-ztna.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.
