AI Search API
    AI Search API
    • API Reference
    • Search
      POST
    • Usage
      GET
    • Schemas
      • Chat message
      • Error Response

      Search

      Developing
      POST
      /v1/search
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST 'https://api.aisearchapi.io/v1/search' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "query": "string",
          "messages": [
              {
                  "role": "string",
                  "content": "string"
              }
          ],
          "response_type": "markdown",
          "include_sources": true
      }'
      Response Response Example
      200 - Example 1
      {
          "answer": "string",
          "meta": {
              "response_type": "string",
              "response_time": 0,
              "sources": [
                  "string"
              ]
          }
      }

      Request

      Authorization
      Provide your bearer token in the
      Authorization
      header when making requests to protected resources.
      Example:
      Authorization: Bearer ********************
      Body Params application/json

      Examples

      Responses

      🟢200Success
      application/json
      Body

      🟠400Bad Request
      🟠401Unauthorized
      🟠433Account is at / over message quota
      🟠429Too Many Requests
      🔴500Server Error
      Modified at 2025-07-31 11:12:38
      Previous
      API Reference
      Next
      Usage
      Built with