Pipelines connected via GitHub App or Bitbucket Data Center can now be run via API, using a new API V2 endpoint:
https://circleci.com/api/v2/project/circleci/<org-id>/<project-id>/pipeline/run
See the docs for usage instructions. The new endpoint is not yet documented in the V2 API docs.