API
Base URL: https://api.slingdata.io
Authentication & Headers
All API requests require authentication using a Sling Project Token in the header:
Authorization: Sling-Project-Token xxxxxxxxxxxx
Content-Type: application/jsonProject tokens can be created and managed through the Sling Data Platform, in the Settings > API Tokens section. Each token is associated with a specific project.
Connections
List Connections
GET /connection/listReturns a list of all connections configured for the project.
Response
{
"connections": [
{
"name": "string",
"type": "string"
}
]
}Test Connection
Tests if a connection is valid and accessible.
Request Body
Response
Files
Get File
Retrieves contents of a specific project file.
Query Parameters
name: File path relative to project root
Response
List Files
Lists all files in the project.
Response
Save File
Creates or updates a project file. If the file is a valid Sling job file (replication, pipeline, monitor, or query), it will be parsed and validated before saving. A default job will be automatically created for new Sling job files.
Request Body
Response
Jobs
List Jobs
Lists all jobs in the project.
Request Body
Response
Get Job
Gets details of a specific job.
Query Parameters
job_id: ID of the job
Response
Save Job
Creates or updates a job configuration. The job must reference an existing project file.
Request Body
Response
Run Job
Triggers execution of a job.
Request Body
Response
Executions
Cancel Execution
Cancels a running job run / execution.
Request Body
List Executions
Returns a list of recent job runs / executions.
Query Parameters
status(optional): Filter by execution status:running|success|error|warning|skippedlimit(optional): Number of records to return (max 100)
Response
Get Execution
Fetches details for a single execution by passing an exec_id filter to the list endpoint. The first matching record is the execution.
Query Parameters
filters(required): URL-encoded JSON object containingexec_id. Example:filters=%7B%22exec_id%22%3A%22exc_abc123%22%7D(decodes to{"exec_id":"exc_abc123"})
Response
If no execution matches the given exec_id, the executions array will be empty.
Example
Get Execution Logs (Replication Tasks)
Returns per-task records for a replication execution, including the full log output for each stream task. Use this to retrieve logs for a completed or running replication execution.
Request Body
Set exclude_output to false (or omit it) to include log output in the response. Set it to true for lightweight task listings without the log payload.
Response
Example
Git Sync
Pull from Git
Pulls changes from the configured Git repository and syncs them to the project. This is useful for triggering a sync when changes are pushed to the repository (e.g., via a CI/CD webhook) instead of waiting for the automatic polling interval.
Prerequisites
Git integration must be configured and enabled for the project
The configured branch must exist in the remote repository
Response
Response Fields
pulled: Whether files were pulled from the repositorycreated: Number of new files createdupdated: Number of existing files updateddeleted: Number of files deletedsha: The commit SHA that was syncedcreated_files: Array of newly created file objectsupdated_files: Array of updated file objectsdeleted_file_names: Array of deleted file names
Example: GitHub Actions Webhook
You can trigger a git pull when changes are pushed to your repository using GitHub Actions:
Last updated
Was this helpful?