List deal 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 Bearer token using a Clai API key secret (clai_live_*).
In: header
Path Parameters
| Name | Type | Description |
|---|---|---|
orgIdrequired | 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": {}
}
}DELETEDelete a contact
Soft-deletes a contact. Contacts linked to a Clai user account cannot be deleted (`409 CONTACT_LINKED`). Requires the `api_contacts_delete` scope.
POSTMatch a deal wizard
Picks the org's deal wizard that best fits a description, using the same matcher as the in-app search bar. Returns the match with its first question, up to two other wizards, and matching deal templates. Falls back to the real-estate starter wizard when nothing matches. Does not create anything. Requires one of `api_deals_list` or `api_deals_create`.