
i8prw (i8prw) asked a question.
I'm following the official docs to implement the telephony inline hook: https://developer.okta.com/docs/api/openapi/okta-management/management/tag/InlineHook/*tag/InlineHook/operation/createTelephonyInlineHook
When my service returns successful response to Okta's inline hook everything works as expected. However when it returns a failure (with 200 http status code) I see this parsing error in Okta logs:
Inline Hook execution failed FAILURE: Hook "telephony_hook" execution failed. Could not deserialize inline hook response due to error at Line 1 Column 10
I can't find any major difference between the success and failure responses.
Successful response example:
Failure response example:

Thank you! I figured it out, there is an issue with the official reference docs. The error property should actually be an object and not an array. I'm attaching screenshot marking it..