Deployments
Deployments let the user schedule a job to deploy the contents of their workspace repository to their workspace in Meltano Cloud.
This can be done manually or via a GitHub repository webhook:
- Payload URL:
https://app.meltano.com/api/workspaces/<workspace_id>/deployments/github-webhook - Content type:
application/json - Secret: "Deployment Secret" from workspace settings in Meltano Cloud
Requests
Deploy your workspace repository
POST /api/workspaces/{workspaces-id}/deployments
Deploys the workspace {workspace-id}.
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/workspaces/c8cd180d-49e8-413b-b141-75cb65ff46ad/deployments' -i -X POST \
-H 'Content-Type: application/json'
import requests
url = "https://app.matatika.com/api/workspaces/c8cd180d-49e8-413b-b141-75cb65ff46ad/deployments"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("POST", url, headers=headers)
print(response.text.encode('utf8'))
Response
202 Accepted
Job with HAL links.
{
"id" : "6233ae6e-18a0-4e18-8f77-6fb668401554",
"created" : "2026-06-19T18:19:22.96983",
"type" : "WORKSPACE_DEPLOY",
"maxAttempts" : 0,
"attempt" : 0,
"status" : "QUEUED",
"_embedded" : {
"profile" : {
"id" : "auth0|6a21dc7aa1db2e036a222942",
"name" : "sit+prod@meltano.com",
"handle" : "@sit+prod1",
"email" : "sit+prod@meltano.com",
"workingAccount" : {
"company" : "Test Company",
"id" : "auth0|6a21dc7aa1db2e036a222942"
}
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/jobs/6233ae6e-18a0-4e18-8f77-6fb668401554"
},
"delete job" : {
"href" : "https://app.matatika.com/api/jobs/6233ae6e-18a0-4e18-8f77-6fb668401554",
"type" : "DELETE"
},
"logs" : {
"href" : "https://app.matatika.com/api/jobs/6233ae6e-18a0-4e18-8f77-6fb668401554/logs?sequence=0",
"type" : "GET"
},
"withdraw job" : {
"href" : "https://app.matatika.com/api/jobs/6233ae6e-18a0-4e18-8f77-6fb668401554/stopped",
"type" : "PUT"
}
}
}
GitHub webhook workspace deployment
POST /api/workspaces/{workspaces-id}/deployments/github-webhook
Receives POST requests from GitHub and starts a workspace deploy job.
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/workspaces/c8cd180d-49e8-413b-b141-75cb65ff46ad/deployments/github-webhook' -i -X POST \
-H 'X-Hub-Signature: sha1=5164b52295d5b07b5ed8788cd297bd3fe248377f' \
-H 'Content-Type: application/json' \
-d '{ }'
import requests
url = "https://app.matatika.com/api/workspaces/c8cd180d-49e8-413b-b141-75cb65ff46ad/deployments/github-webhook"
data = { }
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("POST", url, headers=headers, data=data)
print(response.text.encode('utf8'))
Response
202 Accepted
Job with HAL links.
{
"id" : "0b8ac9b2-e1cf-467c-9d2d-c1f8fd710955",
"created" : "2026-06-19T18:19:24.658415",
"type" : "WORKSPACE_DEPLOY",
"maxAttempts" : 0,
"attempt" : 0,
"status" : "QUEUED",
"_embedded" : {
"profile" : {
"id" : "auth0|6a21dc7aa1db2e036a222942",
"name" : "sit+prod@meltano.com",
"handle" : "@sit+prod1",
"email" : "sit+prod@meltano.com",
"workingAccount" : {
"company" : "Test Company",
"id" : "auth0|6a21dc7aa1db2e036a222942"
}
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/jobs/0b8ac9b2-e1cf-467c-9d2d-c1f8fd710955"
},
"delete job" : {
"href" : "https://app.matatika.com/api/jobs/0b8ac9b2-e1cf-467c-9d2d-c1f8fd710955",
"type" : "DELETE"
},
"logs" : {
"href" : "https://app.matatika.com/api/jobs/0b8ac9b2-e1cf-467c-9d2d-c1f8fd710955/logs?sequence=0",
"type" : "GET"
},
"withdraw job" : {
"href" : "https://app.matatika.com/api/jobs/0b8ac9b2-e1cf-467c-9d2d-c1f8fd710955/stopped",
"type" : "PUT"
}
}
}