We would recommend you use the document_metadata link returned by the filing history resource, instead of manipulating the API URL yourself. Every resource for a company should be discoverable from the company profile resource, however we are aware that some are missing due to an oversight early on in development. This is in the process of being corrected.
Please take a look at the following post, particularly my response (two or three replies in) for an explanation of the issues with URL manipulation: