Skip to main content
POST
Test draft health guidance on accounts

Authorizations

Authorization
string
header
required

An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.

Body

application/json
instructions
InstructionChanges · object
required

The draft, over the saved guidance: the test runs the saved guidance with these pillars changed

account_ids
string[] | null

The accounts to test, 1 to 50

Required array length: 1 - 50 elements
view_id
integer | null

Or a saved account view (GET /v1/views) that selects 1 to 50 accounts

Required range: x >= 1

Response

202 - application/json

Successful Response

accounts_done
integer
required
accounts_total
integer
required
error
string | null
required
finished_at
string<date-time> | null
required
id
string
required
instructions
Instructions · object
required

The draft tested, by pillar; null: guidance removed

results
HealthTestAccount · object[]
required

One per account that has finished, in the test's account order

started_at
string<date-time>
required
status
enum<string>
required

queued, then running; done when every account has a result; failed when the run broke, or when it has not ended an hour after it started

Available options:
queued,
running,
done,
failed