Skip to main content

Authentication

MOFH uses a API credential mechanism to allow access to the API. You can find them in your MOFH Admin Panel or access them directly from here.

MOFH requires API credentials to be included in all requests to the server. If a request doesn't include the credentials, the request will be rejected politely at all times.

Shell Example

curl -X POST -u username:password "https://panel.myownfreehost.net/xml-api/"

Python Example

import requests

url = "https://panel.myownfreehost.net/xml-api/" # This is the base URL
data = {}

response = requests.post(url, params=data, auth=('username' 'password'), verify=False)
info

You must replace username and password with your API credentials.