REST API / Collections
action_suggestions
Collection
Recommended next actions, recommendations and to-dos ranked by priority. Review and accept recommendations in the app.
- Max rows per query
- 100
- Default order
- priority desc
- Cursor paging
- by id
Use read report_* for dashboard headline metrics and anchored comparison windows.
Fields
| Field | Type | Description | Filter | Sort |
|---|---|---|---|---|
id indexed | string | Unique row ID. | ✓ | ✓ |
project_id indexed | string | Project ID from projects. | ✓ | – |
type | string | Suggested action type.CONTENT SEARCH AI_VISIBILITY SOURCE REPUTATION COMPETITOR COMMUNITY_REPLY TECHNICAL REVIEW_SUGGESTION | ✓ | ✓ |
title | string | Suggested title. | ✓ | ✓ |
status | string | Review state.PENDING ACCEPTED DISMISSED EXPIRED | ✓ | ✓ |
created_at | datetime | Creation time. | ✓ | ✓ |
priority indexed | integer | Recommendation priority; higher is more important. | ✓ | ✓ |
impactnullable | string | Expected impact.LOW MEDIUM HIGH | ✓ | ✓ |
effortnullable | string | Expected effort.LOW MEDIUM HIGH | ✓ | ✓ |
why_it_mattersnullable | string | Evidence-backed reason for the recommendation. | ✓ | ✓ |
evidence_urlnullable | string | Supporting evidence URL. | ✓ | ✓ |
Examples
Example
SELECT id, project_id, type, title, status
FROM action_suggestions
ORDER BY priority DESC
LIMIT 25Calling it
MCP
Tool call
query({"sql":"SELECT id, project_id, type, title, status FROM action_suggestions ORDER BY priority DESC LIMIT 25"})REST
curl
curl -X POST "https://app.sensorhub.ai/api/v1/query" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"sql": "SELECT id, project_id, type, title, status FROM action_suggestions ORDER BY priority DESC LIMIT 25"
}
JSONRow JSON Schema
json
{
"type": "object",
"description": "Recommended next actions, recommendations and to-dos ranked by priority. Review and accept recommendations in the app.",
"properties": {
"id": {
"type": "string",
"description": "Unique row ID.",
"x-sensorhub-indexed": true,
"x-sensorhub-searchable": false,
"x-sensorhub-aggregatable": true,
"x-sensorhub-filterable": true,
"x-sensorhub-sortable": true
},
"project_id": {
"type": "string",
"description": "Project ID from projects.",
"x-sensorhub-indexed": true,
"x-sensorhub-searchable": false,
"x-sensorhub-aggregatable": true,
"x-sensorhub-filterable": true,
"x-sensorhub-sortable": false
},
"type": {
"type": "string",
"description": "Suggested action type.",
"enum": [
"CONTENT",
"SEARCH",
"AI_VISIBILITY",
"SOURCE",
"REPUTATION",
"COMPETITOR",
"COMMUNITY_REPLY",
"TECHNICAL",
"REVIEW_SUGGESTION"
],
"x-sensorhub-filter-operators": [
"=",
"!=",
"<>",
"IN",
"NOT IN",
"IS NULL",
"IS NOT NULL"
],
"x-sensorhub-indexed": false,
"x-sensorhub-searchable": false,
"x-sensorhub-aggregatable": true,
"x-sensorhub-filterable": true,
"x-sensorhub-sortable": true
},
"title": {
"type": "string",
"description": "Suggested title.",
"x-sensorhub-indexed": false,
"x-sensorhub-searchable": false,
"x-sensorhub-aggregatable": true,
"x-sensorhub-filterable": true,
"x-sensorhub-sortable": true
},
"status": {
"type": "string",
"description": "Review state.",
"enum": [
"PENDING",
"ACCEPTED",
"DISMISSED",
"EXPIRED"
],
"x-sensorhub-filter-operators": [
"=",
"!=",
"<>",
"IN",
"NOT IN",
"IS NULL",
"IS NOT NULL"
],
"x-sensorhub-indexed": false,
"x-sensorhub-searchable": false,
"x-sensorhub-aggregatable": true,
"x-sensorhub-filterable": true,
"x-sensorhub-sortable": true
},
"created_at": {
"type": "string",
"description": "Creation time.",
"format": "date-time",
"x-sensorhub-indexed": false,
"x-sensorhub-searchable": false,
"x-sensorhub-aggregatable": true,
"x-sensorhub-filterable": true,
"x-sensorhub-sortable": true
},
"priority": {
"type": "integer",
"description": "Recommendation priority; higher is more important.",
"x-sensorhub-indexed": true,
"x-sensorhub-searchable": false,
"x-sensorhub-aggregatable": true,
"x-sensorhub-filterable": true,
"x-sensorhub-sortable": true
},
"impact": {
"type": [
"string",
"null"
],
"description": "Expected impact.",
"enum": [
"LOW",
"MEDIUM",
"HIGH",
null
],
"x-sensorhub-filter-operators": [
"=",
"!=",
"<>",
"IN",
"NOT IN",
"IS NULL",
"IS NOT NULL"
],
"x-sensorhub-indexed": false,
"x-sensorhub-searchable": false,
"x-sensorhub-aggregatable": true,
"x-sensorhub-filterable": true,
"x-sensorhub-sortable": true
},
"effort": {
"type": [
"string",
"null"
],
"description": "Expected effort.",
"enum": [
"LOW",
"MEDIUM",
"HIGH",
null
],
"x-sensorhub-filter-operators": [
"=",
"!=",
"<>",
"IN",
"NOT IN",
"IS NULL",
"IS NOT NULL"
],
"x-sensorhub-indexed": false,
"x-sensorhub-searchable": false,
"x-sensorhub-aggregatable": true,
"x-sensorhub-filterable": true,
"x-sensorhub-sortable": true
},
"why_it_matters": {
"type": [
"string",
"null"
],
"description": "Evidence-backed reason for the recommendation.",
"x-sensorhub-indexed": false,
"x-sensorhub-searchable": false,
"x-sensorhub-aggregatable": true,
"x-sensorhub-filterable": true,
"x-sensorhub-sortable": true
},
"evidence_url": {
"type": [
"string",
"null"
],
"description": "Supporting evidence URL.",
"x-sensorhub-indexed": false,
"x-sensorhub-searchable": false,
"x-sensorhub-aggregatable": true,
"x-sensorhub-filterable": true,
"x-sensorhub-sortable": true
}
},
"additionalProperties": false
}