Site

To obtain sites, you must convey an token .

Parameter Description Format Default value
enabled_ssl Is ssl enabled? 0 for disabled or 1 for enabled 0
id site ID int -
name site name string -
ssl_cert your ssl certificate string -
ssl_key your ssl key string -
verified Is the site verified? 0 or 1 0

System sites do not contain the enabled_ssl, ssl_cert, ssl_key, verified

Sites list
curl -H "token: your_token" 'https://api.might.io/site'

After a successful execution of the request you will receive JSON object:

{ "success": true, "data": [ { "id": 4, "name": "mighttrack.com" }, { "enabled_ssl": 0, "id": 5, "name": "your_domain.com", "ssl_cert": "", "ssl_key": "", "verified": 0, }, ... ], }

Object description

Get site by id
curl -H "token: your_token" 'https://api.might.io/site/your_site_id'

Where:

  • your_site_id - site ID

After a successful execution of the request you will receive JSON object:

{ "success": true, "data": { "enabled_ssl": 0, "id": 5, "name": "your_domain.com", "ssl_cert": "", "ssl_key": "", "verified": 0, }, }

Object description