I can help you troubleshoot this API issue!
The error "not an array" suggests the API is expecting knowledge_base_texts to be an array format, but it's receiving something else. Looking at your request body, it appears you're sending an object structure when it might need an array of text objects.
Can you share the exact JSON body you're sending in your POST request? That will help me identify the formatting issue causing the 500 error.
@intellicall