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/json

Project 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/list

Returns 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 | skipped

  • limit (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 repository

  • created: Number of new files created

  • updated: Number of existing files updated

  • deleted: Number of files deleted

  • sha: The commit SHA that was synced

  • created_files: Array of newly created file objects

  • updated_files: Array of updated file objects

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