jfa-go icon indicating copy to clipboard operation
jfa-go copied to clipboard

[Feature Request] api for post account action

Open xiNeRoar opened this issue 1 year ago • 1 comments

Wish jfa-go add api to manage post account creation action which can connect to existing automation tool like n8n/ifttt to have more robust usage

xiNeRoar avatar Aug 17 '24 09:08 xiNeRoar

I've added a webhook sorta thing in e5f79c6, in Settings > Webhooks > User Creation. It'll POST to the specified URLs with a JSON payload similar to this (Its the respUser object):

{
    "accounts_admin": true,
    "admin": false,
    "disabled": true,
    "discord": "string",
    "discord_id": "string",
    "email": "[email protected]",
    "expiry": 1617737207510,
    "id": "fdgsdfg45534fa",
    "label": "string",
    "last_active": 1617737207510,
    "matrix": "string",
    "name": "jeff",
    "notify_discord": true,
    "notify_email": true,
    "notify_matrix": true,
    "notify_telegram": true,
    "referrals_enabled": true,
    "telegram": "string"
}

Let me know if this'll do, if there's any missing information you think should be supplied, or if there's any other "events" this feature should support.

hrfee avatar Aug 20 '24 20:08 hrfee