Skip to content
getgeolens.com

Stac Connect

POST
/services/stac/connect
curl --request POST \
--url https://example.com/api/services/stac/connect \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "url": "example" }'

Connect to a STAC API and validate the endpoint.

Media type application/json
StacConnectRequest
object
url
required
Url

STAC API root URL to connect to.

string
>= 1 characters <= 2048 characters
Example generated
{
"url": "example"
}

Successful Response

Media type application/json
StacConnectResponse
object
url
required
Url

Normalized STAC API URL.

string
catalog_id
required
Catalog Id

Catalog identifier from the landing page.

string
title
required
Title

Catalog title.

string
description
required
Description

Catalog description.

string
stac_version
required
Stac Version

STAC specification version.

string
Example generated
{
"url": "example",
"catalog_id": "example",
"title": "example",
"description": "example",
"stac_version": "example"
}

Bad request — invalid payload

Unauthorized — missing or invalid credentials

Forbidden — caller lacks write access

Not found

Conflict — resource state prevents the operation

Validation error

Internal server error