Get Capabilities
const url = 'https://example.com/capabilities/';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/capabilities/Describe what this server offers, for a client’s first call.
Anonymous callers get the server, sign-in, basemap, workflow and rate-limit
facts. A caller with credentials also gets upload and me.
Authorizations
Section titled “ Authorizations ”Responses
Section titled “ Responses ”Successful Response
object
object
Running GeoLens version.
Edition the server runs.
Version of the publish contract the server speaks.
object
Whether username and password sign-in is on.
Sign-in methods on offer: password plus each enabled provider type.
object
Largest accepted upload, in bytes.
Extensions a publish manifest can carry, a subset of the upload allowlist.
Whether direct-to-S3 uploads are enabled.
Enabled basemaps whose provider key, if any, is configured.
object
Basemap identifier to use in a map document.
Display name.
Public feature flags readable by any authenticated user.
object
Dataset workflow statuses, from first to last.
object
Requests per second per client IP.
Login attempts per minute.
object
Signed-in account.
Capabilities the account holds.
Example
{ "flags": { "enable_dataset_editing": false, "require_metadata_for_publish": false, "restrict_public_visibility": false }}Unauthenticated — a credential was supplied and could not be resolved (expired, revoked, or malformed). Sending no credential at all is not an error on these operations; they answer anonymously with the public subset.
Too many requests — retry after the advertised interval
Headers
Section titled “ Headers ”Seconds until the request may be retried
Internal server error
Service unavailable — the database could not serve the request