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

Returns the stored Ask AI conversation for a section, or suggested questions when there is none. Send new_session 1 to clear the stored conversation first.

OAuth scope: read user About scopes

When a conversation is stored, data has a messages array (question, answer, id) instead of suggestions. Conversations are kept for one day.

Example request

curl -X POST "https://api.cryptohopper.com/v1/user/askai/new" \
  -H "access-token: YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"page":"dashboard","new_session":1}'

Parameters

Headers

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

Response

Example response (illustrative values)

{
    "data": {
        "suggestions": {
            "42": {
                "id": "42",
                "question": "How do I start my bot?",
                "answer": "Open your bot's dashboard and switch it on."
            }
        }
    }
}

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