Automated testing API
A test scenario is a situation and the simulated customers who bring it. A test run has every customer hold a conversation with the agent version you pick, or with up to four versions to compare them, and the evaluator grades each conversation with the scenario's rubric: its own checks, plus the agent's goals and competencies it imports.
POST /v1/agents/:id/test-scenarios → POST /v1/test-scenarios/:id/runsScopes testing:readtesting:write24 endpointsShow
Test numbers and the release summary
Free test calls go to the workspace's test numbers: an owner or admin adds one, the phone gets a code by text, and POST /v1/test-numbers/:id/verification verifies it. Each phone of the team is one test number for the whole workspace, listed with what it's for: test calls, and the WhatsApp and Apple Messages channels whose AI answers it in Testing. PATCH /v1/test-numbers/:id renames it and switches each of those. Before a version goes live, GET /v1/agents/:id/release-summary sums up how it did in test chats, its last simulated test and its calls.
Before you run a test
Nothing reaches a real customer and nothing is booked. Test conversations use credits once the workspace's free ones are used up: see pricing. To try a single message before you write a scenario, send it with POST /v1/agents/:id/test-chat.
Run all
POST /v1/agents/:id/test-run-alls runs every scenario of an agent at once, on its live version, its draft or both, and GET /v1/test-run-alls/:id reads the results: each scenario's test run and What to fix, the changes the judge proposed, ranked by the failed conversations each explains. Trying a fix writes it into the agent's draft and runs the scenarios it was seen in on that draft; the live version never changes. A fix can be hidden for everyone, and a verdict the judge got wrong can be marked, so later runs take it into account.
/v1/agents/:id/test-scenariosList an agent's test scenarios
Lists the agent's test scenarios, newest first. A scenario is a situation and the simulated customers who bring it; its goals and competencies are what a run scores when it names none.
testing:readPath parameters
iduuidrequiredThe agent id.
Query parameters
limitinteger · 1–100Results per page. Default: 20.
offsetinteger · at least 0Results to skip. Default: 0.
Errors
400validation_errorA query parameter is invalid (details.errors lists each one).404not_foundNo agent with this id in your workspace (ids of other workspaces answer the same).Plus the errors every request can return (401, 403, 429, 500): Errors.
curl "https://www.nutalk.ai/v1/agents/550e8400-e29b-41d4-a716-446655440000/test-scenarios?limit=10" \ -H "Authorization: Bearer $NUTALK_API_KEY"
{
"success": true,
"data": [
{
"id": "4f1c2b3a-5d6e-4f70-8a9b-0c1d2e3f4a5b",
"agent_id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Price objection",
"description": "A customer asks how much a cleaning costs and pushes back on the price.",
"channel": "messages",
"max_turns": 12,
"conversations_per_customer": 1,
"pass_threshold": 70,
"required_keywords": [],
"customer_styles": [
"friendly",
"hurry"
],
"customers": [
{
"name": "Ana",
"goal": "Find out the price of a dental cleaning and book only if it is under 800 MXN.",
"personality": "Direct, a little impatient",
"background": "Has not been to a dentist in two years.",
"language": "es-MX",
"objections": [
"It is cheaper across the street."
],
"pains": [
"Sensitive gums"
],
"gains": [
"An appointment this week"
],
"demographics": {}
}
],
"checks": [
{
"id": "c1",
"text": "Gives the price from the price list",
"required": true
},
{
"id": "c2",
"text": "Offers to book a time",
"required": false
}
],
"goals": [
{
"goal_id": "7b7b8def-a340-4bfd-b164-779fa5843735",
"weight": 1,
"required": true
}
],
"competencies": [
{
"competency_id": "b97659d1-b147-4831-86d0-3e36b6bd3fee",
"weight": 1,
"required": false,
"pass_level": null
}
],
"created_at": "2026-10-12T17:40:11.402911+00:00",
"updated_at": "2026-10-12T17:40:11.402911+00:00"
}
],
"pagination": {
"total": 1,
"limit": 10,
"offset": 0,
"has_more": false
}
}/v1/agents/:id/test-scenariosCreate a test scenario
Writes a test scenario for the agent, with the dashboard's rules: only this agent's goals and competencies can be linked, an archived agent takes no new scenario, and the scenario is saved with its links at once or not at all. A new scenario runs on messages, one conversation per customer, unless you say otherwise.
testing:writeWorkspace keys only · acts as the key's creatorThe change runs Automated testing's own rules as the member who created the key: the key needs the scope and that member a role that writes tests (owner, admin or builder). A key whose creator has left the workspace is refused.
Path parameters
iduuidrequiredThe agent id.
Request body
namestring · 1–200 charactersrequiredThe scenario's name.
descriptionstring | null · up to 5,000The situation the customers bring.
customersobject[] · 0–50 itemsThe simulated customers who bring the situation. A run needs at least one.
customers[].namestring · up to 200requiredWhat the customer is called.
customers[].goalstring · up to 2,000requiredWhat they want from the conversation: the simulated customer pursues it.
customers[].personalitystring · up to 200How they talk, e.g. direct, a little impatient.
customers[].backgroundstring | null · up to 4,000Who they are and their situation.
customers[].languagestring | null · up to 35The language they write in (es-MX); default the agent's.
customers[].objectionsstring[] · 0–20 itemsWhat they push back with.
customers[].painsstring[] · 0–20 itemsTheir problems.
customers[].gainsstring[] · 0–20 itemsWhat would win them.
customers[].demographicsobjectAny other facts about them, kept as sent.
max_turnsinteger · 1–30The most turns a conversation takes (default 15).
conversations_per_customerinteger · 1–5Conversations each customer has with each version in a run. Default: 1.
channelmessages | callsWhere the conversations happen. Calls can't be tested yet: a run of a calls scenario is refused. Default: messages.
pass_thresholdnumber · 1–100The overall score a conversation needs to pass. Default: 70.
required_keywordsstring[] · 0–50 itemsWords the agent must say.
goalsobject[] · 0–50 itemsThe agent's goals a run scores when it names none.
goals[].goal_iduuidrequiredA goal of the agent (GET /v1/goals?agent_id=).
goals[].weightnumber · 0–10How much the item counts, above 0 and at most 10. Default: 1.
goals[].requiredbooleanThe goal must pass for a conversation to pass; false: it counts in the score only. Left out: a link the scenario has keeps what it had, a new one defaults to true.
competenciesobject[] · 0–50 itemsThe agent's competencies a run scores when it names none.
competencies[].competency_iduuidrequiredA competency of the agent.
competencies[].weightnumber · 0–10How much the item counts, above 0 and at most 10. Default: 1.
competencies[].requiredbooleanThe competency must pass for a conversation to pass; false: it counts in the score only. Left out: a link the scenario has keeps what it had, a new one defaults to false.
competencies[].pass_levelinteger | null · 1–3The level it passes at, by position in its rubric (0 is the lowest, never a passing one); null: the competency's own bar, its middle level. Left out: kept as it was.
Show 22 more fields
Errors
400validation_errorThe body is not JSON, or a field is missing or invalid (details.errors lists each field).400validation_errorA goal or competency is not this agent's.403forbiddenThe member who created the key has a role that can't do this or has left the workspace.404not_foundNo agent with this id in your workspace (ids of other workspaces answer the same).409conflictThe agent is archived, so it can't be tested (details.reason is AGENT_ARCHIVED).Plus the errors every request can return (401, 403, 429, 500): Errors.
curl -X POST https://www.nutalk.ai/v1/agents/550e8400-e29b-41d4-a716-446655440000/test-scenarios \
-H "Authorization: Bearer $NUTALK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Price objection",
"description": "A customer asks how much a cleaning costs and pushes back on the price.",
"max_turns": 12,
"customers": [
{
"name": "Ana",
"goal": "Find out the price of a dental cleaning and book only if it is under 800 MXN.",
"personality": "Direct, a little impatient",
"language": "es-MX",
"objections": [
"It is cheaper across the street."
]
}
],
"goals": [
{
"goal_id": "7b7b8def-a340-4bfd-b164-779fa5843735"
}
],
"competencies": [
{
"competency_id": "b97659d1-b147-4831-86d0-3e36b6bd3fee"
}
]
}'{
"success": true,
"data": {
"id": "4f1c2b3a-5d6e-4f70-8a9b-0c1d2e3f4a5b",
"agent_id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Price objection",
"description": "A customer asks how much a cleaning costs and pushes back on the price.",
"channel": "messages",
"max_turns": 12,
"conversations_per_customer": 1,
"pass_threshold": 70,
"required_keywords": [],
"customer_styles": [
"friendly",
"hurry"
],
"customers": [
{
"name": "Ana",
"goal": "Find out the price of a dental cleaning and book only if it is under 800 MXN.",
"personality": "Direct, a little impatient",
"background": "Has not been to a dentist in two years.",
"language": "es-MX",
"objections": [
"It is cheaper across the street."
],
"pains": [
"Sensitive gums"
],
"gains": [
"An appointment this week"
],
"demographics": {}
}
],
"checks": [
{
"id": "c1",
"text": "Gives the price from the price list",
"required": true
},
{
"id": "c2",
"text": "Offers to book a time",
"required": false
}
],
"goals": [
{
"goal_id": "7b7b8def-a340-4bfd-b164-779fa5843735",
"weight": 1,
"required": true
}
],
"competencies": [
{
"competency_id": "b97659d1-b147-4831-86d0-3e36b6bd3fee",
"weight": 1,
"required": false,
"pass_level": null
}
],
"created_at": "2026-10-12T17:40:11.402911+00:00",
"updated_at": "2026-10-12T17:40:11.402911+00:00"
}
}/v1/test-scenarios/:idGet a test scenario
Returns one test scenario with its simulated customers and its goal and competency links.
testing:readPath parameters
iduuidrequiredThe test scenario id.
Errors
404not_foundNo test scenario with this id in your workspace (ids of other workspaces answer the same).Plus the errors every request can return (401, 403, 429, 500): Errors.
curl https://www.nutalk.ai/v1/test-scenarios/550e8400-e29b-41d4-a716-446655440000 \ -H "Authorization: Bearer $NUTALK_API_KEY"
{
"success": true,
"data": {
"id": "4f1c2b3a-5d6e-4f70-8a9b-0c1d2e3f4a5b",
"agent_id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Price objection",
"description": "A customer asks how much a cleaning costs and pushes back on the price.",
"channel": "messages",
"max_turns": 12,
"conversations_per_customer": 1,
"pass_threshold": 70,
"required_keywords": [],
"customer_styles": [
"friendly",
"hurry"
],
"customers": [
{
"name": "Ana",
"goal": "Find out the price of a dental cleaning and book only if it is under 800 MXN.",
"personality": "Direct, a little impatient",
"background": "Has not been to a dentist in two years.",
"language": "es-MX",
"objections": [
"It is cheaper across the street."
],
"pains": [
"Sensitive gums"
],
"gains": [
"An appointment this week"
],
"demographics": {}
}
],
"checks": [
{
"id": "c1",
"text": "Gives the price from the price list",
"required": true
},
{
"id": "c2",
"text": "Offers to book a time",
"required": false
}
],
"goals": [
{
"goal_id": "7b7b8def-a340-4bfd-b164-779fa5843735",
"weight": 1,
"required": true
}
],
"competencies": [
{
"competency_id": "b97659d1-b147-4831-86d0-3e36b6bd3fee",
"weight": 1,
"required": false,
"pass_level": null
}
],
"created_at": "2026-10-12T17:40:11.402911+00:00",
"updated_at": "2026-10-12T17:40:11.402911+00:00"
}
}/v1/test-scenarios/:idUpdate a test scenario
Changes the fields you send. customers, goals and competencies each replace the whole list; the scenario and its links are saved at once or not at all. Runs that already ran keep the customers they met.
testing:writeCan wait for approvalWorkspace keys only · acts as the key's creatorThe change runs Automated testing's own rules as the member who created the key: the key needs the scope and that member a role that writes tests (owner, admin or builder). A key whose creator has left the workspace is refused.
Path parameters
iduuidrequiredThe test scenario id.
Request body
namestring · 1–200 charactersThe scenario's name.
descriptionstring | null · up to 5,000The situation the customers bring.
customersobject[] · 0–50 itemsThe simulated customers (replaces the whole list: send every customer to keep).
customers[].namestring · up to 200requiredWhat the customer is called.
customers[].goalstring · up to 2,000requiredWhat they want from the conversation: the simulated customer pursues it.
customers[].personalitystring · up to 200How they talk, e.g. direct, a little impatient.
customers[].backgroundstring | null · up to 4,000Who they are and their situation.
customers[].languagestring | null · up to 35The language they write in (es-MX); default the agent's.
customers[].objectionsstring[] · 0–20 itemsWhat they push back with.
customers[].painsstring[] · 0–20 itemsTheir problems.
customers[].gainsstring[] · 0–20 itemsWhat would win them.
customers[].demographicsobjectAny other facts about them, kept as sent.
max_turnsinteger · 1–30The most turns a conversation takes.
conversations_per_customerinteger · 1–5Conversations each customer has with each version in a run.
channelmessages | callsWhere the conversations happen. Calls can't be tested yet: a run of a calls scenario is refused.
pass_thresholdnumber · 1–100The overall score a conversation needs to pass.
required_keywordsstring[] · 0–50 itemsWords the agent must say.
goalsobject[] · 0–50 itemsThe agent's goals a run scores when it names none (replaces the list).
goals[].goal_iduuidrequiredA goal of the agent (GET /v1/goals?agent_id=).
goals[].weightnumber · 0–10How much the item counts, above 0 and at most 10. Default: 1.
goals[].requiredbooleanThe goal must pass for a conversation to pass; false: it counts in the score only. Left out: a link the scenario has keeps what it had, a new one defaults to true.
competenciesobject[] · 0–50 itemsThe agent's competencies a run scores when it names none (replaces the list).
competencies[].competency_iduuidrequiredA competency of the agent.
competencies[].weightnumber · 0–10How much the item counts, above 0 and at most 10. Default: 1.
competencies[].requiredbooleanThe competency must pass for a conversation to pass; false: it counts in the score only. Left out: a link the scenario has keeps what it had, a new one defaults to false.
competencies[].pass_levelinteger | null · 1–3The level it passes at, by position in its rubric (0 is the lowest, never a passing one); null: the competency's own bar, its middle level. Left out: kept as it was.
Show 22 more fields
Nothing changes yet: the call answers 202 with data.change_request, and runs once an owner or admin approves it in Settings → API keys. Follow it with GET /v1/change-requests/:id.
Errors
400validation_errorThe body is not JSON, or a field is missing or invalid (details.errors lists each field).400validation_errorNo field to change was sent, or a goal or competency is not this agent's.403forbiddenThe member who created the key has a role that can't do this or has left the workspace.404not_foundNo test scenario with this id in your workspace (ids of other workspaces answer the same).Plus the errors every request can return (401, 403, 429, 500): Errors.
curl -X PATCH https://www.nutalk.ai/v1/test-scenarios/550e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer $NUTALK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"max_turns": 15,
"conversations_per_customer": 2
}'{
"success": true,
"data": {
"id": "4f1c2b3a-5d6e-4f70-8a9b-0c1d2e3f4a5b",
"agent_id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Price objection",
"description": "A customer asks how much a cleaning costs and pushes back on the price.",
"channel": "messages",
"max_turns": 15,
"conversations_per_customer": 2,
"pass_threshold": 70,
"required_keywords": [],
"customer_styles": [
"friendly",
"hurry"
],
"customers": [
{
"name": "Ana",
"goal": "Find out the price of a dental cleaning and book only if it is under 800 MXN.",
"personality": "Direct, a little impatient",
"background": "Has not been to a dentist in two years.",
"language": "es-MX",
"objections": [
"It is cheaper across the street."
],
"pains": [
"Sensitive gums"
],
"gains": [
"An appointment this week"
],
"demographics": {}
}
],
"checks": [
{
"id": "c1",
"text": "Gives the price from the price list",
"required": true
},
{
"id": "c2",
"text": "Offers to book a time",
"required": false
}
],
"goals": [
{
"goal_id": "7b7b8def-a340-4bfd-b164-779fa5843735",
"weight": 1,
"required": true
}
],
"competencies": [
{
"competency_id": "b97659d1-b147-4831-86d0-3e36b6bd3fee",
"weight": 1,
"required": false,
"pass_level": null
}
],
"created_at": "2026-10-12T17:40:11.402911+00:00",
"updated_at": "2026-10-12T17:52:40.551827+00:00"
}
}/v1/test-scenarios/:idDelete a test scenario
Deletes the scenario and its simulated customers. The runs it ran stay readable with GET /v1/test-runs/:id, without their scenario.
testing:writeWaits for approvalWorkspace keys only · acts as the key's creatorThe change runs Automated testing's own rules as the member who created the key: the key needs the scope and that member a role that writes tests (owner, admin or builder). A key whose creator has left the workspace is refused.
Path parameters
iduuidrequiredThe test scenario id.
Unless its key was set not to wait, nothing is removed yet: the call answers 202 with data.change_request, and runs once an owner or admin approves it in Settings → API keys. Follow it with GET /v1/change-requests/:id.
Errors
403forbiddenThe member who created the key has a role that can't do this or has left the workspace.404not_foundNo test scenario with this id in your workspace (ids of other workspaces answer the same).Plus the errors every request can return (401, 403, 429, 500): Errors.
curl -X DELETE https://www.nutalk.ai/v1/test-scenarios/550e8400-e29b-41d4-a716-446655440000 \ -H "Authorization: Bearer $NUTALK_API_KEY"
{
"success": true,
"data": {
"id": "4f1c2b3a-5d6e-4f70-8a9b-0c1d2e3f4a5b",
"deleted": true
}
}/v1/test-scenarios/:id/runsRun a test scenario
Starts a test run of the scenario: every simulated customer holds a conversation with the agent version (by default the deployed one), or with each of up to four versions to compare them on the same customers, and the evaluator grades each conversation with the scenario's rubric: its own checks, which always count, and the goals and competencies you name (by default the ones it imported). A conversation passes when every must-pass criterion passes. The run keeps that rubric, so later edits never change its grades. Nothing reaches a real customer and nothing is booked. A workspace's first 50 finished test conversations are free; each one after that uses credits at its plan's test conversation price, charged when it finishes. Answers the run with its conversations pending; follow it with GET /v1/test-runs/:id.
testing:writeTakes an Idempotency-KeyWorkspace keys only · acts as the key's creatorA run takes a few minutes: each conversation runs and is scored in the background. Poll GET /v1/test-runs/:id until status is completed, partial or failed.
The run starts as the member who created the key: owners, admins, builders and operators run tests. A key whose creator has left the workspace is refused.
Path parameters
iduuidrequiredThe test scenario id.
Request body
agent_version_idsuuid[] · 1–4 itemsThe agent versions to test, each once (GET /v1/agents/:id lists them). Two to four compare them: the run then names a winner. Default: the deployed version.
conversations_per_customerinteger · 1–5Conversations each customer has with each version. Default: the scenario's.
channel_iduuidOne of the agent's messaging channels: the run applies its settings (scheduling, language). Default: the agent's oldest messaging channel.
goal_idsuuid[] · 0–50 itemsThe agent's goals to score. With competency_ids, at least one in all; both absent: the scenario's.
competency_idsuuid[] · 0–50 itemsThe agent's competencies to score.
rerun_ofuuidAn earlier run of this scenario: this run meets the same customers it met.
Show 2 more fields
Errors
400validation_errorThe body is not JSON, or a field is missing or invalid (details.errors lists each field).400validation_errorThe scenario is a calls scenario, has no customer, would run more than 100 conversations or has nothing to score; or a goal, competency or channel is not the agent's.403forbiddenThe member who created the key has a role that can't do this or has left the workspace.404not_foundNo test scenario with this id in your workspace (ids of other workspaces answer the same).404not_foundAn agent version is not the agent's, or rerun_of is not a run of this scenario.409conflictThe agent is archived, so it can't be tested (details.reason is AGENT_ARCHIVED).409conflictagent_version_ids is absent and the agent has no deployed version.500internal_errorThe run could not start; it is kept as failed with the reason (details.test_run_id).Plus the errors every request can return (401, 403, 429, 500): Errors.
curl -X POST https://www.nutalk.ai/v1/test-scenarios/550e8400-e29b-41d4-a716-446655440000/runs \
-H "Authorization: Bearer $NUTALK_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"agent_version_ids": [
"2ea87934-6e03-4db7-80f2-ac753b724c82",
"c5c0810c-4614-4f0d-927d-62e587dad45e"
],
"goal_ids": [
"7b7b8def-a340-4bfd-b164-779fa5843735"
]
}'{
"success": true,
"data": {
"id": "6a7b8c9d-0e1f-4a2b-9c3d-4e5f6a7b8c9d",
"status": "running",
"error": null,
"agent_id": "550e8400-e29b-41d4-a716-446655440000",
"scenario": {
"id": "4f1c2b3a-5d6e-4f70-8a9b-0c1d2e3f4a5b",
"name": "Price objection",
"description": "A customer asks how much a cleaning costs and pushes back on the price."
},
"variants": [
{
"key": "A",
"agent_version_id": "2ea87934-6e03-4db7-80f2-ac753b724c82",
"version_label": "v1.3"
}
],
"results": [
{
"variant": "A",
"conversations": 3,
"open": 3,
"completed": 0,
"failed": 0,
"passed": 0,
"preferred": null,
"average_turns": null
}
],
"winner": null,
"rubric": [
{
"id": "c1",
"kind": "check",
"name": "Gives the price from the price list"
},
{
"id": "7b7b8def-a340-4bfd-b164-779fa5843735",
"kind": "goal",
"name": "Book qualified meeting"
},
{
"id": "b97659d1-b147-4831-86d0-3e36b6bd3fee",
"kind": "competency",
"name": "Objection handling"
}
],
"conversations": [
{
"id": "8c9d0e1f-2a3b-4c4d-8e5f-6a7b8c9d0e1f",
"variant": "A",
"customer": {
"id": "1e2f3a4b-5c6d-4e7f-8a9b-0c1d2e3f4a5c",
"name": "Ana"
},
"status": "pending",
"error": null,
"passed": null,
"score": null,
"criteria": null,
"summary": null,
"goals": [],
"competencies": [],
"transcript": []
}
],
"created_at": "2026-10-12T17:41:03.118204+00:00",
"completed_at": null,
"updated_at": "2026-10-12T17:41:03.118204+00:00"
}
}/v1/agents/:id/test-runsList an agent's test runs
Lists the agent's test runs, newest first, with each run's status and how many of its conversations are open, finished, failed and passed.
testing:readstatus: running while a conversation is open; completed when all finished, partial when some failed, failed when every one failed or the run could not start (error says why).
Path parameters
iduuidrequiredThe agent id.
Query parameters
limitinteger · 1–100Results per page. Default: 20.
offsetinteger · at least 0Results to skip. Default: 0.
scenario_iduuidOnly the runs of this scenario.
statuspending | running | completed | partial | failed | cancelledOnly runs in this status.
Errors
400validation_errorA query parameter is invalid (details.errors lists each one).404not_foundNo agent with this id in your workspace (ids of other workspaces answer the same).Plus the errors every request can return (401, 403, 429, 500): Errors.
curl "https://www.nutalk.ai/v1/agents/550e8400-e29b-41d4-a716-446655440000/test-runs?status=completed&limit=10" \ -H "Authorization: Bearer $NUTALK_API_KEY"
{
"success": true,
"data": [
{
"id": "6a7b8c9d-0e1f-4a2b-9c3d-4e5f6a7b8c9d",
"name": "Price objection - Oct 12, 2026, 11:41 AM",
"status": "completed",
"scenario": {
"id": "4f1c2b3a-5d6e-4f70-8a9b-0c1d2e3f4a5b",
"name": "Price objection"
},
"variants": [
{
"key": "A",
"agent_version_id": "2ea87934-6e03-4db7-80f2-ac753b724c82",
"version_label": "v1.3"
}
],
"conversations": {
"total": 3,
"open": 0,
"completed": 3,
"failed": 0,
"passed": 2
},
"error": null,
"created_at": "2026-10-12T17:41:03.118204+00:00",
"completed_at": "2026-10-12T17:43:52.007311+00:00"
}
],
"pagination": {
"total": 1,
"limit": 10,
"offset": 0,
"has_more": false
}
}/v1/test-runs/:idGet a test run
Returns one test run as Automated testing shows it: each version's results, the winner of a comparison (the most conversations passed, the evaluator's head-to-head breaking a tie), the criteria it was graded with (the scenario's checks, goals and competencies), and every simulated conversation with its transcript, the evaluator's summary, its score and its verdict on each criterion.
testing:readA conversation's status is pending, running or evaluating while it is open, then completed or failed (error says why). passed is null until it is scored.
criteria holds each criterion's verdict (pass, fail or na when it didn't apply), with the reason and the message or tool call that decided it (numbered as in the transcript: messages of both sides count, an agent's tool calls apart). passed is true when no required criterion failed; score is the share of the criteria that applied which passed, out of 100. Both are null for a conversation graded before rubrics; its goals and competencies explain it instead.
Path parameters
iduuidrequiredThe test run id.
Errors
404not_foundNo test run with this id in your workspace (ids of other workspaces answer the same).Plus the errors every request can return (401, 403, 429, 500): Errors.
curl https://www.nutalk.ai/v1/test-runs/550e8400-e29b-41d4-a716-446655440000 \ -H "Authorization: Bearer $NUTALK_API_KEY"
{
"success": true,
"data": {
"id": "6a7b8c9d-0e1f-4a2b-9c3d-4e5f6a7b8c9d",
"status": "completed",
"error": null,
"agent_id": "550e8400-e29b-41d4-a716-446655440000",
"scenario": {
"id": "4f1c2b3a-5d6e-4f70-8a9b-0c1d2e3f4a5b",
"name": "Price objection",
"description": "A customer asks how much a cleaning costs and pushes back on the price."
},
"variants": [
{
"key": "A",
"agent_version_id": "2ea87934-6e03-4db7-80f2-ac753b724c82",
"version_label": "v1.3"
}
],
"results": [
{
"variant": "A",
"conversations": 3,
"open": 0,
"completed": 3,
"failed": 0,
"passed": 2,
"preferred": null,
"average_turns": 5.3
}
],
"winner": null,
"rubric": [
{
"id": "c1",
"kind": "check",
"name": "Gives the price from the price list"
},
{
"id": "7b7b8def-a340-4bfd-b164-779fa5843735",
"kind": "goal",
"name": "Book qualified meeting"
},
{
"id": "b97659d1-b147-4831-86d0-3e36b6bd3fee",
"kind": "competency",
"name": "Objection handling"
}
],
"conversations": [
{
"id": "8c9d0e1f-2a3b-4c4d-8e5f-6a7b8c9d0e1f",
"variant": "A",
"customer": {
"id": "1e2f3a4b-5c6d-4e7f-8a9b-0c1d2e3f4a5c",
"name": "Ana"
},
"status": "completed",
"error": null,
"passed": true,
"score": 100,
"criteria": [
{
"kind": "check",
"id": "c1",
"name": "Gives the price from the price list",
"required": true,
"verdict": "pass",
"level": null,
"reason": "Quoted 750 MXN, the price list's.",
"evidence": {
"kind": "message",
"number": 2
}
},
{
"kind": "goal",
"id": "7b7b8def-a340-4bfd-b164-779fa5843735",
"name": "Book qualified meeting",
"required": true,
"verdict": "pass",
"level": null,
"reason": "The customer accepted Thursday at 10:00.",
"evidence": {
"kind": "message",
"number": 4
}
}
],
"summary": "The agent gave the price, answered the objection with the included check-up and booked Thursday at 10:00.",
"goals": [
{
"goal_id": "7b7b8def-a340-4bfd-b164-779fa5843735",
"title": "Book qualified meeting",
"met": true,
"justification": "The customer accepted Thursday at 10:00."
}
],
"competencies": [
{
"competency_id": "b97659d1-b147-4831-86d0-3e36b6bd3fee",
"name": "Objection handling",
"level": "proficient",
"passed": true,
"justification": "It acknowledged the price concern and explained what the cleaning includes."
}
],
"transcript": [
{
"role": "customer",
"text": "Hola, ¿cuánto cuesta una limpieza dental?",
"tools": []
},
{
"role": "agent",
"text": "¡Hola! La limpieza cuesta 750 MXN e incluye revisión. ¿Te gustaría agendar esta semana?",
"tools": []
}
]
}
],
"created_at": "2026-10-12T17:41:03.118204+00:00",
"completed_at": "2026-10-12T17:43:52.007311+00:00",
"updated_at": "2026-10-12T17:43:52.007311+00:00"
}
}/v1/test-runs/:id/evaluateScore a test run again
Scores the run's finished conversations again (all of them, or the ones you name) with the rubric the run kept, so the evaluator reads them again against the same criteria. To grade with the scenario's rubric as it is now (after rewording a goal, for example), start a new run with POST /v1/test-scenarios/:id/runs, with rerun_of to meet the same customers. A run that kept no rubric (one from before rubrics) is scored with the goals and competencies as they are now. Each conversation goes back to evaluating; its previous scores are replaced once the new scoring is queued, and kept when it can't be.
testing:writeCan wait for approvalWorkspace keys only · acts as the key's creatorThe change runs Automated testing's own rules as the member who created the key: the key needs the scope and that member a role that writes tests (owner, admin or builder). A key whose creator has left the workspace is refused.
Path parameters
iduuidrequiredThe test run id.
Request body
conversation_idsuuid[] · 1–100 itemsOnly these conversations of the run. Default: every finished one.
Nothing changes yet: the call answers 202 with data.change_request, and runs once an owner or admin approves it in Settings → API keys. Follow it with GET /v1/change-requests/:id.
Errors
400validation_errorThe body is not JSON, or a field is missing or invalid (details.errors lists each field).403forbiddenThe member who created the key has a role that can't do this or has left the workspace.404not_foundNo test run with this id in your workspace (ids of other workspaces answer the same).404not_foundA conversation is not part of this run (details.conversation_ids).409conflictThe run has no finished conversation, or none could be scored again (details.skipped says why for each).Plus the errors every request can return (401, 403, 429, 500): Errors.
curl -X POST https://www.nutalk.ai/v1/test-runs/550e8400-e29b-41d4-a716-446655440000/evaluate \
-H "Authorization: Bearer $NUTALK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"conversation_ids": [
"8c9d0e1f-2a3b-4c4d-8e5f-6a7b8c9d0e1f"
]
}'skipped lists the ones that couldn't be, with the reason.{
"success": true,
"data": {
"id": "6a7b8c9d-0e1f-4a2b-9c3d-4e5f6a7b8c9d",
"rescoring": [
"8c9d0e1f-2a3b-4c4d-8e5f-6a7b8c9d0e1f"
],
"skipped": []
}
}/v1/agents/:id/test-chatTry the agent in a test chat
One turn of Try it yourself: you write as a customer and the agent version answers through its real engine (its prompt, knowledge, tools and model), with the tools it used. Nothing is sent or booked and no credit is used; each reply counts against the workspace's free test replies of the day. Send the chat_id of an answer to continue that chat.
testing:writeWorkspace keys only · acts as the key's creatorA reply can take up to 90 seconds when the agent uses tools. Tools that would change something (a booking) are simulated (simulated: true).
The turn runs as the member who created the key (owners, admins and builders try agents); the chat appears in the dashboard's Try it yourself history.
Path parameters
iduuidrequiredThe agent id.
Request body
messagestring · 1–4,096 charactersrequiredWhat the customer writes.
agent_version_iduuidThe version that answers, any version of the agent. Default: the chat's, else the deployed one.
compare_agent_version_iduuid | nullAnother version that answers the same messages, side by side (reply.compare).
chat_iduuidThe chat_id of an earlier answer: the turn continues that chat, with its versions.
channel_iduuid | nullOne of the agent's channels whose settings apply (scheduling, language). Default: chosen for you; a chat keeps its channel.
Show 1 more field
Errors
400validation_errorThe body is not JSON, or a field is missing or invalid (details.errors lists each field).400validation_errorThe engine refused the turn (a clinic agent with no messaging channel to take settings from: details.reason ENGINE_REFUSED).403forbiddenAutomated testing isn't available in this workspace, or the member who created the key can't test (owners, admins and builders).404not_foundNo agent with this id in your workspace (ids of other workspaces answer the same).404not_foundThe version, the chat or the channel is not the agent's.409conflictThe agent is archived, so it can't be tested (details.reason is AGENT_ARCHIVED).409conflictThe chat tested other versions, is full (160 messages) or runs on another channel (details.reason), or the agent has no deployed version to default to.429rate_limitedThe workspace used today's free test replies, or sent too many in a minute (details.reason: TEST_REPLIES_LIMIT or TEST_REPLIES_BURST).503service_unavailableThe agent's engine did not answer (details.reason ENGINE_FAILED), or test replies can't be counted right now.Plus the errors every request can return (401, 403, 429, 500): Errors.
curl -X POST https://www.nutalk.ai/v1/agents/550e8400-e29b-41d4-a716-446655440000/test-chat \
-H "Authorization: Bearer $NUTALK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "Hola, ¿tienen citas el jueves?"
}'{
"success": true,
"data": {
"chat_id": "2b3c4d5e-6f70-4a8b-9c0d-1e2f3a4b5c6d",
"channel_id": "9f19ef32-eaef-452c-bebc-14d9759cdb64",
"message": {
"id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
"text": "Hola, ¿tienen citas el jueves?",
"at": "2026-10-12T18:02:11.204+00:00"
},
"reply": {
"id": "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b",
"text": "¡Claro! El jueves tengo libre a las 10:00 y a las 16:30. ¿Cuál prefieres?",
"at": "2026-10-12T18:02:14.871+00:00",
"model": null,
"latency_ms": 3612,
"tools": [
{
"tool": "check_availability",
"simulated": false,
"summary": "2 free times on Thursday"
}
],
"compare": null
},
"replies_left_today": 287
}
}/v1/agents/:id/test-run-allsRun all of an agent's scenarios
Runs every test scenario of the agent at once, or the ones named, as Automated testing → Run all does: on its live version, its draft, or both to compare them on the same customers. Each scenario's test is a test run (started[].test_run_id); a scenario that can't run is skipped with why (calls: calls scenarios run from the dashboard; empty_rubric; no_customers). At most 200 conversations. A workspace's first 50 finished test conversations are free; each one after that uses credits at its plan's test conversation price, charged when it finishes. Follow it with GET /v1/test-run-alls/:id.
testing:writeTakes an Idempotency-KeyWorkspace keys only · acts as the key's creatorThe change runs Automated testing's own rules as the member who created the key: the key needs the scope and that member a role that writes tests (owner, admin or builder). A key whose creator has left the workspace is refused.
Nothing reaches a real customer and nothing is booked.
Path parameters
iduuidrequiredThe agent id.
Request body
versionlive | draft | bothrequiredThe live version, the draft, or both (compared).
customers_per_scenariointeger · 1–5requiredHow many simulated customers each scenario's test meets.
scenario_idsuuid[] · 1–100 itemsOnly these scenarios (default: all of them).
rerun_ofuuidThe Run all this one runs again (its failed scenarios, when scenario_ids names them).
Errors
400validation_errorThe body is not JSON, or a field is missing or invalid (details.errors lists each field).400validation_errorThe agent has no live version or no draft for the version asked, no scenario can run (details lists the skipped ones), or it would be over 200 conversations.403forbiddenThe member who created the key has a role that can't do this or has left the workspace.404not_foundNo agent, scenario or Run all to run again with this id in your workspace (ids of other workspaces answer the same).409conflictThe agent is archived, so it can't be tested (details.reason is AGENT_ARCHIVED).429rate_limitedThe workspace started too many test runs through the API recently: at most 30 an hour and 5 a minute.Plus the errors every request can return (401, 403, 429, 500): Errors.
curl -X POST https://www.nutalk.ai/v1/agents/550e8400-e29b-41d4-a716-446655440000/test-run-alls \
-H "Authorization: Bearer $NUTALK_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"version": "live",
"customers_per_scenario": 3
}'{
"success": true,
"data": {
"id": "7d8e9f0a-1b2c-4d3e-8f4a-5b6c7d8e9f0a",
"scenarios": 6,
"conversations": 18,
"started": [
{
"scenario_id": "4f1c2b3a-5d6e-4f70-8a9b-0c1d2e3f4a5b",
"test_run_id": "6a7b8c9d-0e1f-4a2b-9c3d-4e5f6a7b8c9d"
}
],
"skipped": [
{
"scenario_id": "9f0a1b2c-3d4e-4f5a-8b6c-7d8e9f0a1b2c",
"name": "Calls in English",
"reason": "calls"
}
],
"could_not_start": []
}
}/v1/agents/:id/test-run-allsList an agent's Run alls
The agent's newest Run alls (up to 24), newest first, one row per version each ran (a Run all that compared two versions has two rows with the same id): how many scenarios passed, its conversations' average score and the share that passed.
testing:readPath parameters
iduuidrequiredThe agent id.
Errors
404not_foundNo agent with this id in your workspace (ids of other workspaces answer the same).Plus the errors every request can return (401, 403, 429, 500): Errors.
curl https://www.nutalk.ai/v1/agents/550e8400-e29b-41d4-a716-446655440000/test-run-alls \ -H "Authorization: Bearer $NUTALK_API_KEY"
{
"success": true,
"data": [
{
"id": "7d8e9f0a-1b2c-4d3e-8f4a-5b6c7d8e9f0a",
"version_key": "A",
"agent_version_id": "2ea87934-6e03-4db7-80f2-ac753b724c82",
"label": "v12",
"created_at": "2026-10-27T18:20:05.117+00:00",
"status": "finished",
"scenarios": 6,
"scenarios_passed": 5,
"score": 88,
"conversations_passed_percent": 89
}
]
}/v1/test-run-alls/:idGet a Run all's results
A Run all's results, as its page shows them, one block per version it ran: how many scenarios passed, each scenario's test run (GET /v1/test-runs/:id has its grading) and conversations, and What to fix: the changes the judge proposed, ranked by the failed conversations each explains. A fix the team hid is marked dismissed. status is running until every test ends.
testing:readPath parameters
iduuidrequiredThe Run all id.
Errors
404not_foundNo Run all with this id in your workspace (ids of other workspaces answer the same).Plus the errors every request can return (401, 403, 429, 500): Errors.
curl https://www.nutalk.ai/v1/test-run-alls/550e8400-e29b-41d4-a716-446655440000 \ -H "Authorization: Bearer $NUTALK_API_KEY"
{
"success": true,
"data": {
"id": "7d8e9f0a-1b2c-4d3e-8f4a-5b6c7d8e9f0a",
"agent_id": "550e8400-e29b-41d4-a716-446655440000",
"version": "live",
"customers_per_scenario": 3,
"rerun_of": null,
"status": "finished",
"created_at": "2026-10-27T18:20:05.117+00:00",
"finished_at": "2026-10-27T18:31:40.902+00:00",
"versions": [
{
"key": "A",
"agent_version_id": "2ea87934-6e03-4db7-80f2-ac753b724c82",
"label": "v12",
"scenarios": 6,
"scenarios_passed": 5,
"scenarios_running": 0,
"conversations": 18,
"conversations_passed": 16,
"score": 88,
"results": [
{
"test_run_id": "6a7b8c9d-0e1f-4a2b-9c3d-4e5f6a7b8c9d",
"scenario_id": "4f1c2b3a-5d6e-4f70-8a9b-0c1d2e3f4a5b",
"name": "Books a cleaning",
"result": "failed",
"passed": 1,
"total": 3,
"score": 71,
"why": "It offered a time outside the clinic's hours.",
"conversations": [
{
"id": "8c9d0e1f-2a3b-4c4d-8e5f-6a7b8c9d0e1f",
"customer": "Lucía",
"state": "failed",
"passed": false,
"score": 58,
"why": "It offered a time outside the clinic's hours."
}
]
}
],
"fixes": [
{
"key": "q-3f9a1c7e",
"rank": 1,
"title": "Offer only open times",
"why": "Two conversations were offered a time the clinic is closed.",
"replaces": null,
"add": "Offer only times the availability check returns.",
"scenarios": 1,
"seen_in": [
{
"test_run_id": "6a7b8c9d-0e1f-4a2b-9c3d-4e5f6a7b8c9d",
"conversation_id": "8c9d0e1f-2a3b-4c4d-8e5f-6a7b8c9d0e1f",
"scenario": "Books a cleaning",
"customer": "Lucía"
}
],
"dismissed": false
}
]
}
],
"could_not_start": [],
"tries_fix": null
}
}/v1/test-run-alls/:id/try-fixTry a fix on the draft
Try it on a draft: the fix's change (or text instead) goes into the agent's draft instructions (a new draft when it has none), and a Run all of the scenarios it was seen in, plus up to two that passed, starts on that draft with the same customers per scenario. Nothing changes on the live version. It changes the agent's draft, so the key needs agents:write as well.
testing:writeTakes an Idempotency-KeyCan wait for approvalWorkspace keys only · acts as the key's creatorThe change runs Automated testing's own rules as the member who created the key: the key needs the scope and that member a role that writes tests (owner, admin or builder). A key whose creator has left the workspace is refused.
When the key asks for approval on changes, it waits for an owner's or admin's approval.
Path parameters
iduuidrequiredThe Run all id.
Request body
fix_keystringrequiredThe fix, as GET /v1/test-run-alls/:id names it (fixes[].key).
versionA | BThe version whose fix it is, in a Run all that compared two (default A).
textstring · up to 2,000What to put in the instructions instead of the judge's wording.
Nothing changes yet: the call answers 202 with data.change_request, and runs once an owner or admin approves it in Settings → API keys. Follow it with GET /v1/change-requests/:id.
Errors
400validation_errorThe body is not JSON, or a field is missing or invalid (details.errors lists each field).403forbiddenThe key lacks agents:write, or the member who created the key can't write tests.404not_foundNo Run all, or its version with this id in your workspace (ids of other workspaces answer the same).409conflictThe agent is archived, so it can't be tested (details.reason is AGENT_ARCHIVED).409conflictThe fix changed since it was read (fix_changed), the scenarios it was seen in were deleted, the agent has no live version, a test of the draft is still running (draft_under_test), the draft changed meanwhile (version_changed), or its Run all couldn't start (run_not_started: the change is saved in the draft).429rate_limitedThe workspace started too many test runs through the API recently.Plus the errors every request can return (401, 403, 429, 500): Errors.
curl -X POST https://www.nutalk.ai/v1/test-run-alls/550e8400-e29b-41d4-a716-446655440000/try-fix \
-H "Authorization: Bearer $NUTALK_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"fix_key": "q-3f9a1c7e"
}'{
"success": true,
"data": {
"run_all": {
"id": "7d8e9f0a-1b2c-4d3e-8f4a-5b6c7d8e9f0a",
"scenarios": 6,
"conversations": 18,
"started": [
{
"scenario_id": "4f1c2b3a-5d6e-4f70-8a9b-0c1d2e3f4a5b",
"test_run_id": "6a7b8c9d-0e1f-4a2b-9c3d-4e5f6a7b8c9d"
}
],
"skipped": [],
"could_not_start": []
},
"draft": {
"agent_version_id": "c5c0810c-4614-4f0d-927d-62e587dad45e",
"label": "v13",
"created": false,
"change": "added"
}
}
}/v1/test-run-alls/:id/dismissalsHide a fix
Hides a fix in the Run all's What to fix, for everyone (Dismiss). DELETE brings it back.
testing:writeWorkspace keys only · acts as the key's creatorPath parameters
iduuidrequiredThe Run all id.
Request body
fix_keystringrequiredThe fix, as GET /v1/test-run-alls/:id names it.
Errors
400validation_errorThe body is not JSON, or a field is missing or invalid (details.errors lists each field).403forbiddenThe member who created the key has a role that can't do this or has left the workspace.404not_foundNo Run all with this id in your workspace (ids of other workspaces answer the same).Plus the errors every request can return (401, 403, 429, 500): Errors.
curl -X POST https://www.nutalk.ai/v1/test-run-alls/550e8400-e29b-41d4-a716-446655440000/dismissals \
-H "Authorization: Bearer $NUTALK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"fix_key": "q-3f9a1c7e"
}'{
"success": true,
"data": {
"run_all_id": "7d8e9f0a-1b2c-4d3e-8f4a-5b6c7d8e9f0a",
"fix_key": "q-3f9a1c7e",
"dismissed": true
}
}/v1/test-run-alls/:id/dismissalsBring a hidden fix back
Shows a fix the team hid in the Run all's What to fix again.
testing:writeWaits for approvalWorkspace keys only · acts as the key's creatorPath parameters
iduuidrequiredThe Run all id.
Query parameters
fix_keystringThe fix (or send it in the body).
Request body
fix_keystringThe fix (or send it in the query string).
Unless its key was set not to wait, nothing is removed yet: the call answers 202 with data.change_request, and runs once an owner or admin approves it in Settings → API keys. Follow it with GET /v1/change-requests/:id.
Errors
400validation_errorThe body is not JSON, or a field is missing or invalid (details.errors lists each field).400validation_errorA query parameter is invalid (details.errors lists each one).403forbiddenThe member who created the key has a role that can't do this or has left the workspace.404not_foundNo Run all with this id in your workspace (ids of other workspaces answer the same).Plus the errors every request can return (401, 403, 429, 500): Errors.
curl -X DELETE https://www.nutalk.ai/v1/test-run-alls/550e8400-e29b-41d4-a716-446655440000/dismissals \
-H "Authorization: Bearer $NUTALK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"fix_key": "q-3f9a1c7e"
}'{
"success": true,
"data": {
"run_all_id": "7d8e9f0a-1b2c-4d3e-8f4a-5b6c7d8e9f0a",
"fix_key": "q-3f9a1c7e",
"dismissed": false
}
}/v1/test-runs/:id/conversations/:conversation_id/verdict-reviewsMark a verdict the judge got wrong
Marks one of a test conversation's verdicts as wrong, with a note: a criterion it was graded on, by its id in the conversation's criteria (C1, G2, K3). Later runs hand the mark to the judge. Marking the same criterion again replaces the note; DELETE takes the mark back.
testing:writeWorkspace keys only · acts as the key's creatorPath parameters
iduuidrequiredThe test run id.
conversation_iduuidrequiredThe conversation's id.
Request body
criterion_keystringrequiredThe criterion's id (C1, G2, K3).
notestring · up to 500Why the verdict is wrong.
Errors
400validation_errorThe body is not JSON, or a field is missing or invalid (details.errors lists each field).400validation_errorThe criterion isn't one the conversation was graded on.403forbiddenThe member who created the key has a role that can't do this or has left the workspace.404not_foundNo test run or conversation with this id in your workspace (ids of other workspaces answer the same).Plus the errors every request can return (401, 403, 429, 500): Errors.
curl -X POST https://www.nutalk.ai/v1/test-runs/550e8400-e29b-41d4-a716-446655440000/conversations/8c9d0e1f-2a3b-4c4d-8e5f-6a7b8c9d0e1f/verdict-reviews \
-H "Authorization: Bearer $NUTALK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"criterion_key": "G2",
"note": "The customer did confirm the time."
}'{
"success": true,
"data": {
"conversation_id": "8c9d0e1f-2a3b-4c4d-8e5f-6a7b8c9d0e1f",
"criterion_key": "G2",
"note": "The customer did confirm the time.",
"reviewed_at": "2026-10-27T18:40:11.204+00:00"
}
}/v1/test-runs/:id/conversations/:conversation_id/verdict-reviewsTake a verdict mark back
Takes back the mark on one of a test conversation's verdicts.
testing:writeWaits for approvalWorkspace keys only · acts as the key's creatorPath parameters
iduuidrequiredThe test run id.
conversation_iduuidrequiredThe conversation's id.
Query parameters
criterion_keystringThe criterion's id (or send it in the body).
Request body
criterion_keystringThe criterion's id (or send it in the query string).
Unless its key was set not to wait, nothing is removed yet: the call answers 202 with data.change_request, and runs once an owner or admin approves it in Settings → API keys. Follow it with GET /v1/change-requests/:id.
Errors
400validation_errorThe body is not JSON, or a field is missing or invalid (details.errors lists each field).400validation_errorA query parameter is invalid (details.errors lists each one).403forbiddenThe member who created the key has a role that can't do this or has left the workspace.404not_foundNo test run or conversation with this id in your workspace (ids of other workspaces answer the same).Plus the errors every request can return (401, 403, 429, 500): Errors.
curl -X DELETE https://www.nutalk.ai/v1/test-runs/550e8400-e29b-41d4-a716-446655440000/conversations/8c9d0e1f-2a3b-4c4d-8e5f-6a7b8c9d0e1f/verdict-reviews \
-H "Authorization: Bearer $NUTALK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"criterion_key": "G2"
}'{
"success": true,
"data": {
"conversation_id": "8c9d0e1f-2a3b-4c4d-8e5f-6a7b8c9d0e1f",
"criterion_key": "G2",
"removed": true
}
}/v1/agents/:id/release-summaryGet a version's release summary
What Automated testing says of an agent version before it goes live: the channels that will answer with it, the test chats tried on it (and which reply was picked or preferred), its last simulated test with the version it was compared with (worse counts the customers it failed that the other version passed), and its calls. Owners, admins and builders read it.
testing:readWorkspace keys only · acts as the key's creatorIt runs the dashboard's own rules as the member who created the key. A key whose creator has left the workspace is refused.
Path parameters
iduuidrequiredThe agent id.
Query parameters
version_iduuidrequiredThe version (GET /v1/agents/:id lists them).
Errors
400validation_errorA query parameter is invalid (details.errors lists each one).403forbiddenThe member who created the key isn't an owner, admin or builder, or has left the workspace.404not_foundNo agent or version with this id in your workspace (ids of other workspaces answer the same).Plus the errors every request can return (401, 403, 429, 500): Errors.
curl "https://www.nutalk.ai/v1/agents/550e8400-e29b-41d4-a716-446655440000/release-summary?version_id=2ea87934-6e03-4db7-80f2-ac753b724c82" \ -H "Authorization: Bearer $NUTALK_API_KEY"
{
"success": true,
"data": {
"agent_version_id": "2ea87934-6e03-4db7-80f2-ac753b724c82",
"channels": [
"Clínica Sol WhatsApp"
],
"chats": {
"count": 3,
"messages": 18,
"picked": 1,
"preferred": 1
},
"simulated": {
"test_run_id": "6a7b8c9d-0e1f-4a2b-9c3d-4e5f6a7b8c9d",
"scenario": "Books a cleaning",
"passed": 5,
"total": 6,
"compared": {
"label": "v12",
"passed": 4,
"total": 6
},
"worse": 1
},
"calls": {
"count": 2,
"last_seconds": 94
}
}
}/v1/test-numbersList the test call numbers
The workspace's test numbers, where free test calls go (up to four), each verified or waiting for its code (pending) and naming its phone (test_phone_id); today's free test calls (quota); and phones: every test phone of the workspace, one per phone, with what it's for: test calls and campaign tests (test_calls, its number in numbers) and each WhatsApp or Apple Messages channel whose AI answers it while the channel is in Testing (channels, with the channel's mode). A phone's phone_number is whole for owners and admins and null for everyone else, whose display shows its country code, area code and last four digits. A phone's channels are a channel's test numbers, so they need channels:read too, as GET /v1/channels/:id/ai-test-numbers does: without it phones lists only the phones that take test calls, with channels null and last_test_at a test call's only. Owners, admins, builders and operators read them.
testing:readWorkspace keys only · acts as the key's creatorIt runs the dashboard's own rules as the member who created the key. A key whose creator has left the workspace is refused.
Errors
403forbiddenThe member who created the key isn't an owner, admin, builder or operator, or has left the workspace.Plus the errors every request can return (401, 403, 429, 500): Errors.
curl https://www.nutalk.ai/v1/test-numbers \ -H "Authorization: Bearer $NUTALK_API_KEY"
{
"success": true,
"data": {
"available": true,
"numbers": [
{
"id": "4b5c6d7e-8f90-4a1b-9c2d-3e4f5a6b7c8d",
"phone_number": "+528155550199",
"country": "MX",
"label": "Ana's mobile",
"status": "verified",
"test_phone_id": "6d7e8f90-1a2b-4c3d-8e4f-5a6b7c8d9e0f"
}
],
"quota": {
"enabled": true,
"limit": 10,
"used": 2,
"remaining": 8,
"resets_at": "2026-10-29T06:00:00.000Z",
"own_line_unlimited": false,
"unlimited": false
},
"can_manage": true,
"verification_available": true,
"phones": [
{
"id": "6d7e8f90-1a2b-4c3d-8e4f-5a6b7c8d9e0f",
"phone_number": "+528155550199",
"display": "+52 81 5555 0199",
"country": "MX",
"name": "Ana's mobile",
"added_at": "2026-10-12T15:00:00.000Z",
"test_calls": {
"id": "4b5c6d7e-8f90-4a1b-9c2d-3e4f5a6b7c8d",
"status": "verified",
"code_sent_at": "2026-10-12T15:00:00.000Z",
"verified_at": "2026-10-12T15:02:00.000Z"
},
"channels": [
{
"channel_id": "9f19ef32-eaef-452c-bebc-14d9759cdb64",
"name": "Recepción",
"app": "whatsapp",
"mode": "testing",
"test_number_id": "7e8f901a-2b3c-4d4e-9f5a-6b7c8d9e0f1a",
"added_at": "2026-10-12T15:00:00.000Z",
"last_ai_reply_at": "2026-11-03T17:54:00.000Z"
}
],
"last_test_at": "2026-11-03T17:54:00.000Z"
}
]
}
}/v1/test-numbersAdd a test call number
Adds a number for free test calls (a mobile or landline in Mexico, the US or Canada) and texts it a code: it takes test calls once the code is sent to POST /v1/test-numbers/:id/verification. Owners and admins add them.
testing:writeWorkspace keys only · acts as the key's creatorIt runs the dashboard's own rules as the member who created the key. A key whose creator has left the workspace is refused.
Each code is a text message NuTalk pays for.
Request body
phone_numberstringrequiredThe number in E.164, or its 10 digits with country.
countryMX | US | CAIts country.
labelstring · up to 60A name for it.
Errors
400validation_errorThe body is not JSON, or a field is missing or invalid (details.errors lists each field).400validation_errorNot a number in Mexico, the US or Canada, or a toll-free or premium one (details.reason TEST_NUMBER_INVALID, TEST_NUMBER_COUNTRY_NOT_SUPPORTED, TEST_NUMBER_NOT_CALLABLE).403forbiddenThe member who created the key isn't an owner or admin, or has left the workspace.409conflictThe workspace has four already (TEST_NUMBER_LIMIT), or this one (TEST_NUMBER_DUPLICATE).429rate_limitedToo many codes texted lately (TEST_NUMBER_TOO_MANY_CODES).503service_unavailableCodes can't be texted right now (TEST_NUMBER_VERIFICATION_UNAVAILABLE).Plus the errors every request can return (401, 403, 429, 500): Errors.
curl -X POST https://www.nutalk.ai/v1/test-numbers \
-H "Authorization: Bearer $NUTALK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phone_number": "+528155550199",
"label": "Ana'\''s mobile"
}'{
"success": true,
"data": {
"id": "4b5c6d7e-8f90-4a1b-9c2d-3e4f5a6b7c8d",
"phone_number": "+528155550199",
"country": "MX",
"label": "Ana's mobile",
"status": "pending"
}
}/v1/test-numbers/:idRename a test phone or switch its uses
Renames a test phone (name; null clears it) and switches what it's for: test calls and campaign tests (test_calls: on texts it a 6-digit code, verified with POST /v1/test-numbers/:id/verification; off ends them, and its free WhatsApp messages with them), and WhatsApp or Apple Messages channels (channels: while a channel is in Testing its AI answers this phone, with no code). id is the phone's (phones[].id in GET /v1/test-numbers) or its test call number's (numbers[].id). Answers the phone after the changes, as GET /v1/test-numbers lists it: without channels:read, only a phone that takes test calls is found, and its channels is null. Owners and admins change them.
testing:writeCan wait for approvalWorkspace keys only · acts as the key's creatorIt runs the dashboard's own rules as the member who created the key. A key whose creator has left the workspace is refused.
The changes are made one at a time, in the order name, test_calls, channels: a refused one stops the rest, and those before it stay made.
Switching test calls off removes the phone's test call number, as DELETE /v1/test-numbers/:id does: it goes in a call of its own, and waits for an owner's or admin's approval when the key's deletes wait. Switching channels off, alone, never waits: it only stops the AI reaching the phone.
Each code is a text message NuTalk pays for.
Path parameters
iduuidrequiredThe test phone (or its test call number) id.
Request body
namestring | null · up to 60Its new name; null clears it.
test_callsbooleanTest calls and campaign tests: true texts it a code (Mexico, the US or Canada only); false ends them and removes its test call number, in a call of its own.
channelsobject[] · 1–20 itemsWhatsApp or Apple Messages channels of the workspace to switch it on or off for, each once. Needs channels:write too.
channels[].channel_iduuidrequiredThe channel (GET /v1/channels).
channels[].onbooleanrequiredWhether its AI answers this phone while it's in Testing.
Show 1 more field
Nothing changes yet: the call answers 202 with data.change_request, and runs once an owner or admin approves it in Settings → API keys. Follow it with GET /v1/change-requests/:id.
Errors
400validation_errorThe body is not JSON, or a field is missing or invalid (details.errors lists each field).400validation_errorTest calls for a number outside Mexico, the US or Canada (TEST_NUMBER_COUNTRY_NOT_SUPPORTED).403forbiddenThe member who created the key isn't an owner or admin, or has left the workspace.403forbiddenchannels from a key without channels:write.404not_foundNo test phone or test call number with this id in your workspace (ids of other workspaces answer the same), or a channel in channels that isn't one of its WhatsApp or Apple Messages channels (TEST_PHONE_NOT_FOUND).409conflictTest calls on while the workspace has its four (TEST_NUMBER_LIMIT), or a channel that has its ten test numbers (TEST_NUMBERS_LIMIT).429rate_limitedToo many codes texted lately (TEST_NUMBER_TOO_MANY_CODES).503service_unavailableCodes can't be texted right now (TEST_NUMBER_VERIFICATION_UNAVAILABLE).Plus the errors every request can return (401, 403, 429, 500): Errors.
curl -X PATCH https://www.nutalk.ai/v1/test-numbers/550e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer $NUTALK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Ana'\''s iPhone",
"channels": [
{
"channel_id": "9f19ef32-eaef-452c-bebc-14d9759cdb64",
"on": true
}
]
}'{
"success": true,
"data": {
"id": "6d7e8f90-1a2b-4c3d-8e4f-5a6b7c8d9e0f",
"phone_number": "+528155550199",
"display": "+52 81 5555 0199",
"country": "MX",
"name": "Ana's iPhone",
"added_at": "2026-10-12T15:00:00.000Z",
"test_calls": {
"id": "4b5c6d7e-8f90-4a1b-9c2d-3e4f5a6b7c8d",
"status": "verified",
"code_sent_at": "2026-10-12T15:00:00.000Z",
"verified_at": "2026-10-12T15:02:00.000Z"
},
"channels": [
{
"channel_id": "9f19ef32-eaef-452c-bebc-14d9759cdb64",
"name": "Recepción",
"app": "whatsapp",
"mode": "testing",
"test_number_id": "7e8f901a-2b3c-4d4e-9f5a-6b7c8d9e0f1a",
"added_at": "2026-10-12T15:00:00.000Z",
"last_ai_reply_at": "2026-11-03T17:54:00.000Z"
}
],
"last_test_at": "2026-11-03T17:54:00.000Z"
}
}/v1/test-numbers/:idRemove a test call number
Removes a test number: free test calls no longer go to it. Owners and admins remove them.
testing:writeWaits for approvalWorkspace keys only · acts as the key's creatorIt runs the dashboard's own rules as the member who created the key. A key whose creator has left the workspace is refused.
Path parameters
iduuidrequiredThe test number id.
Unless its key was set not to wait, nothing is removed yet: the call answers 202 with data.change_request, and runs once an owner or admin approves it in Settings → API keys. Follow it with GET /v1/change-requests/:id.
Errors
403forbiddenThe member who created the key isn't an owner or admin, or has left the workspace.404not_foundNo test number with this id in your workspace (ids of other workspaces answer the same).Plus the errors every request can return (401, 403, 429, 500): Errors.
curl -X DELETE https://www.nutalk.ai/v1/test-numbers/550e8400-e29b-41d4-a716-446655440000 \ -H "Authorization: Bearer $NUTALK_API_KEY"
{
"success": true,
"data": {
"id": "4b5c6d7e-8f90-4a1b-9c2d-3e4f5a6b7c8d",
"deleted": true
}
}/v1/test-numbers/:id/verificationVerify a test call number, or text a new code
With code, verifies the test number with the code it was texted; without one, texts it a new code. Owners and admins verify them.
testing:writeWorkspace keys only · acts as the key's creatorIt runs the dashboard's own rules as the member who created the key. A key whose creator has left the workspace is refused.
Path parameters
iduuidrequiredThe test number id.
Request body
codestringThe code texted to the number (4 to 10 digits).
Errors
400validation_errorThe body is not JSON, or a field is missing or invalid (details.errors lists each field).422validation_errorThe code is wrong or has expired (TEST_NUMBER_CODE_INVALID).403forbiddenThe member who created the key isn't an owner or admin, or has left the workspace.404not_foundNo test number with this id in your workspace (ids of other workspaces answer the same).409conflictA new code was asked for a number already verified (TEST_NUMBER_ALREADY_VERIFIED).429rate_limitedToo many tries or codes (TEST_NUMBER_TOO_MANY_TRIES, TEST_NUMBER_TOO_MANY_CODES).503service_unavailableCodes can't be texted or checked right now (TEST_NUMBER_VERIFICATION_UNAVAILABLE).Plus the errors every request can return (401, 403, 429, 500): Errors.
curl -X POST https://www.nutalk.ai/v1/test-numbers/550e8400-e29b-41d4-a716-446655440000/verification \
-H "Authorization: Bearer $NUTALK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"code": "482913"
}'code_sent false), or a new code sent (code_sent true).{
"success": true,
"data": {
"id": "4b5c6d7e-8f90-4a1b-9c2d-3e4f5a6b7c8d",
"phone_number": "+528155550199",
"country": "MX",
"label": "Ana's mobile",
"status": "verified",
"code_sent": false
}
}