Delete Tasks
curl --request POST \
--url https://docflow.textin.ai/api/app-api/sip/platform/v2/file/delete \
--header 'Content-Type: application/json' \
--header 'x-ti-app-id: <api-key>' \
--header 'x-ti-secret-code: <api-key>' \
--data '
{
"workspace_id": 1234567890,
"batch_number": [
"202412190001",
"202412190002"
],
"task_id": [
"1978297791713619968",
"1978297791713619969"
],
"file_id": [
"1978297792124661760",
"1978297792124661761"
],
"start_time": 1760523600,
"end_time": 1760523600
}
'import requests
url = "https://docflow.textin.ai/api/app-api/sip/platform/v2/file/delete"
payload = {
"workspace_id": 1234567890,
"batch_number": ["202412190001", "202412190002"],
"task_id": ["1978297791713619968", "1978297791713619969"],
"file_id": ["1978297792124661760", "1978297792124661761"],
"start_time": 1760523600,
"end_time": 1760523600
}
headers = {
"x-ti-app-id": "<api-key>",
"x-ti-secret-code": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-ti-app-id': '<api-key>',
'x-ti-secret-code': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
workspace_id: 1234567890,
batch_number: ['202412190001', '202412190002'],
task_id: ['1978297791713619968', '1978297791713619969'],
file_id: ['1978297792124661760', '1978297792124661761'],
start_time: 1760523600,
end_time: 1760523600
})
};
fetch('https://docflow.textin.ai/api/app-api/sip/platform/v2/file/delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://docflow.textin.ai/api/app-api/sip/platform/v2/file/delete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'workspace_id' => 1234567890,
'batch_number' => [
'202412190001',
'202412190002'
],
'task_id' => [
'1978297791713619968',
'1978297791713619969'
],
'file_id' => [
'1978297792124661760',
'1978297792124661761'
],
'start_time' => 1760523600,
'end_time' => 1760523600
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-ti-app-id: <api-key>",
"x-ti-secret-code: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://docflow.textin.ai/api/app-api/sip/platform/v2/file/delete"
payload := strings.NewReader("{\n \"workspace_id\": 1234567890,\n \"batch_number\": [\n \"202412190001\",\n \"202412190002\"\n ],\n \"task_id\": [\n \"1978297791713619968\",\n \"1978297791713619969\"\n ],\n \"file_id\": [\n \"1978297792124661760\",\n \"1978297792124661761\"\n ],\n \"start_time\": 1760523600,\n \"end_time\": 1760523600\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-ti-app-id", "<api-key>")
req.Header.Add("x-ti-secret-code", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://docflow.textin.ai/api/app-api/sip/platform/v2/file/delete")
.header("x-ti-app-id", "<api-key>")
.header("x-ti-secret-code", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"workspace_id\": 1234567890,\n \"batch_number\": [\n \"202412190001\",\n \"202412190002\"\n ],\n \"task_id\": [\n \"1978297791713619968\",\n \"1978297791713619969\"\n ],\n \"file_id\": [\n \"1978297792124661760\",\n \"1978297792124661761\"\n ],\n \"start_time\": 1760523600,\n \"end_time\": 1760523600\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://docflow.textin.ai/api/app-api/sip/platform/v2/file/delete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-ti-app-id"] = '<api-key>'
request["x-ti-secret-code"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"workspace_id\": 1234567890,\n \"batch_number\": [\n \"202412190001\",\n \"202412190002\"\n ],\n \"task_id\": [\n \"1978297791713619968\",\n \"1978297791713619969\"\n ],\n \"file_id\": [\n \"1978297792124661760\",\n \"1978297792124661761\"\n ],\n \"start_time\": 1760523600,\n \"end_time\": 1760523600\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"msg": "<string>",
"result": {
"deleted_count": 1
}
}API Reference
Delete Tasks
Delete files by conditions. Files matching any condition will be deleted.
POST
/
api
/
app-api
/
sip
/
platform
/
v2
/
file
/
delete
Delete Tasks
curl --request POST \
--url https://docflow.textin.ai/api/app-api/sip/platform/v2/file/delete \
--header 'Content-Type: application/json' \
--header 'x-ti-app-id: <api-key>' \
--header 'x-ti-secret-code: <api-key>' \
--data '
{
"workspace_id": 1234567890,
"batch_number": [
"202412190001",
"202412190002"
],
"task_id": [
"1978297791713619968",
"1978297791713619969"
],
"file_id": [
"1978297792124661760",
"1978297792124661761"
],
"start_time": 1760523600,
"end_time": 1760523600
}
'import requests
url = "https://docflow.textin.ai/api/app-api/sip/platform/v2/file/delete"
payload = {
"workspace_id": 1234567890,
"batch_number": ["202412190001", "202412190002"],
"task_id": ["1978297791713619968", "1978297791713619969"],
"file_id": ["1978297792124661760", "1978297792124661761"],
"start_time": 1760523600,
"end_time": 1760523600
}
headers = {
"x-ti-app-id": "<api-key>",
"x-ti-secret-code": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-ti-app-id': '<api-key>',
'x-ti-secret-code': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
workspace_id: 1234567890,
batch_number: ['202412190001', '202412190002'],
task_id: ['1978297791713619968', '1978297791713619969'],
file_id: ['1978297792124661760', '1978297792124661761'],
start_time: 1760523600,
end_time: 1760523600
})
};
fetch('https://docflow.textin.ai/api/app-api/sip/platform/v2/file/delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://docflow.textin.ai/api/app-api/sip/platform/v2/file/delete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'workspace_id' => 1234567890,
'batch_number' => [
'202412190001',
'202412190002'
],
'task_id' => [
'1978297791713619968',
'1978297791713619969'
],
'file_id' => [
'1978297792124661760',
'1978297792124661761'
],
'start_time' => 1760523600,
'end_time' => 1760523600
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-ti-app-id: <api-key>",
"x-ti-secret-code: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://docflow.textin.ai/api/app-api/sip/platform/v2/file/delete"
payload := strings.NewReader("{\n \"workspace_id\": 1234567890,\n \"batch_number\": [\n \"202412190001\",\n \"202412190002\"\n ],\n \"task_id\": [\n \"1978297791713619968\",\n \"1978297791713619969\"\n ],\n \"file_id\": [\n \"1978297792124661760\",\n \"1978297792124661761\"\n ],\n \"start_time\": 1760523600,\n \"end_time\": 1760523600\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-ti-app-id", "<api-key>")
req.Header.Add("x-ti-secret-code", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://docflow.textin.ai/api/app-api/sip/platform/v2/file/delete")
.header("x-ti-app-id", "<api-key>")
.header("x-ti-secret-code", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"workspace_id\": 1234567890,\n \"batch_number\": [\n \"202412190001\",\n \"202412190002\"\n ],\n \"task_id\": [\n \"1978297791713619968\",\n \"1978297791713619969\"\n ],\n \"file_id\": [\n \"1978297792124661760\",\n \"1978297792124661761\"\n ],\n \"start_time\": 1760523600,\n \"end_time\": 1760523600\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://docflow.textin.ai/api/app-api/sip/platform/v2/file/delete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-ti-app-id"] = '<api-key>'
request["x-ti-secret-code"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"workspace_id\": 1234567890,\n \"batch_number\": [\n \"202412190001\",\n \"202412190002\"\n ],\n \"task_id\": [\n \"1978297791713619968\",\n \"1978297791713619969\"\n ],\n \"file_id\": [\n \"1978297792124661760\",\n \"1978297792124661761\"\n ],\n \"start_time\": 1760523600,\n \"end_time\": 1760523600\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"msg": "<string>",
"result": {
"deleted_count": 1
}
}Body
application/json
Workspace ID
Example:
1234567890
Batch number list
Example:
["202412190001", "202412190002"]
Task ID list
Example:
[ "1978297791713619968", "1978297791713619969" ]
File ID list
Example:
[ "1978297792124661760", "1978297792124661761" ]
Start time (epoch timestamp, unit: seconds)
Example:
1760523600
End time (epoch timestamp, unit: seconds)
Example:
1760523600
⌘I

