2024-08-20, 01:21 PM
(This post was last modified: 2024-08-20, 03:03 PM by olivia Barker. Edited 5 times in total.)
i was looking at the jellyfin api and i saw this section of it https://api.jellyfin.org/#tag/Startup i think i can use this to do what i want then i can add libaries using the libarystructure routes. It still doesnt fix things like watch time but it would let me automate the setup like i wanted i used dev tools to copy the request and parameters sent to api via the web client. im slightly confused as the startup ommands still require and api key. i am trying to get an api key using the command "curl -L -v -X POST -H "Accept: application/json" -d "app=test" http://127.0.0.1:8096/Auth/Keys"
this is so i can get the api key required for the other requests however im getting a 401 unautharised
i tried pulling the authorization header from the setup wizard's requests but it sats i have a malformed input somewhere i tried escaping the " inside the header but i still get the same thing
this is so i can get the api key required for the other requests however im getting a 401 unautharised
Note: Unnecessary use of -X or --request, POST is already inferred.
* Trying 127.0.0.1:8096...
* Connected to 127.0.0.1 (127.0.0.1) port 8096
> POST /Auth/Keys HTTP/1.1
> Host: 127.0.0.1:8096
> User-Agent: curl/8.9.1
> Accept: application/json
> Content-Length: 8
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 8 bytes
< HTTP/1.1 401 Unauthorized
< Content-Length: 0
< Date: Tue, 20 Aug 2024 14:47:40 GMT
< Server: Kestrel
< X-Response-Time-ms: 0.4857
<
* Connection #0 to host 127.0.0.1 left intact
i tried pulling the authorization header from the setup wizard's requests but it sats i have a malformed input somewhere i tried escaping the " inside the header but i still get the same thing