API ReferenceDeal Wizards

List deal wizards

GET
/api/v1/orgs/{orgId}/wizards

Lists the organization's offered deal wizards. Listing wizards are excluded. Use matchDealWizard to pick one from a description, then getNextWizardQuestion to walk it.

Requires one of api_deals_list or api_deals_create.

Authorization

bearerAuth
AuthorizationBearer <token>

Bearer token using a Clai API key secret (clai_live_*).

In: header

Path Parameters

NameTypeDescription
orgId
required
string

Organization ID the key is operating in

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://app.goclai.com/api/v1/orgs/org_2abc123/wizards"
{
  "wizards": [
    {
      "wizardId": "string",
      "name": "string",
      "description": "string",
      "questionCount": 0,
      "definitionVersion": "string"
    }
  ]
}
{
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable error message",
    "details": {}
  }
}
{
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable error message",
    "details": {}
  }
}
{
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable error message",
    "details": {}
  }
}