Jobs / Cancel a job
Captions
Create captionsPOSTSign Morph
Create a morphPOSTVoice
Create speechPOSTSpeech to speech
Translate textPOSTAccount
Get your balanceGETCancel a job
POSThttps://api-staging.talksign.co/v1/jobs/{id}/cancel
Cancels a queued or processing job and refunds its reservation in full. Free.
Headers
AuthorizationstringRequiredBearer authentication of the form Bearer <token>, where the token is your API key (sk-live-… or sk-test-…).
Request body
Path parameters.
idstringRequiredThe job_… id.
Response
Returns the job with status: canceled.
Errors
| Status | Name | When |
|---|---|---|
401 | Unauthorized | The API key is missing or not valid (invalid_api_key). |
404 | Not found | No such resource on your account. |
409 | Conflict | The job already finished (job_not_cancelable). |
Example request
curl -X POST https://api-staging.talksign.co/v1/jobs/job_8c1d2e3f4a5b6c7d8e9f0a1b/cancel \
-H "Authorization: Bearer $TALKSIGN_API_KEY"import os
import requests
res = requests.post(
"https://api-staging.talksign.co/v1/jobs/job_8c1d2e3f4a5b6c7d8e9f0a1b/cancel",
headers={"Authorization": f"Bearer {os.environ['TALKSIGN_API_KEY']}"},
)
print(res.status_code, res.json())const res = await fetch("https://api-staging.talksign.co/v1/jobs/job_8c1d2e3f4a5b6c7d8e9f0a1b/cancel", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.TALKSIGN_API_KEY}`,
},
});
console.log(res.status, await res.json());Example response
200
Response
{
"id": "job_8c1d2e3f4a5b6c7d8e9f0a1b",
"object": "job",
"type": "sign_video",
"status": "canceled"
}Read more in the full reference: Jobs and uploads.
Was this page helpful?