Curl to Webhook conversion (MEATER Temp Probes for BBQ smoker)

I have this curl that I need to convert into a webhook. I've tried various versions and they are failing with Error 400 from the MEATER cloud site.

curl --location --request POST 'https://public-api.cloud.meater.com/v1/login' --header 'Content-Type: application/json' --data-raw '{"email": "my.email.address.here", "password": "my.password.here"}'

Here's my current "custom template" view of my Webhook:

{
"event": "MEATER-Login",
"url": "https://public-api.cloud.meater.com/v1/login",
"requestType": "POST",
"noDefaults": false,
"rejectUnauthorized": true,
"headers": {
"data-raw": "email": "my.email.address.here", "password": "my.password.here",
"Content-Type": "application/json"
},
"json": true
}

any help would be appreciated.
thanks,
Brian

hi Brian, that line above seems to be included in the "headers" section but I think it should go in some sort of "body" section (I do not know if there is one).

Progress! I figured it out and wanted to post the solution for others. Rather than the "body" tag or my "data-raw" tag... I just needed to add the email and password to the "json" tag and everything works now, I get my 200 SUCCESS! back from the MEATER Cloud API and it is returning my auth token that I can now parse out of the response!

Carpe Diem!

Here's my final webhook code Custom Template:

{
"event": "MEATER-Login",
"url": "https://public-api.cloud.meater.com/v1/login",
"requestType": "POST",
"noDefaults": true,
"rejectUnauthorized": false,
"headers": {
"Content-Type": "application/json"
},
"json": {
"event": "{{{PARTICLE_EVENT_NAME}}}",
"data": "{{{PARTICLE_EVENT_VALUE}}}",
"coreid": "{{{PARTICLE_DEVICE_ID}}}",
"published_at": "{{{PARTICLE_PUBLISHED_AT}}}",
"email": "email_here",
"password": "password_here"
}
}

2 Likes

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