Suggest rule refinements

post/v1/custom-columns/suggest-rules

AI endpoint: returns 3-5 composable rule refinement suggestions for a column prompt. Rate-limited per workspace (20 req/min).

Requires a bearer token: Authorization: Bearer <token>.

Request

cURL
curl -X POST https://api.wellapp.ai/v1/custom-columns/suggest-rules \
  -H "Authorization: Bearer $WELL_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "data": {
    "type": "custom_column_suggest_rules",
    "attributes": {
      "prompt": "How many days each invoice from Anthropic is overdue",
      "root": "Root",
      "type": "text"
    }
  }
}'
Request body
{
  "data": {
    "type": "custom_column_suggest_rules",
    "attributes": {
      "prompt": "How many days each invoice from Anthropic is overdue",
      "root": "Root",
      "type": "text"
    }
  }
}

Responses

200Suggested rule refinements (3-5).

{
  "data": {}
}

400Validation error.

{
  "code": "BAD_REQUEST",
  "status": 400,
  "title": "Bad Request",
  "message": "See title.",
  "meta": {
    "trace_id": "a1b2c3",
    "log_id": "a1b2c3"
  }
}

401Unauthorized.

{
  "code": "UNAUTHORIZED",
  "status": 401,
  "title": "Unauthorized",
  "message": "See title.",
  "meta": {
    "trace_id": "a1b2c3",
    "log_id": "a1b2c3"
  }
}

429AI rate limit exceeded.

{
  "code": "RATE_LIMIT_EXCEEDED",
  "status": 429,
  "title": "Too Many Requests",
  "message": "See title.",
  "meta": {
    "trace_id": "a1b2c3",
    "log_id": "a1b2c3"
  }
}