This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get all registered Figma webhooks | |
const listWebHooks = async () => { | |
const response = await axios({ | |
url: `https://api.figma.com/v2/teams/${FIGMA_TEAM_ID}/webhooks`, | |
method: 'get', | |
headers: { | |
'X-Figma-Token': YOUR_FIGMA_PERSONAL_ACCESS_TOKEN, | |
} | |
}) | |
return response.data.webhooks |