> ## 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.

```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'
  }
})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.