Run a SHADOW profile's checks over the workspace's invoices (ADMIN or higher)
POST
/industry-profiles/current/{profileKey}/shadow/replay
const url = 'https://api.invogi.com/v1/industry-profiles/current/example/shadow/replay';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.invogi.com/v1/industry-profiles/current/example/shadow/replay \ --header 'Authorization: Bearer <token>'Records what the profile would raise on each invoice, as preview findings. Creates no analysis run, decision, finding, notification, or webhook, and uses no invoice allowance. Repeating it keeps reviews on findings still raised and supersedes findings that no longer apply. Saving a new configuration ends a replay in progress. Returns 409 unless the profile has specialised checks and its current version is saved as SHADOW.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”profileKey
required
string
Header Parameters
Section titled “Header Parameters”X-Invogi-Organization
string format: uuid
For a Clerk session, selects a workspace in which the user has an active membership. If omitted, the remembered accessible workspace is used. API keys remain bound to their own workspace and cannot select another tenant.
Responses
Section titled “Responses”Replay started
Media typeapplication/json
object
status
required
string
Example
{ "status": "started"}Missing or invalid API key
Media typeapplication/json
API key lacks required scope/role
Media typeapplication/json
The profile cannot be previewed