Find a batch of places
QUERY/placesor POST
The body is a JSON array of items, at most the server’s item limit (1000
by default). Each takes the parameters GET /places takes, q or ids,
plus an optional id echoed in its result. The request’s own
query-string parameters apply to every item, and an item’s own fields
override them: ?country=NL scopes every item to the Netherlands.
QUERY takes the same body and answers the same: POST is for clients
that cannot send QUERY.
Each result’s response is exactly what GET returns for its item, and
its error the Problem GET would return. Results are in input order,
one per item, and a bad item never fails the batch. An item’s ids is
held to the same limit as GET’s, the server’s item limit, on its own.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”q: optionalstring
Name of the place. Applies to every item; an item’s own field overrides it.
ids: optionalstring
Comma-separated stable ids. Applies to every item; an item’s own field overrides it.
limit: optionalinteger
Maximum number of results. Applies to every item; an item’s own field overrides it.
country: optionalstring
Comma-separated ISO 3166-1 alpha-2 codes. Applies to every item; an item’s own field overrides it.
Example
NLfocus: optionalstring
Point to prefer results near, as lon,lat. Applies to every item; an item’s own field overrides it.
bbox: optionalstring
Return only results inside this box, as min_lon,min_lat,max_lon,max_lat. Applies to every item; an item’s own field overrides it.
Request Bodyrequired
Section titled “Request Body required”application/json
One item of a /places batch: GET /places’ parameters and an id.
Every field is optional here because the request’s query string may give
it for all items. q or ids must come from one or the other.
Properties
bbox: optionalstring
min_lon,min_lat,max_lon,max_lat.
Example
4.73,52.28,5.07,52.43country: optionalstring
ISO 3166-1 alpha-2 codes, comma-separated.
Example
NLfocus: optionalstring
Point to prefer results near, as lon,lat.
Example
4.88,52.36id: optionalstring
Echoed in this item’s result, to match it up.
Example
row-1ids: optionalstring
Comma-separated stable ids, at most the server’s batch item limit (1000 by default), checked for this item alone.
Example
osm:node:1383955044limit: optionalinteger
Maximum number of results. 0, the default, lets the server choose.
q: optionalstring
Name of the place, with where it is when known. Give q or ids,
not both; one sent empty counts as given.
Example
Rijksmuseum AmsterdamResponses
Section titled “Responses”One result per item, in input order.
application/json
A forward batch’s answer: one result per item, in input order.
Mirrors the body http::batch renders, as [Problem] mirrors its own;
the contract tests hold the two together.
results:Array<object>
One item’s result: response when it succeeded, error when it failed.
Properties
error: optionalobject
Problem
Exactly the Problem GET would return for this item.
Properties
detail: optionalstring
Human-readable explanation. Absent on 500 errors.
error_code:string
Stable error code. Branch on this.
invalid_params: optionalArray<object>
Rejected parameters. Present only when the error is about parameters.
A rejected parameter.
Properties
name:string
Parameter name.
reason:string
Why it was rejected.
request_id: optionalstring
ID the request is logged under. Include it in bug reports.
status:integerformat: int32
title:string
Name of the HTTP status. Do not branch on it.
type:string
URI identifying the problem type. Currently always about:blank.
id: optionalstring
The item’s id, when it sent one.
response: optionalobject
Exactly what GET returns for this item.
Properties
features:Array<object>
One forward geocoding result.
Properties
geometry:object
GeoJSON Point. coordinates is [lon, lat].
Properties
coordinates:Array<number>
type:string
properties:object
Properties of a forward geocoding result.
Properties
access: optionalArray<object>
The points to route to when going to the result, which are the
entrances OpenStreetMap maps for it. They are the nodes tagged
entrance on the outline of the building or site an address or a
POI is drawn with, or the result’s own point when its node is so
tagged. Absent when OpenStreetMap maps none, and on every other
layer.
A point to route to when going to a result.
Properties
kind:string
What kind of way in it is, as the value of the OpenStreetMap
entrance tag that maps it, such as main, yes, service or
staircase.
lat:numberformat: double
lon:numberformat: double
accuracy:string
How precisely the coordinates locate the result, most precise first.
rooftop: the address or POI itself.interpolated: a house number placed between known neighbours.street: a point on the street.centroid: the centre of a mapped area.approximate: a point standing for something larger, such as a town or postcode.
address: optionalobject
Address parts stated by the source record.
Properties
areas: optionalArray<string>
Areas below the locality, outermost first (OSM addr:suburb,
addr:quarter, addr:neighbourhood).
country: optionalstring
housenumber: optionalstring
locality: optionalstring
place: optionalstring
Named place the house number belongs to where there is no street
(OSM addr:place).
postcode: optionalstring
region: optionalstring
street: optionalstring
street_parts: optionalobject
street split into its parts as written. Absent when the street has
no type or direction to split off, such as Broadway.
Properties
name:string
The street’s own name, without its type and directions.
prefix: optionalstring
Direction before the name.
suffix: optionalstring
Direction after the name.
type: optionalstring
Street type, such as Street or Ave.
unit: optionalstring
address_lines: optionalArray<string>
The address as the lines of a postal address, top to bottom, the way
the result’s country writes one. The country’s address template
says which parts go on which line and in what order. Each part is
what address states or, where it states none, the area of
context, and a part og has nothing for is left out. A region is
its ISO 3166-2 short code where the template asks for one. The last
line names the country as context.country does, so lang names it
too. Present on an address with its house number, and on a POI that
states its street. Absent on every other layer, and on a result in
no country og has a template for.
bbox: optionalArray<number>
The box around a result that covers more than a point, as [west, south, east, north] in degrees. It holds an area’s outline, a
street’s line, or the outline a POI is drawn with. It is the
narrowest box, so for a result that crosses the antimeridian west
is greater than east, and only then. Absent on a result that is
only a point.
brand: optionalobject
The chain a place belongs to, when its name may not say: “Tankstation Zanoli” is an Esso. Present only on places.
Properties
name:string
wikidata: optionalstring
Its Wikidata item, such as Q867662, a stable id of the chain.
building: optionalobject
The building an address’s source draws it as, and its name when it has one. Absent on an address mapped as a point on no building, and on every other result.
Properties
name: optionalstring
Its name, as its name tag writes it.
category: optionalstring
POI category, such as amenity:cafe. Present only on POIs.
code: optionalstring
ISO code of a result that is an area: on a country its ISO 3166-1
alpha-2 code, on an area below it its ISO 3166-2 code, as
context gives them. Absent on any other result, and on an area
the source data gives no code.
contact: optionalobject
How to reach a place: its phone number, website and email, each as its source writes it. og rewrites none and does not check that one still answers. Present only on POIs that state at least one.
Properties
email: optionalstring
phone: optionalstring
website: optionalstring
context: optionalobject
Administrative areas containing the result.
Properties
country: optionalobject
Properties
code: optionalstring
ISO code of the area. On country its ISO 3166-1 alpha-2 code, such
as NZ. On an area below it, its ISO 3166-2 code, such as CA-ON,
when the source data gives one.
id:string
Stable ID from the source data, as in a result’s id.
name:string
translations: optionalRecord<string, string>
The area’s name in each further language lang asks for, by the
code as asked. Present only when lang names more than one language
and the area has a name in at least one of the others.
district: optionalobject
Properties
code: optionalstring
ISO code of the area. On country its ISO 3166-1 alpha-2 code, such
as NZ. On an area below it, its ISO 3166-2 code, such as CA-ON,
when the source data gives one.
id:string
Stable ID from the source data, as in a result’s id.
name:string
translations: optionalRecord<string, string>
The area’s name in each further language lang asks for, by the
code as asked. Present only when lang names more than one language
and the area has a name in at least one of the others.
locality: optionalobject
Properties
code: optionalstring
ISO code of the area. On country its ISO 3166-1 alpha-2 code, such
as NZ. On an area below it, its ISO 3166-2 code, such as CA-ON,
when the source data gives one.
id:string
Stable ID from the source data, as in a result’s id.
name:string
translations: optionalRecord<string, string>
The area’s name in each further language lang asks for, by the
code as asked. Present only when lang names more than one language
and the area has a name in at least one of the others.
neighbourhood: optionalobject
Properties
code: optionalstring
ISO code of the area. On country its ISO 3166-1 alpha-2 code, such
as NZ. On an area below it, its ISO 3166-2 code, such as CA-ON,
when the source data gives one.
id:string
Stable ID from the source data, as in a result’s id.
name:string
translations: optionalRecord<string, string>
The area’s name in each further language lang asks for, by the
code as asked. Present only when lang names more than one language
and the area has a name in at least one of the others.
place: optionalobject
Named area outside the administrative levels, usually an island.
Properties
code: optionalstring
ISO code of the area. On country its ISO 3166-1 alpha-2 code, such
as NZ. On an area below it, its ISO 3166-2 code, such as CA-ON,
when the source data gives one.
id:string
Stable ID from the source data, as in a result’s id.
name:string
translations: optionalRecord<string, string>
The area’s name in each further language lang asks for, by the
code as asked. Present only when lang names more than one language
and the area has a name in at least one of the others.
region: optionalobject
Properties
code: optionalstring
ISO code of the area. On country its ISO 3166-1 alpha-2 code, such
as NZ. On an area below it, its ISO 3166-2 code, such as CA-ON,
when the source data gives one.
id:string
Stable ID from the source data, as in a result’s id.
name:string
translations: optionalRecord<string, string>
The area’s name in each further language lang asks for, by the
code as asked. Present only when lang names more than one language
and the area has a name in at least one of the others.
subdistrict: optionalobject
Properties
code: optionalstring
ISO code of the area. On country its ISO 3166-1 alpha-2 code, such
as NZ. On an area below it, its ISO 3166-2 code, such as CA-ON,
when the source data gives one.
id:string
Stable ID from the source data, as in a result’s id.
name:string
translations: optionalRecord<string, string>
The area’s name in each further language lang asks for, by the
code as asked. Present only when lang names more than one language
and the area has a name in at least one of the others.
sublocality: optionalobject
Properties
code: optionalstring
ISO code of the area. On country its ISO 3166-1 alpha-2 code, such
as NZ. On an area below it, its ISO 3166-2 code, such as CA-ON,
when the source data gives one.
id:string
Stable ID from the source data, as in a result’s id.
name:string
translations: optionalRecord<string, string>
The area’s name in each further language lang asks for, by the
code as asked. Present only when lang names more than one language
and the area has a name in at least one of the others.
subregion: optionalobject
Properties
code: optionalstring
ISO code of the area. On country its ISO 3166-1 alpha-2 code, such
as NZ. On an area below it, its ISO 3166-2 code, such as CA-ON,
when the source data gives one.
id:string
Stable ID from the source data, as in a result’s id.
name:string
translations: optionalRecord<string, string>
The area’s name in each further language lang asks for, by the
code as asked. Present only when lang names more than one language
and the area has a name in at least one of the others.
cuisine: optionalArray<string>
The kinds of food a place serves, as OpenStreetMap’s cuisine tag
lists them, in lower case and in order. Absent on a result that
states none.
id:string
Stable ID from the source data, such as osm:node:123. Store it to
find the record again: it outlives a Pack rebuild.
label:string
One-line display label: name followed by its location. With
lang, each part that names the result or one of its areas is that
name in the language asked, as name and context are.
layer:string
Kind of result: an address, a street, a POI, or an area such as a locality or region.
name:string
House number and street for an address (12 King Street West), or
the name of a street, area or POI.
opening_hours: optionalstring
When a place is open, in OpenStreetMap’s opening_hours syntax as
its source writes it. og does not parse it, so it never says whether
the place is open now. Present only on POIs that state it.
road_class: optionalstring
The class of road a street is, the most important of its ways, such
as motorway or residential. Present only on streets.
source:object
The data set a result comes from.
Properties
dataset:string
osm, or an imported data set such as openaddresses:nz/countrywide.
street_postcode: optionalstring
For an address that states no postcode, the one postcode the other
addresses of its street state, when they all state the same one. It
is where the address most likely lies, and address.postcode stays
what the source states. Absent on every other result.
timezone: optionalstring
The IANA name of the timezone the result lies in, such as
Europe/Monaco. Its offset from UTC is the reader’s to compute,
as it changes with the date. An area’s is the zone it lies wholly in,
and any other result’s is the zone at its point. Absent on an area
that reaches into two zones, where the timezone boundaries name no
zone or two, and on every result of a Pack built without them.
translations: optionalRecord<string, string>
The result’s name in each further language lang asks for, by the
code as asked. Present only when lang names more than one language
and the result has a name in at least one of the others.
confidence: optionalnumberformat: float
Probability, from 0 to 1, that this is the address the query asks
for. Of results at 0.8, about 8 in 10 are correct. Present only when
the Pack is calibrated and the query states a house number, the
queries calibration measures. 0 on a fallback result.
distance_m: optionalnumberformat: double
Distance from the request’s focus point in meters. Present only
when the request gives focus.
fallback: optionalboolean
true when no match was found and the result is the most precise
area the query names instead: its postcode, a town or other area,
its region or its country. layer says which. Absent otherwise.
highlights: optionalArray<object>
The parts of label the typed text matched, in order, none
overlapping. Present on /autocomplete results, the only ones found
by text still being typed. A place suggested for the kind the text
names is marked where the typed words lie in its label too. Absent
when no typed word can be placed in the label.
A range of a result’s label that the typed text matched.
start and end count Unicode scalar values from the start of the
label, end exclusive. They are not bytes and not UTF-16 code units, so
a client converts them to the offsets its strings use.
Search matches typed words against the record, not against the label,
so each typed word is placed by finding it again in the label, cut into
words and folded as the index folds text. elysee marks Élysée. A
word still being typed marks only the letters typed so far, and a word
matched through a typo marks the whole label word.
Properties
end:integer
start:integer
match: optionalobject
How each address part the query states matched the result. Present
on a /geocode result when the query states a part. A place found
because the whole query is one of its names states the part it is.
Absent on /places and /autocomplete. A place is sought by its
name and a suggestion by what is typed so far, which no address
reading judges.
Properties
country: optionalstring
How one stated address part matched a result, best first.
matched: the result has the value the query states, after normalisation such as case, accents and abbreviations.partial: the result’s value differs and was accepted as the same.unmatched: the result does not have the part, has another value, or nothing says it has the stated one.
housenumber: optionalstring
How one stated address part matched a result, best first.
matched: the result has the value the query states, after normalisation such as case, accents and abbreviations.partial: the result’s value differs and was accepted as the same.unmatched: the result does not have the part, has another value, or nothing says it has the stated one.
locality: optionalstring
How one stated address part matched a result, best first.
matched: the result has the value the query states, after normalisation such as case, accents and abbreviations.partial: the result’s value differs and was accepted as the same.unmatched: the result does not have the part, has another value, or nothing says it has the stated one.
postcode: optionalstring
How one stated address part matched a result, best first.
matched: the result has the value the query states, after normalisation such as case, accents and abbreviations.partial: the result’s value differs and was accepted as the same.unmatched: the result does not have the part, has another value, or nothing says it has the stated one.
region: optionalstring
How one stated address part matched a result, best first.
matched: the result has the value the query states, after normalisation such as case, accents and abbreviations.partial: the result’s value differs and was accepted as the same.unmatched: the result does not have the part, has another value, or nothing says it has the stated one.
street: optionalstring
How one stated address part matched a result, best first.
matched: the result has the value the query states, after normalisation such as case, accents and abbreviations.partial: the result’s value differs and was accepted as the same.unmatched: the result does not have the part, has another value, or nothing says it has the stated one.
unit: optionalstring
How one stated address part matched a result, best first.
matched: the result has the value the query states, after normalisation such as case, accents and abbreviations.partial: the result’s value differs and was accepted as the same.unmatched: the result does not have the part, has another value, or nothing says it has the stated one.
score:numberformat: float
Text relevance. Higher is better. Comparable only within one
response: use confidence to judge a single result.
type:string
geocoding:object
The query, API version and the credits of the data sets the answer comes from.
Properties
attribution:Array<object>
A data set an answer comes from and how its licence asks it to be credited. OpenStreetMap is always first: every answer’s areas and labels come from it.
Properties
licence: optionalstring
The licence’s name, such as ODbL 1.0 or CC BY 4.0. Absent when
the data set’s source states none.
text:string
Whom to credit, such as © OpenStreetMap contributors, or the data
set’s name when its licence asks for no credit or is not known.
url: optionalstring
The licence’s terms.
query:string
Query as received, trimmed, with each run of whitespace collapsed to one space.
version:string
API version. Changes only when a field is removed or changes meaning. New optional fields keep the version.
type:string
status:integerformat: int32
The status GET would have answered this item with.
summary:object
How a batch went.
Properties
failed:integer
Items answered with an error.
succeeded:integer
Items answered with a 200.
total:integer
Example
{
"results": [
{
"error": {
"detail": "q must not be empty",
"error_code": "invalid_query",
"invalid_params": [
{
"name": "limit",
"reason": "must be at most 50"
}
],
"request_id": "01JA7Q2K3M4N5P6Q7R8S9T0V1W",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
},
"response": {
"features": [
{
"geometry": {
"type": "Point"
},
"properties": {
"access": [
{
"kind": "main",
"lat": 43.7396,
"lon": 7.4263
}
],
"accuracy": "rooftop",
"address_lines": [
"10 King Street West",
"Toronto, ON M5H 1A1",
"Canada"
],
"bbox": [
7.4090279,
43.7247599,
7.4398704,
43.7519311
],
"brand": {
"name": "Esso",
"wikidata": "Q867662"
},
"building": {
"name": "Google Building 41"
},
"code": "MC",
"contact": {
"email": "[email protected]",
"phone": "+1 416-555-0111",
"website": "https://queenbakery.example/"
},
"context": {
"country": {
"code": "NZ",
"translations": {
"de": "Genf"
}
},
"district": {
"code": "NZ",
"translations": {
"de": "Genf"
}
},
"locality": {
"code": "NZ",
"translations": {
"de": "Genf"
}
},
"neighbourhood": {
"code": "NZ",
"translations": {
"de": "Genf"
}
},
"place": {
"code": "NZ",
"translations": {
"de": "Genf"
}
},
"region": {
"code": "NZ",
"translations": {
"de": "Genf"
}
},
"subdistrict": {
"code": "NZ",
"translations": {
"de": "Genf"
}
},
"sublocality": {
"code": "NZ",
"translations": {
"de": "Genf"
}
},
"subregion": {
"code": "NZ",
"translations": {
"de": "Genf"
}
}
},
"cuisine": [
"pizza",
"italian"
],
"layer": "address",
"opening_hours": "Mo-Fr 08:00-18:00; Sa 09:00-13:00",
"road_class": "motorway",
"source": {
"dataset": "osm"
},
"street_postcode": "94124",
"timezone": "Europe/Monaco",
"translations": {
"de": "Genf"
},
"match": {
"country": "matched",
"housenumber": "matched",
"locality": "matched",
"postcode": "matched",
"region": "matched",
"street": "matched",
"unit": "matched"
}
},
"type": "Feature"
}
],
"geocoding": {
"attribution": [
{
"text": "© OpenStreetMap contributors"
}
],
"version": "1"
},
"type": "FeatureCollection"
},
"status": 200
}
]
}Headers
Section titled “Headers”Accept-Query: optionalstring
The media type a QUERY body is read as.
Example
application/jsonAllow: optionalstring
The methods this route accepts.
Example
GET, QUERY, POSTX-Request-Id: optionalstring
ID the request is logged under: the request’s own X-Request-Id when it sent one. Include it in bug reports.
The body is not a JSON array of objects, or the query string did not parse.
application/problem+json
Problem
Error response, an RFC 9457 problem document.
detail: optionalstring
Human-readable explanation. Absent on 500 errors.
error_code:string
Stable error code. Branch on this.
invalid_params: optionalArray<object>
Rejected parameters. Present only when the error is about parameters.
A rejected parameter.
Properties
name:string
Parameter name.
reason:string
Why it was rejected.
request_id: optionalstring
ID the request is logged under. Include it in bug reports.
status:integerformat: int32
title:string
Name of the HTTP status. Do not branch on it.
type:string
URI identifying the problem type. Currently always about:blank.
Example
{
"detail": "q must not be empty",
"error_code": "invalid_query",
"invalid_params": [
{
"name": "limit",
"reason": "must be at most 50"
}
],
"request_id": "01JA7Q2K3M4N5P6Q7R8S9T0V1W",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}Headers
Section titled “Headers”Accept-Query: optionalstring
The media type a QUERY body is read as.
Example
application/jsonAllow: optionalstring
The methods this route accepts.
Example
GET, QUERY, POSTX-Request-Id: optionalstring
ID the request is logged under: the request’s own X-Request-Id when it sent one. Include it in bug reports.
Method not allowed. The route accepts GET, and QUERY or POST for a batch.
application/problem+json
Problem
Error response, an RFC 9457 problem document.
detail: optionalstring
Human-readable explanation. Absent on 500 errors.
error_code:string
Stable error code. Branch on this.
invalid_params: optionalArray<object>
Rejected parameters. Present only when the error is about parameters.
A rejected parameter.
Properties
name:string
Parameter name.
reason:string
Why it was rejected.
request_id: optionalstring
ID the request is logged under. Include it in bug reports.
status:integerformat: int32
title:string
Name of the HTTP status. Do not branch on it.
type:string
URI identifying the problem type. Currently always about:blank.
Example
{
"detail": "q must not be empty",
"error_code": "invalid_query",
"invalid_params": [
{
"name": "limit",
"reason": "must be at most 50"
}
],
"request_id": "01JA7Q2K3M4N5P6Q7R8S9T0V1W",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}Headers
Section titled “Headers”Accept-Query: optionalstring
The media type a QUERY body is read as.
Example
application/jsonAllow: optionalstring
The methods this route accepts.
Example
GET, QUERY, POSTX-Request-Id: optionalstring
ID the request is logged under: the request’s own X-Request-Id when it sent one. Include it in bug reports.
More items than the server’s limit, or a body over its cap.
application/problem+json
Problem
Error response, an RFC 9457 problem document.
detail: optionalstring
Human-readable explanation. Absent on 500 errors.
error_code:string
Stable error code. Branch on this.
invalid_params: optionalArray<object>
Rejected parameters. Present only when the error is about parameters.
A rejected parameter.
Properties
name:string
Parameter name.
reason:string
Why it was rejected.
request_id: optionalstring
ID the request is logged under. Include it in bug reports.
status:integerformat: int32
title:string
Name of the HTTP status. Do not branch on it.
type:string
URI identifying the problem type. Currently always about:blank.
Example
{
"detail": "q must not be empty",
"error_code": "invalid_query",
"invalid_params": [
{
"name": "limit",
"reason": "must be at most 50"
}
],
"request_id": "01JA7Q2K3M4N5P6Q7R8S9T0V1W",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}Headers
Section titled “Headers”Accept-Query: optionalstring
The media type a QUERY body is read as.
Example
application/jsonAllow: optionalstring
The methods this route accepts.
Example
GET, QUERY, POSTX-Request-Id: optionalstring
ID the request is logged under: the request’s own X-Request-Id when it sent one. Include it in bug reports.
The body was not sent as application/json.
application/problem+json
Problem
Error response, an RFC 9457 problem document.
detail: optionalstring
Human-readable explanation. Absent on 500 errors.
error_code:string
Stable error code. Branch on this.
invalid_params: optionalArray<object>
Rejected parameters. Present only when the error is about parameters.
A rejected parameter.
Properties
name:string
Parameter name.
reason:string
Why it was rejected.
request_id: optionalstring
ID the request is logged under. Include it in bug reports.
status:integerformat: int32
title:string
Name of the HTTP status. Do not branch on it.
type:string
URI identifying the problem type. Currently always about:blank.
Example
{
"detail": "q must not be empty",
"error_code": "invalid_query",
"invalid_params": [
{
"name": "limit",
"reason": "must be at most 50"
}
],
"request_id": "01JA7Q2K3M4N5P6Q7R8S9T0V1W",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}Headers
Section titled “Headers”Accept-Query: optionalstring
The media type a QUERY body is read as.
Example
application/jsonAllow: optionalstring
The methods this route accepts.
Example
GET, QUERY, POSTX-Request-Id: optionalstring
ID the request is logged under: the request’s own X-Request-Id when it sent one. Include it in bug reports.
The batch failed inside the server.
application/problem+json
Problem
Error response, an RFC 9457 problem document.
detail: optionalstring
Human-readable explanation. Absent on 500 errors.
error_code:string
Stable error code. Branch on this.
invalid_params: optionalArray<object>
Rejected parameters. Present only when the error is about parameters.
A rejected parameter.
Properties
name:string
Parameter name.
reason:string
Why it was rejected.
request_id: optionalstring
ID the request is logged under. Include it in bug reports.
status:integerformat: int32
title:string
Name of the HTTP status. Do not branch on it.
type:string
URI identifying the problem type. Currently always about:blank.
Example
{
"detail": "q must not be empty",
"error_code": "invalid_query",
"invalid_params": [
{
"name": "limit",
"reason": "must be at most 50"
}
],
"request_id": "01JA7Q2K3M4N5P6Q7R8S9T0V1W",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}Headers
Section titled “Headers”Accept-Query: optionalstring
The media type a QUERY body is read as.
Example
application/jsonAllow: optionalstring
The methods this route accepts.
Example
GET, QUERY, POSTX-Request-Id: optionalstring
ID the request is logged under: the request’s own X-Request-Id when it sent one. Include it in bug reports.
Every slot batches and jobs share is taken. Retry after the Retry-After header’s seconds.
application/problem+json
Problem
Error response, an RFC 9457 problem document.
detail: optionalstring
Human-readable explanation. Absent on 500 errors.
error_code:string
Stable error code. Branch on this.
invalid_params: optionalArray<object>
Rejected parameters. Present only when the error is about parameters.
A rejected parameter.
Properties
name:string
Parameter name.
reason:string
Why it was rejected.
request_id: optionalstring
ID the request is logged under. Include it in bug reports.
status:integerformat: int32
title:string
Name of the HTTP status. Do not branch on it.
type:string
URI identifying the problem type. Currently always about:blank.
Example
{
"detail": "q must not be empty",
"error_code": "invalid_query",
"invalid_params": [
{
"name": "limit",
"reason": "must be at most 50"
}
],
"request_id": "01JA7Q2K3M4N5P6Q7R8S9T0V1W",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}Headers
Section titled “Headers”Accept-Query: optionalstring
The media type a QUERY body is read as.
Example
application/jsonAllow: optionalstring
The methods this route accepts.
Example
GET, QUERY, POSTX-Request-Id: optionalstring
ID the request is logged under: the request’s own X-Request-Id when it sent one. Include it in bug reports.

