what is x-http-token and how can i create cookie in v2 api

here is my code

fetch("/v2/project/nodejs/get_project_list", {
headers: {
accept: "application/json, text/plain, /",
"accept-language": "en-US,en;q=0.9",
"content-type": "application/x-www-form-urlencoded",
"x-http-token": "ZtCa1LiYjWFkKZvl50M3FapeivLX
*****",
cookie:
"1933861057760
********=e394f293-7901-4948-b000-***.9ZPNEvZkG*****",
},
body: "data=%7B%22p%22%3A1%2C%22limit%22%3A10%2C%22search%22%3A%22%22%7D",
method: "POST",
})
.then((response) => response.json())
.then((data) => console.log(data.message.data))
.catch((error) => console.log(error));

i wanna know here do i put my api key

3 months later

I discovered a great Chrome extension that records API calls and captures aaPanel api endpoints. It's quite useful and might be beneficial for others as well.

Here is the Link

14 days later

HI, I can't call the API through port 8888, it always times out. Has the API port been changed? pls help me @aaPanel_Kern, Thanks you so much!

    Hello, please check what ports your own aaPanel is using? Currently, the port of aaPanel is random

    aaP_speed

      aaPanel_Kern
      Thanks you, It seems like the port is correct, but the API always returns a 404 error. Is there something wrong with the code below?

      #!/bin/bash

      API_KEY="API_KEY"
      API_URL="http://MY_IP:25443/data?action=getData"

      response=$(curl -s -X GET "$API_URL" -H "Authorization: Bearer $API_KEY")

      echo "$response"

      6 days later

      hi, Some one have some example about create and duplicate nodejs installation?