Automation
Seqera Platform provides multiple methods of programmatic interaction to automate the execution of pipelines, chain pipelines together, and integrate Platform with third-party services.
Platform API
The Seqera Platform public API is the lowest-level method of programmatic interaction. All operations available in the user interface can be achieved through the API.
The API can be used to trigger the launch of pipelines based on a file event (such as the upload of a file to a bucket) or completion of a previous run.
The API can be accessed from https://api.cloud.seqera.io
.
The full list of endpoints is available in Seqera's OpenAPI schema. The API requires an authentication token to be specified in every API request. This can be created in your user menu under Your tokens.
The token is only displayed once. Store your token in a secure place. Use this token to authenticate requests to the API.
Example pipeline launch API request
curl -X POST "https://api.cloud.seqera.io/workflow/launch?workspaceId=38659136604200" \
-H "Accept: application/json" \
-H "Authorization: Bearer <your_access_token>" \
-H "Content-Type: application/json" \
-H "Accept-Version:1" \
-d '{
"launch": {
"computeEnvId": "hjE97A8TvD9PklUb0hwEJ",
"runName": "first-time-pipeline-api-byname",
"pipeline": "first-time-pipeline",
"workDir": "s3://nf-ireland",
"revision": "master"
}
}'