Skip to content

Instantly share code, notes, and snippets.

View jaredshaunsmith's full-sized avatar

Jared Smith jaredshaunsmith

View GitHub Profile
@jaredshaunsmith
jaredshaunsmith / figma-webhooks.js
Created October 25, 2021 18:09
Figma api webhooks
// 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