Auto REST API reference

Note

Auto and Auto Advanced are generally available to every Web IQ AppID from November 17, 2026. AppIDs without full document access get passages.

Endpoint: POST https://api.microsoft.ai/v3/auto

All requests require an API key or Microsoft Entra ID access token. See Authentication for setup instructions.

Sample request

curl -X POST "https://api.microsoft.ai/v3/auto" \
  -H "x-apikey: <Your API key>" \
  -H "content-type: application/json" \
  -d '{
    "query": "Microsoft AI announcements",
    "language": "en",
    "region": "US",
    "location": "lat:47.6062;long:-122.3321",
    "mode": "lite",
    "maxResponseLength": 30000,
    "maxCitations": 10,
    "responseFilter": ["web", "news"]
  }'

Scoped request example

To filter Web and News retrieval in Auto using a named scope (see Filter results with Scopes), include scopeName and failOnMissingScope:

curl -X POST "https://api.microsoft.ai/v3/auto" \
  -H "x-apikey: <Your API key>" \
  -H "content-type: application/json" \
  -d '{
    "query": "product setup guide",
    "scopeName": "ProductDocs",
    "failOnMissingScope": true,
    "mode": "lite",
    "responseFilter": ["web", "news"]
  }'

Parameters

Parameter Required Type Default Description
query Yes string - Search query, from 1 to 1,000 characters.
language No string en Two-letter ISO 639-1 interface language.
region No string US Two-letter market or country/region code.
mode No string lite lite prioritizes speed; advanced prioritizes comprehensiveness.
maxResponseLength No integer 30000 Maximum content length for web results, not the total response length. Values below 1500 are clamped to 1500; values above 500000 are clamped to 500000. For AppIDs without full document access, the maximum is 30000.
maxCitations No integer 10 Maximum number of web citations to request, from 1 through 50. Values below 1 are clamped to 1; values above 50 are capped at 50.
location No string - Geographic context in lat:<latitude>;long:<longitude> format, for example lat:47.6062;long:-122.3321.
responseFilter No array of strings - Eligible answer types: web, news, timezone, weather, images, videos.
includeSites No array of strings - Restricts eligible Web results to these sites (domains with optional paths), with at most 250 entries. News and other answer types aren't filtered. Keep the list short and relevant for best results. Paths support up to two segments; deeper paths are truncated, so example.com/a/b/c is treated as example.com/a/b.
excludeSites No array of strings - Omits Web results from these sites (domains with optional paths), with at most 250 entries and the same path rules as includeSites. If a site appears in both lists, it's excluded. News and other answer types aren't filtered.
scopeName No string - One named scope from the collection assigned to the selected Web IQ AppID's billing account. Use 1-128 ASCII letters, digits, ., _, or -, without whitespace. For Auto, scopes restrict only Web and News results. Other answer types are not filtered by the scope and may contain results outside it, even when scopeApplied is true. Omitted or null means no named scope is requested. See Filter results with Scopes.
failOnMissingScope No boolean true Controls fallback for scopeName; omitted or null means true. If the service reports that the scope could not be applied, true returns HTTP 400 (HandlerInvalidInput) for a confirmed missing scope, or HTTP 500 (ScopeFailedToApply) for other scope failures. false allows searching without the scope, with scopeApplied: false when that outcome is reported. A valid scope is applied with either value; zero matching results are not a scope failure. Has no effect without a named scope. See Named-scope errors.

Response

A successful evidence response returns 200 OK. Each result contains one typed evidence object and the citations that support it. Unsupported or malformed evidence is omitted together with its citations. If every supplied evidence result is omitted, results is empty.

AutoEvidenceResponse

Field Type Description
results array of AutoEvidenceResult Evidence items paired with citations scoped to that result.
querySignals QuerySignals Query-level ranking signals for the search query.
scopeApplied boolean (optional) true means the requested scope was applied, not necessarily its latest definition. false means the scope was not applied; failOnMissingScope: false permits this unscoped response. Omitted when the service does not report an application outcome. Without scopeName, no named scope is requested; do not assume the field is present or always false. Describes the current request, not global propagation.
traceId string Correlation ID for debugging and support.

QuerySignals

Field Type Description
freshness boolean Indicates whether fresh documents should be prioritized over other documents for this query.

AutoEvidenceResult

Field Type Description
evidence AutoEvidence Generated typed evidence.
citations array of AutoEvidenceCitation Citations supporting only this evidence result.

