Ministry Brands
Authentication
All requests made to Ministry Brands endpoints need to be secured with an Authorization Bearer Token. To receive a token, please contact .
$response = Requests::get($url, array(
'Authorization' => 'Bearer your-bearer-token',
));
Unauthenticated requests will return the following.
{
"error": "Unauthenticated."
}
Login Url
The login url endpoint is used to retrieve a customers branded login url for their particular reseller.
Request Information | |
---|---|
Domain | Contact for current environment domains |
Endpoint | /data-api/ministry-brands/login-url |
Type | GET |
Parameters | site_id |
Headers | 'Content-Type : application/json' 'Accept : application/json' 'Authorization : Bearer your-bearer-token' |
$url = "https://monkcms.localhost/data-api/ministry-brands/login-url?site_id=9";
$response = Requests::get($url, array(
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer your-bearer-token',
));
// Response Json
{
"data": {
"site": {
"id": 9,
"name": "Simple Site!",
"reseller_name": "Ekklesia 360"
},
"url": "https://my.ekklesia360.com/9"
},
"meta": {
"message": "success",
"status": 200
}
}
If there is an error with the request (other than authentication errors), the meta message and status fields will provide additional information.