Skip to content

Run a SHADOW profile's checks over the workspace's invoices (ADMIN or higher)

POST
/industry-profiles/current/{profileKey}/shadow/replay
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.

profileKey
required
string
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.

Replay started

Media typeapplication/json
object
status
required
string
Allowed values: started

Example

{
"status": "started"
}

Missing or invalid API key

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}

API key lacks required scope/role

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}

The profile cannot be previewed