AutoEvidence

The evidence object's own type discriminator selects the schema of content. Use the evidence type index to find the corresponding definition.

Field Type Description
type string Discriminator identifying the evidence schema. Values are case-sensitive, for example structured/timeZone.
content string or object Text or structured content whose shape depends on type.

AutoEvidenceCitation

Citation fields vary by answer type and available source metadata. Not every field is present in every citation.

Field Type Description
contentSource string Citation source.
source string Name of the cited site.
siteIcon string Icon URL for the cited site.
title string Citation title.
url string Citation URL.
publishedBy string Publisher of the cited content.
hostPageUrl string URL of the page hosting the cited content.
lastUpdatedAt string Last-updated timestamp.
crawledAt string Crawl timestamp.
language string Content language.
isAdult boolean Whether the citation contains adult content. Returned explicitly when true; treat an omitted field as false.

Answer-specific citations can also include the following metadata:

Field Type Applies to Description
observedAt string Weather Observation timestamp supplied by the citation source.

Example response

{
  "results": [
    {
      "evidence": {
        "type": "text",
        "content": "Microsoft announced a new set of AI capabilities."
      },
      "citations": [
        {
          "contentSource": "web",
          "url": "https://www.microsoft.com/en-us/ai",
          "title": "Microsoft AI",
          "language": "en"
        }
      ]
    }
  ],
  "querySignals": { "freshness": true },
  "traceId": "00000000000000000000000000000000"
}

In this example, isAdult is omitted, so clients should treat it as false.

Evidence types

Use this index to look up an evidence object's content schema. Answer categories in the request's responseFilter aren't the same as evidence discriminators in the response: for example, timezone requests time-zone answers, while the returned evidence type is structured/timeZone.

Answer category Evidence type Content definition
web text Text evidence: string content.
news text/news Text evidence: string content with an optional thumbnail.
images media/image Image evidence: image dimensions, caption, and thumbnail.
videos media/video Video evidence: playback metadata, thumbnail, and optional moments.
weather structured/weather Weather object: conditions, forecasts, alerts, and sunlight data.
timezone structured/timeZone Time-zone object: local times, UTC offsets, and comparisons.

The definitions below describe public fields. Fields can be omitted when unavailable; an omitted field doesn't imply a zero measurement or an empty answer. Source metadata and attribution belong to the enclosing result's citations, rather than a repeated response envelope in each definition.

Examples are illustrative evidence fragments, not complete responses. See the example response for the enclosing results and citations structure.

Text evidence

For text (Web) and text/news (News), content is a string rather than an object. News evidence can also include a thumbnail alongside content.

Field Type Description
content string Text evidence for the result.
thumbnail object (optional) News thumbnail with url (string), width (integer), and height (integer). Dimensions are in pixels.
{
  "type": "text/news",
  "content": "An example news summary.",
  "thumbnail": {
    "url": "https://example.com/news-thumbnail.jpg",
    "width": 320,
    "height": 180
  }
}

Image evidence

For media/image, content is an image object. The source image URL, hosting page URL, title, and source dates are supplied in the result's citations when available.

Content field Type Description
caption string Generated description of the image.
width integer Image width in pixels.
height integer Image height in pixels.
thumbnailUrl string Thumbnail image URL.
lastUpdatedAt string Source date in ISO 8601 format, when available.
{
  "type": "media/image",
  "content": {
    "caption": "An example city skyline.",
    "width": 1920,
    "height": 1080,
    "thumbnailUrl": "https://example.com/skyline-thumbnail.jpg"
  }
}

Video evidence

For media/video, content is a video object. Source details such as the video title, URL, publisher, and source date are supplied in the result's citations when available.

Content field Type Description
description string Description of the video content.
summary string Short summary or highlight of the video.
viewCount integer Number of video views.
length string Video duration in HH:MM:SS format.
allowHttpsEmbedding boolean Whether HTTPS embedding is allowed.
allowMobileEmbedding boolean Whether mobile embedding is allowed.
embeddingUrl string URL for embedding the video.
thumbnailUrl string Video thumbnail URL.
width integer Video width in pixels.
height integer Video height in pixels.
lastUpdatedAt string Source date in ISO 8601 format, when available.
bestMomentIndex integer Index of the best moment or highlight, when available.
moments array of VideoMoment Video segments, when available. The array can be empty.
{
  "type": "media/video",
  "content": {
    "viewCount": 1200,
    "length": "00:02:30",
    "thumbnailUrl": "https://example.com/video-thumbnail.jpg",
    "moments": []
  }
}

