Trigger an execution for all project queries
curl --request POST \
--url https://api.mentionlab.io/api/jobs/trigger \
--header 'Content-Type: application/json' \
--header 'x-project-id: <x-project-id>' \
--data '
{
"aiModels": [
"scp-ml-chatgpt",
"claude-haiku-latest",
"gemini-2.5-flash"
],
"executionCount": 3,
"force": false
}
'import requests
url = "https://api.mentionlab.io/api/jobs/trigger"
payload = {
"aiModels": ["scp-ml-chatgpt", "claude-haiku-latest", "gemini-2.5-flash"],
"executionCount": 3,
"force": False
}
headers = {
"x-project-id": "<x-project-id>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-project-id': '<x-project-id>', 'Content-Type': 'application/json'},
body: JSON.stringify({
aiModels: ['scp-ml-chatgpt', 'claude-haiku-latest', 'gemini-2.5-flash'],
executionCount: 3,
force: false
})
};
fetch('https://api.mentionlab.io/api/jobs/trigger', 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.mentionlab.io/api/jobs/trigger",
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([
'aiModels' => [
'scp-ml-chatgpt',
'claude-haiku-latest',
'gemini-2.5-flash'
],
'executionCount' => 3,
'force' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-project-id: <x-project-id>"
],
]);
$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.mentionlab.io/api/jobs/trigger"
payload := strings.NewReader("{\n \"aiModels\": [\n \"scp-ml-chatgpt\",\n \"claude-haiku-latest\",\n \"gemini-2.5-flash\"\n ],\n \"executionCount\": 3,\n \"force\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-project-id", "<x-project-id>")
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.mentionlab.io/api/jobs/trigger")
.header("x-project-id", "<x-project-id>")
.header("Content-Type", "application/json")
.body("{\n \"aiModels\": [\n \"scp-ml-chatgpt\",\n \"claude-haiku-latest\",\n \"gemini-2.5-flash\"\n ],\n \"executionCount\": 3,\n \"force\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mentionlab.io/api/jobs/trigger")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-project-id"] = '<x-project-id>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"aiModels\": [\n \"scp-ml-chatgpt\",\n \"claude-haiku-latest\",\n \"gemini-2.5-flash\"\n ],\n \"executionCount\": 3,\n \"force\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "01234567-89ab-cdef-0123-456789abcdef",
"project": "01234567-89ab-cdef-0123-456789abcdef",
"totalExecutions": 100,
"pendingExecutions": 10,
"retryingExecutions": 2,
"successExecutions": 80,
"failedExecutions": 8,
"status": "processing",
"createdAt": "2026-06-08T12:00:00.000Z",
"updatedAt": "2026-06-08T12:30:00.000Z",
"createdBy": {
"firstName": "Jane",
"lastName": "Doe",
"email": "[email protected]",
"id": "01234567-89ab-cdef-0123-456789abcdef"
}
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}Jobs
Trigger an execution for all project queries
Runs every query in the project against the selected AI models for the requested number of executions, charging the required credits up front; returns null when the project has no queries.
POST
/
api
/
jobs
/
trigger
Trigger an execution for all project queries
curl --request POST \
--url https://api.mentionlab.io/api/jobs/trigger \
--header 'Content-Type: application/json' \
--header 'x-project-id: <x-project-id>' \
--data '
{
"aiModels": [
"scp-ml-chatgpt",
"claude-haiku-latest",
"gemini-2.5-flash"
],
"executionCount": 3,
"force": false
}
'import requests
url = "https://api.mentionlab.io/api/jobs/trigger"
payload = {
"aiModels": ["scp-ml-chatgpt", "claude-haiku-latest", "gemini-2.5-flash"],
"executionCount": 3,
"force": False
}
headers = {
"x-project-id": "<x-project-id>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-project-id': '<x-project-id>', 'Content-Type': 'application/json'},
body: JSON.stringify({
aiModels: ['scp-ml-chatgpt', 'claude-haiku-latest', 'gemini-2.5-flash'],
executionCount: 3,
force: false
})
};
fetch('https://api.mentionlab.io/api/jobs/trigger', 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.mentionlab.io/api/jobs/trigger",
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([
'aiModels' => [
'scp-ml-chatgpt',
'claude-haiku-latest',
'gemini-2.5-flash'
],
'executionCount' => 3,
'force' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-project-id: <x-project-id>"
],
]);
$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.mentionlab.io/api/jobs/trigger"
payload := strings.NewReader("{\n \"aiModels\": [\n \"scp-ml-chatgpt\",\n \"claude-haiku-latest\",\n \"gemini-2.5-flash\"\n ],\n \"executionCount\": 3,\n \"force\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-project-id", "<x-project-id>")
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.mentionlab.io/api/jobs/trigger")
.header("x-project-id", "<x-project-id>")
.header("Content-Type", "application/json")
.body("{\n \"aiModels\": [\n \"scp-ml-chatgpt\",\n \"claude-haiku-latest\",\n \"gemini-2.5-flash\"\n ],\n \"executionCount\": 3,\n \"force\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mentionlab.io/api/jobs/trigger")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-project-id"] = '<x-project-id>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"aiModels\": [\n \"scp-ml-chatgpt\",\n \"claude-haiku-latest\",\n \"gemini-2.5-flash\"\n ],\n \"executionCount\": 3,\n \"force\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "01234567-89ab-cdef-0123-456789abcdef",
"project": "01234567-89ab-cdef-0123-456789abcdef",
"totalExecutions": 100,
"pendingExecutions": 10,
"retryingExecutions": 2,
"successExecutions": 80,
"failedExecutions": 8,
"status": "processing",
"createdAt": "2026-06-08T12:00:00.000Z",
"updatedAt": "2026-06-08T12:30:00.000Z",
"createdBy": {
"firstName": "Jane",
"lastName": "Doe",
"email": "[email protected]",
"id": "01234567-89ab-cdef-0123-456789abcdef"
}
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}Body
application/json
List of AI model identifiers to use for analysis
Available options:
claude-haiku-latest, gemini-flash-latest, sonar-latest, deepseek-pro-latest, mistral-large-latest, muse-spark-latest, gpt-4.1-mini, gpt-5-mini, gpt-5-chat-latest, gpt-5.1-chat-latest, gpt-5.2-chat-latest, gpt-5.3-chat-latest, claude-haiku-4-5, claude-haiku-5-5, gemini-2.5-flash, gemini-3.6-flash, gemini-3-flash-preview, gemini-3.5-flash-lite, gemini-3.1-flash-lite, gemini-2.5-flash-lite, sonar, deepseek-v3.2-maas, deepseek-v4-pro, mistral-large-3, muse-spark-1.3-contributor, ai-overview, ai-mode, scp-ml-chatgpt, scp-ml-gemini, scp-s-perplexity, scp-s-copilot Example:
[
"scp-ml-chatgpt",
"claude-haiku-latest",
"gemini-2.5-flash"
]
Response
Overall status of the job, derived from the state of its executions. syncing: every execution has finished and the results are still being copied to the analytics store; it then turns completed or partial_failed.
Available options:
pending, processing, syncing, completed, failed, partial_failed Example:
"processing"