POST https://api.cryptohopper.com/v1/user/askai

Sends a question to Ask AI, the Cryptohopper assistant, for one section. A plain question is answered as a stream of Server-Sent Events (Content-Type text/event-stream), not as JSON.

OAuth scope: read user About scopes

No response example: the event stream is produced by the separate AI gateway service and its format is not defined in this codebase. A form-encoded request with suggestion_id returns the stored answer of that suggested question as JSON instead. To answer a confirmation card from an earlier streamed answer, POST confirm_id with action confirm or cancel (and optionally session_id) instead of a question.

Example request

curl -X POST "https://api.cryptohopper.com/v1/user/askai" \
  -H "access-token: YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"page":"dashboard","question":"Why is my bot not buying?"}'

Parameters

Headers

NameTypeRequiredDescription
access-token string Required The OAuth access token of the user.

Response

The response is JSON. An example response for this endpoint is not documented yet.

Status codes: 200. Errors return JSON with status, error and message. See How the API works for response codes and rate limits.