VideoMoment

Field Type Description
title string Segment title.
description string Description of the segment.
startTime string Segment start time in d.hh:mm:ss format.
endTime string Segment end time in d.hh:mm:ss format.
momentUrl string Direct URL to the segment.

Weather object

When a query is about the weather, Auto can return one structured/weather result per location. Fields are included when available. Read numeric measurements together with units; don't assume a fixed unit system.

Content field Type Description
location string Location name, for example Seattle, Washington.
url string Weather attribution URL for the location. The same URL is in the result's citation.
units object Unit system (system) and the units for temperature, speed, pressure, distance, height, and time.
alerts array of WeatherAlert Active or recent weather alerts for the location, filtered by the user's country or region.
currentWeather object Current conditions, including condition, dayPeriod, temperature, feelsLike, universalThermalClimateIndex, humidity, dewPoint, pressure, visibility, uv, uvLevel, windSpeed, windDirection, windGust, airQuality, and observedAt when available.
forecastedWeather array of objects Daily forecasts with validDate, condition, temperatureHigh, temperatureLow, feelsLikeHigh, feelsLikeLow, precipitationChance, rain and snow amounts, humidity, day, night, almanac, and hourly forecasts when available.
sunlight object Sunrise, sunset, moonrise, moonset, and moon phase for a specific date, when the query asks for one.

Current airQuality can contain index, severity, primaryPollutant, and validAt. A daily forecast's humidity can contain high and low. Its day and night sub-forecasts can contain condition, precipitationChance, windSpeed, and windDirection. Its almanac contains sun and moon data for validDate.

{
  "type": "structured/weather",
  "content": {
    "location": "Seattle, Washington",
    "units": {
      "system": "Imperial",
      "temperature": "F"
    },
    "currentWeather": {
      "condition": "Cloudy",
      "temperature": 50
    }
  }
}

WeatherAlert

Field Type Description
id string Alert identifier from the provider, when available.
name string Weather event name, for example Frost.
severity string Severity, for example Advisory, Watch, or Warning.
status string Alert status, for example Ongoing.
issuingAuthority string Organization that issued the alert, for example National Weather Service.
url string Link to the issuing authority. Included when the source supplies it.
description string Hazard description and affected area.
safetyGuidance string Recommended safety actions, when available.
issuedAt, effectiveAt, expiresAt string When the alert was issued, takes effect, and expires.

Time-zone object

For structured/timeZone, content describes local times or compares two time zones. A location lookup can return timeZones; a comparison can instead return startTimeZone, endTimeZone, and timeDifference. Don't require all of these fields in every answer.

Content field Type Description
description string Human-readable answer summary, when available.
timeZones array of TimeZoneEntry Entries for a single-location or multiple-location time answer.
startTimeZone TimeZoneEntry Source time zone for a comparison.
endTimeZone TimeZoneEntry Target time zone for a comparison.
timeDifference string Human-readable time-difference description for a comparison.
{
  "type": "structured/timeZone",
  "content": {
    "timeZones": [
      {
        "timeZoneName": "Pacific Standard Time",
        "timeZoneAbbreviation": "PST",
        "location": "Seattle, Washington",
        "utcOffset": -8,
        "utcTime": "Monday, 2026-11-16T05:00:00Z",
        "localTime": "Sunday, 2026-11-15T21:00:00-08:00"
      }
    ]
  }
}

TimeZoneEntry

Field Type Description
timeZoneName string Full time-zone name.
timeZoneAbbreviation string Abbreviation, for example PST or IST.
location string City, country, or region associated with the entry.
utcOffset number UTC offset in hours. Can be fractional, for example 5.5, or omitted when unavailable.
utcTime string UTC time as a formatted string.
localTime string Local time as a formatted string.

Time strings can include a day-of-week prefix; don't assume they're bare ISO 8601 timestamps.

Error codes

Status code Description
200 The request succeeded, including a valid search with no results.
400 Invalid parameters or malformed JSON.
401 Missing or invalid authentication credentials.
403 The authenticated Web IQ AppID isn't enabled for Auto.
429 Rate or quota limit exceeded.
500 Internal service failure.
503 A required service is unavailable.
504 The request timed out.

For the shared error schema and retry guidance, see Error handling.