Thanks for posting this question! You're looking in the right place for the target attribute — it should be available under
text.spans.data.target . This looks like it could be an issue with retrieving the most up-to-date API response. Have you tried following these steps to debug your API response?
If that doesn't help, you can send me the name of your repo and the id of the document in your example, and I can take a look to try to identify an issue.
Otherwise, please let me know if you have any other questions