ThunderPhone Investigations API
The investigations API from ThunderPhone — 8 operation(s) for investigations.
The investigations API from ThunderPhone — 8 operation(s) for investigations.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/thunderphone-com:thunderphone-com-investigations-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: ThunderPhone Investigations API
version: 1.0.0
description: Programmatic access to the ThunderPhone platform — agents, phone numbers, calls, billing, webhooks, and more. See https://thunderphone.com/docs and https://thunderphone.com/developers for the reference, tutorials and migration guides.
contact:
name: ThunderPhone support
url: https://thunderphone.com/docs
servers:
- url: https://api.thunderphone.com
description: Production
tags:
- name: investigations
paths:
/v1/investigations:
get:
operationId: investigations_list
description: POST /v1/investigations — create a new investigation. GET /v1/investigations — list investigations for the org.
tags:
- investigations
security:
- bearerAuth: []
- bearerAuth: []
responses:
'200':
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/InvestigationList'
description: ''
summary: Investigations list
x-summary-source: derived
post:
operationId: investigations_create
description: POST /v1/investigations — create a new investigation. GET /v1/investigations — list investigations for the org.
tags:
- investigations
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/StartInvestigationRequest'
required: true
security:
- bearerAuth: []
- bearerAuth: []
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/InvestigationDetail'
description: ''
summary: Investigations create
x-summary-source: derived
/v1/investigations/{investigation_id}:
get:
operationId: investigations_retrieve
description: GET /v1/investigations/ — full investigation with nested children. PATCH /v1/investigations/ — update config or dismiss.
parameters:
- in: path
name: investigation_id
schema:
type: string
format: uuid
required: true
tags:
- investigations
security:
- bearerAuth: []
- bearerAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/InvestigationDetail'
description: ''
summary: Investigations retrieve
x-summary-source: derived
patch:
operationId: investigations_partial_update
description: GET /v1/investigations/ — full investigation with nested children. PATCH /v1/investigations/ — update config or dismiss.
parameters:
- in: path
name: investigation_id
schema:
type: string
format: uuid
required: true
tags:
- investigations
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PatchedUpdateInvestigationRequest'
security:
- bearerAuth: []
- bearerAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/InvestigationDetail'
description: ''
summary: Investigations partial update
x-summary-source: derived
/v1/investigations/{investigation_id}/hypotheses:
post:
operationId: investigations_hypotheses
description: POST /v1/investigations//hypotheses — trigger async hypothesis generation.
parameters:
- in: path
name: investigation_id
schema:
type: string
format: uuid
required: true
tags:
- investigations
security:
- bearerAuth: []
- bearerAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/InvestigationDetail'
description: ''
requestBody:
required: false
content:
application/json:
schema:
type: object
additionalProperties: false
summary: Investigations hypotheses
x-summary-source: derived
/v1/investigations/{investigation_id}/search:
post:
operationId: investigations_search
description: POST /v1/investigations//search — autonomously find and confirm a fix.
parameters:
- in: path
name: investigation_id
schema:
type: string
format: uuid
required: true
tags:
- investigations
security:
- bearerAuth: []
- bearerAuth: []
responses:
'202':
content:
application/json:
schema:
$ref: '#/components/schemas/InvestigationDetail'
description: ''
requestBody:
required: false
content:
application/json:
schema:
type: object
additionalProperties: false
summary: Investigations search
x-summary-source: derived
/v1/investigations/{investigation_id}/candidates/manual:
post:
operationId: investigations_candidates_manual
description: POST /v1/investigations//candidates/manual — add a user-authored candidate.
parameters:
- in: path
name: investigation_id
schema:
type: string
format: uuid
required: true
tags:
- investigations
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SubmitManualCandidateRequest'
required: true
security:
- bearerAuth: []
- bearerAuth: []
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/PromptCandidate'
description: ''
summary: Investigations candidates manual
x-summary-source: derived
/v1/investigations/{investigation_id}/candidates/{candidate_id}/experiments:
post:
operationId: investigations_candidates_experiments
description: POST /v1/investigations//candidates//experiments — start an experiment.
parameters:
- in: path
name: candidate_id
schema:
type: string
format: uuid
required: true
- in: path
name: investigation_id
schema:
type: string
format: uuid
required: true
tags:
- investigations
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RunExperimentRequest'
security:
- bearerAuth: []
- bearerAuth: []
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/Experiment'
description: ''
summary: Investigations candidates experiments
x-summary-source: derived
/v1/investigations/{investigation_id}/experiments/{experiment_id}:
get:
operationId: investigations_experiments_retrieve
description: GET /v1/investigations//experiments/ — poll experiment progress.
parameters:
- in: path
name: experiment_id
schema:
type: string
format: uuid
required: true
- in: path
name: investigation_id
schema:
type: string
format: uuid
required: true
tags:
- investigations
security:
- bearerAuth: []
- bearerAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Experiment'
description: ''
summary: Investigations experiments retrieve
x-summary-source: derived
/v1/investigations/{investigation_id}/apply:
post:
operationId: investigations_apply
description: POST /v1/investigations//apply — apply a candidate fix.
parameters:
- in: path
name: investigation_id
schema:
type: string
format: uuid
required: true
tags:
- investigations
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ApplyInvestigationRequest'
security:
- bearerAuth: []
- bearerAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/InvestigationDetail'
description: ''
summary: Investigations apply
x-summary-source: derived
components:
schemas:
ExperimentStatusEnum:
enum:
- queued
- running
- completed
- failed
type: string
description: '* `queued` - Queued
* `running` - Running
* `completed` - Completed
* `failed` - Failed'
PromptCandidate:
type: object
properties:
id:
type: string
format: uuid
readOnly: true
source:
allOf:
- $ref: '#/components/schemas/PromptCandidateSourceEnum'
readOnly: true
kind:
allOf:
- $ref: '#/components/schemas/PromptCandidateKindEnum'
readOnly: true
hypothesis_id:
type:
- string
- 'null'
readOnly: true
label:
type: string
readOnly: true
prompt:
type: string
readOnly: true
rationale:
type: string
readOnly: true
edits:
readOnly: true
edits_unverified:
type: boolean
readOnly: true
created_at:
type: string
format: date-time
readOnly: true
latest_experiment_id:
type:
- string
- 'null'
format: uuid
readOnly: true
required:
- created_at
- edits
- edits_unverified
- hypothesis_id
- id
- kind
- label
- latest_experiment_id
- prompt
- rationale
- source
ApplyInvestigationRequest:
type: object
properties:
candidate_id:
type: string
format: uuid
candidate_ids:
type: array
items:
type: string
format: uuid
deploy:
type: boolean
default: false
with_ack:
type: boolean
default: false
SubmitManualCandidateRequest:
type: object
properties:
label:
type: string
minLength: 1
maxLength: 255
prompt:
type: string
minLength: 1
rationale:
type: string
default: ''
required:
- label
- prompt
InvestigationList:
type: object
description: Lightweight serializer for the list endpoint (no nested children).
properties:
id:
type: string
format: uuid
readOnly: true
issue_trace_ids:
readOnly: true
issue_pattern_id:
type: string
readOnly: true
agent_id:
type: integer
readOnly: true
baseline_prompt:
type: string
readOnly: true
call_ids:
readOnly: true
status:
allOf:
- $ref: '#/components/schemas/StatusE8cEnum'
readOnly: true
experiment_config:
readOnly: true
hypotheses:
readOnly: true
progress:
readOnly: true
baseline_results:
readOnly: true
baseline_repro_rate:
type:
- number
- 'null'
format: double
readOnly: true
replay_explanation:
type: string
readOnly: true
suggested_lane_change:
type:
- string
- 'null'
readOnly: true
applied_candidate_id:
type:
- string
- 'null'
format: uuid
readOnly: true
applied_agent_version:
type:
- integer
- 'null'
readOnly: true
baseline_stale:
type: boolean
readOnly: true
error_message:
type:
- string
- 'null'
readOnly: true
created_at:
type: string
format: date-time
readOnly: true
updated_at:
type: string
format: date-time
readOnly: true
held_out:
type: boolean
description: 'Present only for organizations with the agent iteration toolkit: true when a held-out call (one whose caller is in an agent''s test split) went into this. For an API key, held-out calls and their issue reports are left out of every count, id and sample here, and text a model wrote partly from them reads [held out] or is empty. People see it in full in the dashboard. Organizations without the toolkit are unaffected.'
next_step:
type: string
description: 'Present when text is withheld because of held-out calls: where to read it instead.'
required:
- agent_id
- applied_agent_version
- applied_candidate_id
- baseline_prompt
- baseline_repro_rate
- baseline_results
- baseline_stale
- call_ids
- created_at
- error_message
- experiment_config
- hypotheses
- id
- issue_pattern_id
- issue_trace_ids
- progress
- replay_explanation
- status
- suggested_lane_change
- updated_at
StatusE8cEnum:
enum:
- idle
- generating_hypotheses
- awaiting_candidates
- generating_candidates
- searching
- ready
- not_replayable
- not_reproducible
- applied
- dismissed
type: string
description: '* `idle` - Idle
* `generating_hypotheses` - Generating Hypotheses
* `awaiting_candidates` - Awaiting Candidates
* `generating_candidates` - Generating Candidates
* `searching` - Searching
* `ready` - Ready
* `not_replayable` - Not Replayable
* `not_reproducible` - Not Reproducible
* `applied` - Applied
* `dismissed` - Dismissed'
PromptCandidateKindEnum:
enum:
- prompt_edit
- pipeline_upgrade
type: string
description: '* `prompt_edit` - Prompt Edit
* `pipeline_upgrade` - Pipeline Upgrade'
RunEnum:
enum:
- auto
type: string
description: '* `auto` - auto'
InvestigationDetail:
type: object
description: 'Full investigation with nested candidates and experiments.
Matches the IssueInvestigation TypeScript interface including
candidates[] and experiments[].'
properties:
id:
type: string
format: uuid
readOnly: true
issue_trace_ids:
readOnly: true
issue_pattern_id:
type: string
readOnly: true
agent_id:
type: integer
readOnly: true
baseline_prompt:
type: string
readOnly: true
call_ids:
readOnly: true
status:
allOf:
- $ref: '#/components/schemas/StatusE8cEnum'
readOnly: true
experiment_config:
readOnly: true
hypotheses:
readOnly: true
progress:
readOnly: true
baseline_results:
readOnly: true
baseline_repro_rate:
type:
- number
- 'null'
format: double
readOnly: true
replay_explanation:
type: string
readOnly: true
suggested_lane_change:
type:
- string
- 'null'
readOnly: true
prompt_drift:
type: object
additionalProperties: {}
readOnly: true
search_result:
type:
- object
- 'null'
additionalProperties: {}
readOnly: true
baseline_stale:
type: boolean
readOnly: true
candidates:
type: array
items:
$ref: '#/components/schemas/PromptCandidate'
readOnly: true
experiments:
type: array
items:
type: object
additionalProperties: {}
description: Collect all experiments across all candidates.
readOnly: true
applied_candidate_id:
type:
- string
- 'null'
format: uuid
readOnly: true
applied_agent_version:
type:
- integer
- 'null'
readOnly: true
error_message:
type:
- string
- 'null'
readOnly: true
created_at:
type: string
format: date-time
readOnly: true
updated_at:
type: string
format: date-time
readOnly: true
held_out:
type: boolean
description: 'Present only for organizations with the agent iteration toolkit: true when a held-out call (one whose caller is in an agent''s test split) went into this. For an API key, held-out calls and their issue reports are left out of every count, id and sample here, and text a model wrote partly from them reads [held out] or is empty. People see it in full in the dashboard. Organizations without the toolkit are unaffected.'
next_step:
type: string
description: 'Present when text is withheld because of held-out calls: where to read it instead.'
required:
- agent_id
- applied_agent_version
- applied_candidate_id
- baseline_prompt
- baseline_repro_rate
- baseline_results
- baseline_stale
- call_ids
- candidates
- created_at
- error_message
- experiment_config
- experiments
- hypotheses
- id
- issue_pattern_id
- issue_trace_ids
- progress
- prompt_drift
- replay_explanation
- search_result
- status
- suggested_lane_change
- updated_at
RunExperimentRequest:
type: object
properties:
config: {}
candidate_ids:
type: array
items:
type: string
format: uuid
StartInvestigationRequest:
type: object
properties:
issue_pattern_id:
type: string
minLength: 1
maxLength: 255
issue_trace_ids:
type: array
items:
type: string
minLength: 1
maxLength: 128
agent_id:
type: integer
call_ids:
type: array
items:
type: integer
minimum: 1
experiment_config: {}
run:
$ref: '#/components/schemas/RunEnum'
required:
- agent_id
- call_ids
- issue_pattern_id
- issue_trace_ids
PatchedUpdateInvestigationRequest:
type: object
description: PATCH — update experiment config or dismiss.
properties:
status:
$ref: '#/components/schemas/UpdateInvestigationStatusEnum'
experiment_config: {}
UpdateInvestigationStatusEnum:
enum:
- dismissed
type: string
description: '* `dismissed` - dismissed'
PromptCandidateSourceEnum:
enum:
- ai
- manual
type: string
description: '* `ai` - AI
* `manual` - Manual'
ExperimentSample:
type: object
properties:
id:
type: string
format: uuid
readOnly: true
call_id:
type: integer
readOnly: true
sample_index:
type: integer
readOnly: true
user_input:
type: string
readOnly: true
original_output:
type: string
readOnly: true
replayed_output:
type: string
readOnly: true
grade:
readOnly: true
metadata:
readOnly: true
created_at:
type: string
format: date-time
readOnly: true
required:
- call_id
- created_at
- grade
- id
- metadata
- original_output
- replayed_output
- sample_index
- user_input
Experiment:
type: object
description: Full experiment with nested samples.
properties:
id:
type: string
format: uuid
readOnly: true
candidate_id:
type: string
format: uuid
readOnly: true
candidate_ids:
readOnly: true
status:
allOf:
- $ref: '#/components/schemas/ExperimentStatusEnum'
readOnly: true
config:
readOnly: true
samples:
type: array
items:
$ref: '#/components/schemas/ExperimentSample'
readOnly: true
summary:
readOnly: true
progress:
readOnly: true
created_at:
type: string
format: date-time
readOnly: true
completed_at:
type:
- string
- 'null'
format: date-time
readOnly: true
error_message:
type:
- string
- 'null'
readOnly: true
required:
- candidate_id
- candidate_ids
- completed_at
- config
- created_at
- error_message
- id
- progress
- samples
- status
- summary
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: sk_live_…
description: 'Organization API key. Send Authorization: Bearer sk_live_…; create a key in the dashboard.'
humanToken:
type: apiKey
in: header
name: Authorization
description: 'Human session token: Authorization: Token <session-token>. Organization API keys are rejected by key-management and account-control operations.'
x-mcp-server: https://api.thunderphone.com/v1/mcp