Unauthorized error while creating a webhook | Community
Skip to main content
Question

Unauthorized error while creating a webhook


Hi,


I’m trying to create a webhook for a form by API call but i ended with this 401 response.

{

    "code": "unauthorized",

    "description": "failed to verify authentication or no authorization to access requested resource"

}

Problem is scopes seems to be ok for me  : 

 

This token works well if i try to get the list of webhooks for a specific form.

 

Am i missing something ? 

 

 

5 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14946 replies
  • May 25, 2023

Hi @pepef Thanks for stopping by the community! Do you mind sharing the API call you’re making? Thanks in advance. 


  • Author
  • Explorer
  • 1 reply
  • May 26, 2023

Ofc, there it is : 


curl --request PUT 'https://api.typeform.com/forms/<formId>/webhooks/<tag>'
--header 'Authorization: Bearer tfp_XXXXXX'

--form 'enabled="true"' 

--form 'url="https://myurl.com"'

 


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14946 replies
  • May 26, 2023

Hi @pepef Are you part of a couple different workspaces? One thing to note is that you’ll want to be sure the token your using is for the workspace where the form resides. If that form resides in a workspace you’re a part of (but not an owner of), you would need to get that token from the owner. 


  • Navigating the Land
  • 1 reply
  • March 26, 2024

@Liz I’m having the same issue, and I’m the owner of the forms. Anything I could do to fix this?


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14946 replies
  • March 26, 2024

HI @gluca Do you mind sharing the request you’re trying to make and/or screenshot? Thanks in advance!


Reply