Hi, is it possible to host a web-hook endpoint in a Cognite function?
And is it a good idea?
Answer
Hosting a web-hook endpoint in a cognite function
Best answer by Ivar Stangeby
Hello Czach!
When you say “host a web-hook endpoint”, do you mean spinning up an API endpoint in the Cognite Function, for instance using Flask or FastAPI? Can you help me understand your specific use case?
You won’t be able to keep this server alive, as each Cognite Function invocation has a specific execution time limit.
Regards,
Ivar Stangeby
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Check the
documentation
Ask the
Community
Take a look
at
Academy
Cognite
Status
Page
Contact
Cognite Support