API not matching System ID

im trying to upload my data to pvoutput from Shelly em gen3 and its throwing up a fault of API not matching my System ID .

Response body: Unauthorized 401: Invalid System ID

21:49:32

:x: Invalid API key or System ID!
Its the key and ID provided so any thoughts on whats happening please.

Test the sid and key in a browser to see if you get the same error -

e.g. https://pvoutput.org/service/r2/getsystem.jsp?sid=your_sid&key=your_key