Skip to content
Navigation

Search Nicer's knowledge

GET
https://api.nicer.travel/agent/knowledge

Searches what Nicer knows as a whole, rather than what it knows about one traveler: itineraries that advisors actually built and sent, community threads where somebody answered a question, and Nicer's own product documentation, narrowed to one kind of source when kind says so. Ask it in words, the way you would ask a colleague ("four nights in Cartagena with two children", "how do I send a proposal for approval"), and quote what comes back rather than inventing around it. Any signed-in person may call it, travelers included: results come only from the caller's own agencies and what is public, and no argument reaches another agency's knowledge.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Query parameters

  • query
    string
    required

    What to look for, in words, as you would ask a colleague.

    maxLength: 1000 · minLength: 3
  • kind
    optional
    itinerary
    or
    thread
    or
    doc

    Narrow to one sort of source: itinerary for trips that were built, thread for community conversations, doc for Nicer's product documentation.

Returns

200

OK

JSON
  • results
    array of
    object
    required
    • companyName
      required

      Any of the following:

      • string
      • null
    • excerpt
      string
      required
    • kind
      required

      Any of the following:

      • string
      • null
    • score
      required

      Any of the following:

      • number
      • null
    • title
      required

      Any of the following:

      • string
      • null

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close