Hello, there is currently no relevant document. It is recommended that you use your browser and press F12 to obtain it.
API interface tutorial
aaPanel_thisyear what? passed 4 years and no time?
I try to set SSL using API.
My request is:
array [
"domains" => "["site.com"]"
"auth_type" => "http"
"auth_to" => 136
"auto_wildcard" => 0
"id" => 136
]
but get error:
array [
"status" => false
"msg" => "Specific parameters are invalid!"
]
Can you help me find out which parameter exactly is invalid?
Otherwise, there is a command similar to the one for renewal:
/www/server/panel/pyenv/bin/python3 -u /www/server/panel/class/acme_v2.py --renew=1
who create SSL for specific website?
how to use v2 apis?? help
Hello, you can first obtain the corresponding interface from the developer mode of the browser
- Edited
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
- Edited
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.
- Edited
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
- Edited
aaPanel_Kern
Hello, is it port 7800? I have tried different ports but none worked. I called the API at http://MY_IP/data?action=getData.
aaP_speed
use 25443
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"
hi, Some one have some example about create and duplicate nodejs installation?
rid3xyoy i quote from one of my previous answers "add an extra param called "action" to the post request and put in value "AddSite", i just figured this out having the same issue using the php code ..."