Search documentation

Search the Fumadocs-backed documentation index.

Context

HTTP API route for reviewed shared Context suggestions.

RouteUseCLI equivalent
POST /context/suggestionsRead, submit, list, or withdraw a reviewed shared Context suggestion.`ax context suggest --file <PATH

The route requires an API key and an organization selected through org_id when the key can access more than one organization. The feature must be enabled for that organization. Shared Context stays read-only: this route cannot make a direct change or decide a suggestion. List and withdraw actions operate only on the authenticated user's own suggestions.

POST /api/v1/context/suggestions

Send one suggestion workflow action.

curl -X POST \
  -H "Authorization: Bearer $AX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"action":"list","pendingOnly":true}' \
  "https://app.514.ax/api/v1/context/suggestions?org_id=$AX_ORG_ID"
ActionRequired fieldsResult
snapshotkind (product, use_case, persona, or agent), targetIdCurrent editable fields and revision.
submitSnapshot target and baseRevision, proposed, reason, evidence, idempotencyKeySuggestion id, status, and version.
listNoneYour suggestions and nextPageToken. Set pendingOnly to only return pending records.
withdrawSuggestion id, versionUpdated suggestion id, status, and version.

proposed may contain only editable fields for the target kind. evidence is an array of up to five {url, description} values. idempotencyKey is a UUID; reuse it when retrying the same submission. To replace a pending suggestion, send both replacesRequestId and expectedVersion.

If the shared record changed after the snapshot, refresh it and submit a new proposal. A 409 response means the submitted version conflicts with the current review state. Invalid input returns 400; an unavailable target or feature returns 404; request limits return 429.