Forum Discussion

Pakhi's avatar
Pakhi
New Contributor III
4 years ago

Snaplogic Pipeline Exposed as API

When we create a Task for any Pipeline then it creates a task URL which is an API. If we give that URL to any third party application to run our pipeline from their application, How they will be able to trigger that API through external application.

What we will have to do for this?

9 Replies

  • Hi @Pakhi ,

    If you look at the documentation for Running a Triggered Task, you can see that when you create a task for pipeline, there is bearer token used for authentication.
    So, if you copy/paste the URL(API) in, let’s say postman, you have to set the bearer token in order to execute the API.

    BR,
    Marjan

    • Pakhi's avatar
      Pakhi
      New Contributor III

      suppose there is a different application for scheduling all the jobs of snaplogic. so what kind of configuration we need to do in that application other than giving the url(API) so that that application will be able to access that API

  • SpiroTaleski's avatar
    SpiroTaleski
    Valued Contributor

    @Pakhi

    Apart from using the bearer token, basic authentication can be used also for triggering the SnapLogic Triggered Task(API).

    BR,
    Spiro Taleski

  • evanhk's avatar
    evanhk
    New Contributor II

    @Pakhi

    If you add “?bearer_token=YOUR_BEARER_TOKEN” at the end of the cloud url, you should be able to trigger it form anywhere.