Hi,
I’m having trouble setting up a webhook, specifically the # Handshake response sent by example.com step.
i do it like this:
- I send by postman request estabish a webhook
{
"date": {
"resource": "<project_GID>",
"target": "<Flow Power automate recipient URL>",
"action": "changed",
"filters": [
{
"resource_type": "task"
}
]
}
}
-
in response Flow in Power Autoamte receives # Handshake sent to https://example.com/ in which is X-Hook-Secret
-
I refer to the address https://app.asana.com/api/1.0/webhooks
{
"uri": "https://app.asana.com/api/1.0/webhooks",
"method": "POST",
"headers": {
"X-Hook-Secret": "123445",
"Authorization": "*sanitized*"
},
"body": {
"date": {
"resource": "<project_GID>"
}
}
}
- in response Asana sends back:
{
"statusCode": 400,
"headers": {
"Connection": "keep-alive",
"pragma": "no-cache",
"X-Frame-Options": "DENY",
"X-XSS-Protection": "1; mode=block",
"X-Content-Type-Options": "nosniff",
"Content-Security-Policy": "report-uri https://app.asana.com/-/csp_report?report_only=false;default-src 'none';frame-src 'none';frame-ancestors 'none' ",
"X-Asana-Api-Version": "1.0",
"Asana-Change": "name=new_user_task_lists;info=https://forum.asana.com/t/update-on-our-planned-api-changes-to-user-task-lists-a-k-a-my-tasks /103828,name=new_goal_memberships;info=https://forum.asana.com/t/launched-team-sharing-for-goals/378601;affected=true",
"X-Robots-Tag": "none",
"Cache-Control": "no-store",
"Date": "Thu, 04 May 2023 15:59:42 GMT",
"server": "nginx",
"Content-Length": "188",
"Content-Type": "application/json; charset=UTF-8"
},
"body": {
"errors": [
{
"message": "target: Missing input",
"help": "For more information on API status codes and how to handle them, read the docs on errors: https://developers.asana.com/docs/errors"
}
]
}
}
Where did I go wrong?