Authentication¶
The authentication with the API is done via GitLab Access Token.
You must set the header X-Gitlab-Token
for your requests.
Examples:
- Python
requests
import requests
requests.get(
"https://sharinghub.example.com/api/stac/collections/ai-model/items",
headers={"X-Gitlab-Token": "xxxxxxxx"},
)
- STAC client
pystac-client