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/71c0ef56-7f7e-47c1-9700-2d7e2eb5a04e/deployments' -i -X POST \
-H 'Content-Type: application/json'
import requests
url = "https://app.matatika.com/api/workspaces/71c0ef56-7f7e-47c1-9700-2d7e2eb5a04e/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" : "4a98dcd6-94d7-473b-9267-549d00cded8b",
"created" : "2026-06-10T07:13:39.471348",
"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/4a98dcd6-94d7-473b-9267-549d00cded8b"
},
"delete job" : {
"href" : "https://app.matatika.com/api/jobs/4a98dcd6-94d7-473b-9267-549d00cded8b",
"type" : "DELETE"
},
"logs" : {
"href" : "https://app.matatika.com/api/jobs/4a98dcd6-94d7-473b-9267-549d00cded8b/logs?sequence=0",
"type" : "GET"
},
"withdraw job" : {
"href" : "https://app.matatika.com/api/jobs/4a98dcd6-94d7-473b-9267-549d00cded8b/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/71c0ef56-7f7e-47c1-9700-2d7e2eb5a04e/deployments/github-webhook' -i -X POST \
-H 'X-Hub-Signature: sha1=0931c63f2fe9f9cffba744c04279a979e47cb311' \
-H 'Content-Type: application/json' \
-d '{ }'
import requests
url = "https://app.matatika.com/api/workspaces/71c0ef56-7f7e-47c1-9700-2d7e2eb5a04e/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" : "07f7414e-d56c-4080-bca7-8c47b3eebfcd",
"created" : "2026-06-10T07:13:42.892132",
"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/07f7414e-d56c-4080-bca7-8c47b3eebfcd"
},
"delete job" : {
"href" : "https://app.matatika.com/api/jobs/07f7414e-d56c-4080-bca7-8c47b3eebfcd",
"type" : "DELETE"
},
"logs" : {
"href" : "https://app.matatika.com/api/jobs/07f7414e-d56c-4080-bca7-8c47b3eebfcd/logs?sequence=0",
"type" : "GET"
},
"withdraw job" : {
"href" : "https://app.matatika.com/api/jobs/07f7414e-d56c-4080-bca7-8c47b3eebfcd/stopped",
"type" : "PUT"
}
}
}