Post Request to API Endpoint

Hello,

How can i send a POST Request to an API when using a lookup table?

Idea is to simulate this request in a lookup table. I checked HTTP Json Path but it seems it does not support POST and BODY PARAMs.

API_KEY="YOUR_API_KEY"

curl -X POST \
  -H 'Content-Type: application/json' \
  -H "x-goog-api-key: ${API_KEY}" \
  -d '{
  "contents": [
    {
      "role": "user",
      "parts": [
        { "text": "What is the weather like in London today?" }
      ]
    }
  ]
}' "https://generativelanguage.googleapis.com/v1/models/gemini-pro:generateContent"

Thank you

hey @AlexTratisky

Graylog has many API’s , you can check here.

https://go2docs.graylog.org/5-0/setting_up_graylog/rest_api.html

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