Stac Collections
POST
/services/stac/collections
const url = 'https://example.com/services/stac/collections';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"url":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/services/stac/collections \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "url": "example" }'List collections from a connected STAC API.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
StacConnectRequest
object
url
required
Url
STAC API root URL to connect to.
string
Example generated
{ "url": "example"}Responses
Section titled “ Responses ”Successful Response
Media type application/json
StacCollectionsResponse
object
collections
required
Collections
Available collections.
Array<object>
StacCollectionSummaryobject
bbox
Any of:
Array<number>
null
description
required
Description
Collection description.
string
id
required
Id
Collection identifier.
string
keywords
Keywords
Collection keywords.
Array<string>
title
required
Title
Collection title.
string
url
required
Url
STAC API URL that was queried.
string
Example
{ "collections": [ { "keywords": [] } ]}Bad request — invalid payload
Media type application/problem+json
Unauthorized — missing or invalid credentials
Media type application/problem+json
Forbidden — caller lacks write access
Media type application/problem+json
Not found
Media type application/problem+json
Conflict — resource state prevents the operation
Media type application/problem+json
Validation error
Media type application/problem+json
Too many requests — retry after the advertised interval
Media type application/problem+json
Headers
Section titled “Headers ” Retry-After
integer
Seconds until the request may be retried
Internal server error
Media type application/problem+json
Bad gateway — an upstream provider failed
Media type application/problem+json
Service unavailable — the database could not serve the request
Media type application/problem+json