# Configure and Verify the Rest API

{% hint style="warning" %}
This guide is under construction. Please excuse our dust.
{% endhint %}

#### Step 1: Configure the Rest API

* Copy and paste the commands below to a text file, making sure to remove any line breaks.
* Copy and paste the commands into the command line interface (CLI) at the \[edit] hierarchy level, and then enter commit from configuration mode.

```
set system services rest http port 3000
set system services rest https port 3443
set system services rest enable-explorer
commit and-quit
```

#### Step 2: Verify the Rest API Configuration

* Display the rest API configuration by issuing the **show** **configuration system** **services rest** operational mode command:

```
show configuration system services rest
```

#### Step 3: Create a Read-Only User

* Generate a new user:

```
set system login user epiphany class read-only authentication encrypted-password <password>
```


---

# 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.reveald.com/technical-documentation/data-sources-early-access/juniper-os/configure-and-verify-the-rest-api.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.
