Detiene la marcación de un lote
curl --request POST \
--url https://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/stop \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"reason": "manual"
}
'import requests
url = "https://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/stop"
payload = { "reason": "manual" }
headers = {
"apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {apikey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: 'manual'})
};
fetch('https://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/stop', 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://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/stop",
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([
'reason' => 'manual'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"apikey: <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://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/stop"
payload := strings.NewReader("{\n \"reason\": \"manual\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("apikey", "<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://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/stop")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"manual\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/stop")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["apikey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reason\": \"manual\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3f8a1b2c-5d6e-4f70-8a9b-1c2d3e4f5a6b",
"status": "stopped",
"statusReason": "manual",
"statusChangedAt": "2026-08-10T15:42:00.000Z",
"statusChangedBy": "user@example.com"
}Lotes
Detener un lote
Detiene la marcación de un lote activo.
POST
/
batches
/
{batchId}
/
stop
Detiene la marcación de un lote
curl --request POST \
--url https://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/stop \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"reason": "manual"
}
'import requests
url = "https://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/stop"
payload = { "reason": "manual" }
headers = {
"apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {apikey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: 'manual'})
};
fetch('https://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/stop', 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://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/stop",
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([
'reason' => 'manual'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"apikey: <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://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/stop"
payload := strings.NewReader("{\n \"reason\": \"manual\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("apikey", "<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://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/stop")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"manual\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.backend.inconcertcc.com/autocontact/api/v1/batches/{batchId}/stop")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["apikey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reason\": \"manual\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3f8a1b2c-5d6e-4f70-8a9b-1c2d3e4f5a6b",
"status": "stopped",
"statusReason": "manual",
"statusChangedAt": "2026-08-10T15:42:00.000Z",
"statusChangedBy": "user@example.com"
}Detiene la marcación del lote sin eliminarlo ni borrar sus contactos.
cURL
curl --request POST \
--url 'https://api.backend.inconcertcc.com/autocontact/api/v1/batches/5b591fcb-6beb-4157-b932-e8e707eeb6d7/stop' \
--header 'apikey: TU_API_KEY' \
--data ''
Authorizations
API key obtenida desde la interfaz de Inagent, dentro del marcador.
Path Parameters
Id del lote.
Body
application/json
Motivo de la detención. manual corresponde a una detención solicitada;
scheduled, a una detención por horario.
Queda registrado en el historial del lote y permite distinguir después por qué dejó de marcar.
Available options:
manual, scheduled Was this page helpful?

