# API Endpoint Configuration

## Default Endpoint

Both mithril implementations use the following default API endpoint:
```
https://api.mlfoundry.com/v2
```

This is the production endpoint for the Foundry Cloud Platform (FCP) API.

## Configuring a Custom Endpoint

### Python (mithril)
The API endpoint is currently hardcoded in `client.py:45`. To use a different endpoint, you would need to modify this line.

**Future Enhancement**: Consider making this configurable via environment variable (e.g., `FCP_API_URL`).

### Node.js (mithril-js)
The API endpoint can be configured using the `FCP_API_URL` environment variable:

```bash
export FCP_API_URL=https://your-custom-api.example.com/v2
mithril list
```

If not set, it defaults to `https://api.mlfoundry.com/v2`.

## Security Note

When using custom API endpoints:
- Ensure the endpoint uses HTTPS for secure communication
- Verify the endpoint's SSL certificate is valid
- Only use endpoints provided by trusted FCP installations