Trying to access the Specter Server API (installed at an Umbrel Node) using Python:
import requests
import json
url = 'http://umbrel.local:25441/api/v1alpha/token'
header = {
"Content-Type": "application/json",
}
data = {
"jwt_token_description": "Test Specter API Token",
"jwt_token_life": "30 days"
}
response = requests.post(url, headers=header, data=json.dumps(data))
But getting the following response.text
back:
'<!DOCTYPE html><html lang="en"><head><title>Umbrel</title>
<meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="robots" content="noindex, nofollow">
<meta name="referrer" content="no-referrer">
<link rel="icon" href="favicon.png"><meta name="description" content="Welcome back"><link href="/css/app.65f6aa45.css" rel="preload" as="style"><link href="/js/app.ab94624e.js" rel="preload" as="script"><link href="/js/chunk-vendors.5ff0ba32.js" rel="preload" as="script"><link href="/css/app.65f6aa45.css" rel="stylesheet"></head><body><noscript>
<strong>We\'re sorry but Umbrel doesn\'t work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript><div id="app"></div><script src="/js/chunk-vendors.5ff0ba32.js"></script><script src="/js/app.ab94624e.js"></script></body></html>'
Any ideas how to access the API without going through Umbrel before-request filters?