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
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
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
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?