Automating the combining of PDFs

I see there is a feature to combine PDFs.  Is there an API that would allow the automation of the 'combining' process from within a program?