POST
/
smart
curl --request POST \
  --url https://chat-api.you.com/smart \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "query": "<string>",
  "chat_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
  "answer": "A solar eclipse occurs when the Moon passes between the Sun and Earth, casting a shadow on Earth and blocking the Sun's light either partially or completely ...",
  "search_results": [
    {
      "url": "https://en.wikipedia.org/wiki/Solar_eclipse",
      "name": "Solar eclipse - Wikipedia",
      "snippet": "A solar eclipse occurs when the Moon passes between Earth and the Sun, thereby obscuring the view of the Sun from a small part of Earth, totally or partially. Such an alignment occurs approximately every six months, during the eclipse season in its new moon phase, when the Moon's orbital plane is closest to the plane of Earth's orbit.\nIn partial and annular eclipses, only part of the Sun is obscured. Unlike a lunar eclipse, which may be viewed from anywhere on the night side of Earth, a solar eclipse can only be viewed from a relatively small area of the world. As such, although total solar eclipses occur somewhere on Earth every 18 months on average, they recur at any given place only once every 360 to 410 years.\nIf the Moon were in a perfectly circular orbit and in the same orbital plane as Earth, there would be total solar eclipses once a month, at every new moon. Instead, because the Moon's orbit is tilted at about 5 degrees to Earth's orbit, its shadow usually misses Earth ..."
    }
  ]
}

Before You Get Started

Our Smart API is currently in beta mode. To register for usage, please reach out via email at api@you.com.

Authorizations

X-API-Key
string
headerrequired

Body

application/json
query
string

A query to generate a response for

chat_id
string

A random string for continuing a conversation (e.g. str(uuid.uuid4()))

Response

200 - application/json
answer
string
search_results
object[]