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

# PeerDB API Reference

PeerDB provides multiple API endpoints to interact with it through the UI endpoint as a proxy.
This is an ongoing effort to eventually expose all of PeerDB's functionality in the form of API endpoints for programmatic use-cases.

## Base endpoint

The base endpoint is the URL of PeerDB UI.

**PeerDB OSS**

When running PeerDB OSS on Docker, PeerDB UI is exposed at:

```
http://localhost:3000
```

**PeerDB Cloud**

When using PeerDB Cloud, the URL is provided as part of the PeerDB instance you purchase.

## Authentication

PeerDB API uses basic authentication.
The username is empty and the password is the same password used to login to PeerDB UI.

<CodeGroup>
  ```bash cURL theme={null}
  curl --request POST \
    --url http://localhost:3000/api/v1/mirrors/status \
    --header
      'Authorization
      : Basic
      OnBlZXJkYg==' \
  --header
      'Content-Type
      : application/json' \
  ```

  ```javascript Axios theme={null}
  axios.post('http://localhost:3000/api/v1/mirrors/status', {}, {
    headers: {
      'Authorization': 'Basic OnBlZXJkYg==',
      'Content-Type': 'application/json'
    }
  })
  ```
</CodeGroup>
