getCustomAccount #
Get all tenants configuration data.
Using API:
URL: http://kuzzle:7512/hermes/config/:client/:index
Method: GET
Using Kuzzle SDK:
kuzzle.query({
controller: 'hermes/config',
action: 'getCustomAccount',
index: '<tenantId>',
client: '<client>', // "smtp", "sendgrid" or "twilio"
});
Response example :
{
"status": 200,
"error": null,
"controller": "hermes/config",
"action": "get",
"result": {
"smtpConfig": {
"defaultSender": "<email.example@kuzzle.io>",
"accountName": "<tenant-air_quality-kuzzle>",
"port": <587>,
"host": "<smtp.example.com>",
"user": "<dummyUser>",
"enabled": <true/false>
},
"sendgridConfig": {
"defaultSender": "<amaret@kuzzle.io>",
"apiKey": "<apiKey>",
"accountName": "<tenant-asset_tracking-kuzzle>",
"enabled": <true/false>
},
"twilioConfig": {
"defaultSender": "<+33629951621>",
"accountName": "<tenant-asset_tracking-kuzzle>",
"authToken": "<authToken>",
"accountSid": "<accountSID>",
"enabled": <true/false>
}
}
}
Edit this page on Github(opens new window)