Figma Support Forum

403 access denied trying to use the webhook API

I’m admin on the account (professional) and have created an access token. I’m trying to add a webhook to a team like so:

curl -X POST -H 'X-FIGMA-TOKEN: MY_TOKEN_HERE' -H "Content-Type: application/json" 'https://api.figma.com/v2/webhooks' -d '{"event_type":"LIBRARY_PUBLISH","team_id":"TEAM_ID_HERE","endpoint":"END_POINT_HERE","passcode":"PASSCODE_HERE"}'

And I get this error on POST

{
  "error": true,
  "status": 403,
  "message": "You don't have permission to create a webhook for this team."
}

and this error on GET

{
  "error": true,
  "status": 403,
  "message": "You don't have permission to access this team."
}

Confused. What other permissions do I need to setup?