Shared webhook returns "Missing Account ID"

Hi there,

I’m facing issue while trying to send a post request to the shared webhook url. It’s returning “Missing Account ID”, while the uid is already passed to the request body.

Connection:

{
	// Request
	"url": "https://mydomain.com/api/make/whoami",
	"headers": { 
		"Authorization": "Bearer {{parameters.apiKey}}"
	},

	"response": {
		"uid": "{{body.uid}}",
		"valid": "{{body.ok}}",
		"metadata": {
			"type": "email",
			"value": "{{body.user.email}}"
		}
	},

	"log": {
		"sanitize": [
			"request.headers.authorization"
		]
	}
}

Response from the whoami endpoint:

{
    uid: 123,
    ok: true,
    user: {
        email: "name@domain.com",
    }
}

Webhook:

{
	"uid": "{{item.uid}}",
	"output": "{{item.data}}"
}

Post request:

curl --location 'https://shield.make.com/app/sample-123/wk-id-goes-here' \
--header 'Content-Type: application/json' \
--data '{
    "uid": 123,
    "data": {
        "field": "value1",
        "anotherone": false
    }
}'

NOTES:

  • The Module is connected to the Webhook
  • The Webhook is connected to the Connection
  • Creating a scenario goes well, until I reach the stage of “waiting for data”

The response to the POST request is always 400 http status code, with a text message as response saying “Missing Account ID”.

Do you have any idea regarding this issue? Thanks.

Hello,

I ran into the same issue, and submitted a support ticket. They got back to me and said that we should use {{body.uid}} and {{body.data}} if the webhook payload is a dictionary. {{item}} should be used with collections. Hope that helps you!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.