Stack AI error
# 🤝help
w
I need some help with this, I dont know what Im doing wrong. Could you please help me? Let me know if you need any more information besides the pictures provided here:

https://cdn.discordapp.com/attachments/1131241758861303840/1131241759519813674/IMG_0599.jpg

https://cdn.discordapp.com/attachments/1131241758861303840/1131241760039895080/IMG_0597.jpg

https://cdn.discordapp.com/attachments/1131241758861303840/1131241760790683709/IMG_0596.jpg

f
Would you paste the code here?
w
var inNode = 'in-0' var outNode = 'out-0' let url =
https://www.stack-inference.com/run_deployed_flow?flow_id=64a84c95d7a9ad02831e584f&org=c8424df7-fc84-4ac4-9fb1-125fe3a3240b
try { const response = await axios.post( url, { [inNode]:
${event.preview}
}, { headers: { Authorization:
Bearer ${env.apiKey}
, 'Content-Type': 'application/json' } } ) workflow.apiResponse = response.data[outNode] } catch (e) { console.error(
There was an error calling Stack-AI: ${e}
) }
f
Is that hte exact code? it is raising a lof of issues on my side

https://cdn.discordapp.com/attachments/1131241758861303840/1131251536178200616/image.png

I can fixing, I am just confirming
One more question, what is the URL to that platform?
Can you share the Documentation URL?
w
b
Dude just paste your stack Ai api key after Bearer
w
Ive done that I didnt want random people to see it so thats why i didnt put it in here
But thanks though
f
No, that's not it, I can't find the documentation for the API
Or the website to register and get my own API Key
5 Views