API Error: 1015 Unable to purge <url>

I’m using the Cloudflare API to purge cached files. Occasionally I get an error response:

1015 Unable to purge <url>

The docs aren’t clear as to why this is occurring. Is this a catch-all or is there specific scenario that causes this error.

Is there a log of cache invalidations that I can use to troubleshoot this?