Workflows

Save a test case for a skill

Saving a case RUNS NOTHING. Only POST .../test-runs runs the skill.

That separation is the point: building a suite is free, and executing it is the operation that costs.

post/skills/{action_id}/test-cases

Request

  • Base URL: https://be.graph8.com/api/v1
  • URL: https://be.graph8.com/api/v1/skills/{action_id}/test-cases
  • Auth: HTTP bearer

Path parameters

action_idstring required

Skill or workflow action_id.

Headers

Authorizationstring nullable
X-Target-Org-Idstring nullable

Request body

namestring required

Human label.

input_dataobject required

The fixture, same shape as an execution's input.

expected_outputunknown
assertion_typestring

"exact", "contains" or "llm_judge". llm_judge is skipped by dry runs.

assertion_configobject nullable

Extra configuration for the assertion.

Response

Successful Response

dataVoicePayload required

One voice object - a collection, an agent, a route, a chat.

Open-shaped: voice adds fields to these bodies on its own release cadence and a dropped-or-added key must not be a 500 in this service.

Changes

No recorded changes to this operation across all 2 revisions of this API.