Skip to main content

Trigger Pipeline API

The Trigger Pipeline API allows you to start the execution of a pipeline in a deployed project. This is useful when you want to automate pipeline runs without relying on Prophecy's built-in scheduling.

The API returns request responses in JSON format.

There are two endpoints:


POST Trigger Deployed Pipeline

Endpoint

https://app.prophecy.io/api/trigger/pipeline
info

Replace the base URL with your environment URL for dedicated SaaS and self-hosted deployments.

Request Headers

The following headers are required for the request.

KeyValueDescription
X-AUTH-TOKEN{{auth_token}}Your Prophecy access token

Body Parameters

The following are valid parameters for the request body.

Field NameTypeRequiredDescriptionExample
fabricIdLongYesUnique identifier of the data fabric where the pipeline resides. You can find the ID in the URL of the fabric metadata page.90645
pipelineNameStringYesName of the pipeline to be triggered.data_processing_pipeline
projectIdStringYesUnique ID of the project where the pipeline resides. You can find this string in the URL of the project editor or metadata page.46059
parametersJSONNoMap of key-value pairs representing pipeline parameters. These will override default parameter values.{"parameter_1": "1234", "parameter_2": "table_1"}
branchStringNoSpecific branch of the pipeline to execute. If omitted, the current working branch is used.dev
versionStringNoSpecific version of the project containing the pipeline. If omitted, the latest version is used.2
processNameStringNoName of a specific gem within the pipeline. If provided, the pipeline will not run beyond this gem. If no processName is specified, the full pipeline is executed.aggregated_orders

Example cURL

This example triggers a pipeline called bakehouse that executes on fabric 33290.

curl --location 'https://app.prophecy.io/api/trigger/pipeline' \
--header 'X-AUTH-TOKEN: <prophecy-pat>' \
--header 'Content-Type: application/json' \
--data '{
"fabricId": 33290,
"pipelineName": "bakehouse",
"parameters": {
"franchise_id": "3000007"
},
"version": "2",
"projectId": "41459",
"processName": "franchise_reviews"
}'

Response Body

The following fields may appear in the response body of your request.

FieldDescription
successIndicates whether the request to trigger the pipeline was successful. It does not reflect the success of the pipeline run.
runIdUnique identifier of the pipeline run generated by this request.
msgMessage that explains the outcome of the request. If the request fails, an error message is provided here.

Example Response

This example shows the response to a request with an invalid fabric ID.

{
"success": false,
"msg": "error in triggering pipeline: Success(Left(sdl.md.client.package$MetadataException: Fabric with uid `2290` not found)) (of class scala.util.Success)"
}

GET Pipeline Run Status

Endpoint

https://app.prophecy.io/api/trigger/pipeline/{{runId}}
info

Replace the base URL with your environment URL for dedicated SaaS and self-hosted deployments.

Request Headers

The following headers are required for the request.

KeyValueDescription
X-AUTH-TOKEN{{auth_token}}Your Prophecy access token

Example cURL

This example retrieves the status of a pipeline with a specific runID.

curl --location 'https://app.prophecy.io/api/trigger/pipeline/MDAw-xZGYzYzc3LTYzdsSdfx--LTQ3NTQ1ZYjI2Mw==' \
--header 'X-AUTH-TOKEN: <prophecy-pat>'

Response Body

The following fields may appear in the response body of your request.

FieldDescription
successIndicates whether the request to retrieve the pipeline run status was successful. It does not reflect the success of the run.
runIdUnique identifier of the pipeline run.
createdAtTimestamp when the pipeline run record was created. Returns ISO 8601 format, including microseconds.
updatedAtTimestamp when the pipeline run record was last updated. Returns ISO 8601 format, including microseconds.
projectIdID of the project associated with this pipeline run.
pipelineNameName of the pipeline associated with this run.
fabricIdID of the fabric where the pipeline resides.
runStatusExecution status of the pipeline run. Possible values include RUNNING, ERROR, or SUCCEEDED.
errorMessageDescriptive error message if the runStatus is ERROR.

Example Response

This example shows the response to a successful request. It also shows that the pipeline run succeeded.

{
"success": true,
"runId": "MDAw-xZGYzYzc3LTYzdsSdfx--LTQ3NTQ1ZYjI2Mw==",
"createdAt": "2025-06-17T18:01:49.275359",
"updatedAt": "2025-06-17T18:02:41.712486",
"projectId": "41459",
"pipelineName": "bakehouse",
"fabricId": "33290",
"runStatus": "SUCCEEDED"
}