Failed to persist entry: API_ERROR, domain management

Hi dear Netlify community,

I am getting an error when trying to add something new with netlify cms “failed to persist entry: API_ERROR” However this error only comes when I add a custom domain. Before adding the custom domain and using the url given by netlify add going to the admin panel, everything works great. But when I add the custom domain and go to the website /admin and try to add anything new I get the error.

Hey @ailurophileomoon,
Could you please share your config.yaml for the CMS and the Netlify URL where you’re adding the custom domain? That’ll help us investigate!