Skip to content

Commit 9e84f16

Browse files
authored
chore: user_email in webhook for flag updates (#682)
* chore: user_email in webhook for flag updates * _flag
1 parent bca62f8 commit 9e84f16

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/reference/webhook.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,19 @@ In short, any operation visible in the Flag History is sent to the webhook.
108108
"flag": {
109109
"id": <flag_id>,
110110
"key": "<flag_key>"
111+
},
112+
"meta_data": {
113+
"user_email": "<email_of_user_who_updated_flag>"
111114
}
112115
},
113116
"signature": "<signature>"
114117
}
115118
```
116119

120+
:::note
121+
The `"user_email"` field is only available if the flag was updated via the UI. Updates by the API will have `"meta_data": {}`.
122+
:::
123+
117124
## Configuring the webhook
118125

119126
To use the webhook, you first need to setup a URL on your side to receive the webhook request.

0 commit comments

Comments
 (0)