Get report subscriptions
GET
/api/user/report-subscriptions
const url = 'https://hitkeep.com/api/user/report-subscriptions';const options = {method: 'GET', headers: {cookie: 'hk_token=<hk_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://hitkeep.com/api/user/report-subscriptions \ --cookie hk_token=<hk_token>Returns all report subscription preferences for the authenticated user, including per-site and digest settings.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Report subscriptions
Media type application/json
object
digest
object
daily
boolean
monthly
boolean
weekly
boolean
sites
Array<object>
object
daily
boolean
domain
string
monthly
boolean
site_id
string format: uuid
weekly
boolean
Example generated
{ "digest": { "daily": true, "monthly": true, "weekly": true }, "sites": [ { "daily": true, "domain": "example", "monthly": true, "site_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "weekly": true } ]}