Hi Mate,
It works, the issue was that there was a : after the API-KEY, so it added the : to the key as a characther.
You helpled me a lot, thank you let me know if I can compensate you in any way!!
Here is the final flow if someone needs it:
[
{
"id": "0c64195527255170",
"type": "inject",
"z": "737a0b03786cc867",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"login\":\"email@mail.com\",\"passwordHash\":\"PASSWORDHERE\",\"userRole\":\"USER\"}",
"payloadType": "json",
"x": 170,
"y": 580,
"wires": [
[
"ab1d677a7b42d6ad"
]
]
},
{
"id": "ab1d677a7b42d6ad",
"type": "http request",
"z": "737a0b03786cc867",
"name": "",
"method": "POST",
"ret": "obj",
"paytoqs": "ignore",
"url": "https://api.ajax.systems/api/login",
"tls": "be199a43a6831095",
"persist": false,
"proxy": "",
"insecureHTTPParser": false,
"authType": "bearer",
"senderr": false,
"headers": [
{
"keyType": "Accept",
"keyValue": "",
"valueType": "application/json",
"valueValue": ""
},
{
"keyType": "other",
"keyValue": "X-Api-Key",
"valueType": "other",
"valueValue": "APIKEYHERE"
},
{
"keyType": "Content-Type",
"keyValue": "",
"valueType": "application/json",
"valueValue": ""
}
],
"x": 370,
"y": 580,
"wires": [
[
"c0decdbab911895e"
]
]
},
{
"id": "c0decdbab911895e",
"type": "debug",
"z": "737a0b03786cc867",
"name": "API3",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 510,
"y": 580,
"wires": []
},
{
"id": "be199a43a6831095",
"type": "tls-config",
"name": "",
"cert": "",
"key": "",
"ca": "",
"certname": "",
"keyname": "",
"caname": "",
"servername": "",
"verifyservercert": true,
"alpnprotocol": ""
}
]