How do I access the app extension with API?

I have a plugin that allows me to add text to the header field in the theme. How do I access the place I added/edited with this plugin with rest api? The text I added in layout/theme.liquid does not appear