Channel Management/Publishing
Retry Publish Task
Interface description: Retry a failed publishing task for the current user. taskId comes from data.tasks[n].id in the successful Create Publishing Flow response. The request succeeds only when the task status allows retrying.
POST
/
api
/
v2
/
channels
/
publish
/
tasks
/
{taskId}
/
retry
Retry Publish Task
curl --request POST \
--url https://aitoearn.cn/api/v2/channels/publish/tasks/{taskId}/retry \
--header 'X-Api-Key: <api-key>'import requests
url = "https://aitoearn.cn/api/v2/channels/publish/tasks/{taskId}/retry"
headers = {"X-Api-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://aitoearn.cn/api/v2/channels/publish/tasks/{taskId}/retry', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://aitoearn.cn/api/v2/channels/publish/tasks/{taskId}/retry"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"code": 0,
"message": "Request succeeded",
"data": {
"taskId": "string"
},
"requestId": "string"
}Authorizations
Need to get API Key from AiToEarn. Click to go to "API Key Obtaining Tutorial".
Path Parameters
Task ID from data.tasks[n].id in the Create Publishing Flow response.
Example:
"task-id-from-create-flow"
Response
200 - application/json
The request has been processed by the service. Business success is determined by whether the response body has code === 0.
Last modified on September 29, 2026
⌘I
Retry Publish Task
curl --request POST \
--url https://aitoearn.cn/api/v2/channels/publish/tasks/{taskId}/retry \
--header 'X-Api-Key: <api-key>'import requests
url = "https://aitoearn.cn/api/v2/channels/publish/tasks/{taskId}/retry"
headers = {"X-Api-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://aitoearn.cn/api/v2/channels/publish/tasks/{taskId}/retry', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://aitoearn.cn/api/v2/channels/publish/tasks/{taskId}/retry"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"code": 0,
"message": "Request succeeded",
"data": {
"taskId": "string"
},
"requestId": "string"
}
