Phila54
IImmich
•Created by Phila54 on 2/18/2025 in #help-desk-support
API
Nice thanks, thats seems to do the trick
18 replies
IImmich
•Created by Phila54 on 2/18/2025 in #help-desk-support
API
I used 127.0.0.1 I get the same invalid user token
18 replies
IImmich
•Created by Phila54 on 2/18/2025 in #help-desk-support
API
Sorry, I didnt think that I should attach them. Im on version v1.126.1.
I have tried the local ip.
I have done this:
import requests
api_key = 'xx'
url = 'http://192.168.1.52:30041/api/albums'
headers = {
'Authorization': f'Bearer {api_key}'
}
response = requests.get(url, headers=headers)
print(response.json())
And this in local shell and remote:
curl -X GET "http://0.0.0.0:30041/api/albums" \
-H "Authorization: Bearer XX"
And this is the error message.
{'message': 'Invalid user token', 'error': 'Unauthorized', 'statusCode': 401, 'correlationId': 'kjhiwb2o
What my endgoal is to use Immich for wallpanel in homeassistant, where I have no controll of the API call. And that didnt work so I started to troubleshoot and noticed that I cant get the call to work either.
18 replies