---
title: "Retrieve Schema for a Collection"
method: GET
path: "/v1/ogcapi/enrich/collections/{collectionId}/schema"
tags: ["Spatial Features API"]
---

# Retrieve Schema for a Collection

`GET /v1/ogcapi/enrich/collections/{collectionId}/schema`

## Request

- Base URL: `https://api.cloud.precisely.com`
- URL: `https://api.cloud.precisely.com/v1/ogcapi/enrich/collections/{collectionId}/schema`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

This resource provides the schema for a specified feature collection. The schema defines the structure of the collection and includes details such as field names, data types, formats, and descriptions.

The **collection id** is a unique identifier used to reference a specific dataset. When you provide a collection id, the response includes:

- **Field Names:** Names of each attribute in the collection.
- **Data Types & Formats:** The expected data type (e.g., string, integer, double) and format for each field.
- **Descriptions:** Explanatory details for each attribute to clarify its purpose.
- **Geospatial Data Types:** Specific spatial types for any geospatial attributes, along with the default coordinate reference system.

This information is essential for validating client queries and constructing dynamic interfaces.

## Path parameters

- `collectionId` string, required

## Headers

- `X-Request-Id` string

## Response `200`

Successful retrieval of collection schema

- DescribeCollectionResponse
  - `$schema` string
  - `$id` string
  - `type` string
  - `title` string
  - `description` string
  - `properties` object

## Other responses

- `400`: Invalid request
- `401`: Unauthorized access
- `404`: Collection not found
- `500`: Internal server error

---

[API](https://skmtc.dev/precisely/apis/spatial-features-api.md) · [All operations](https://skmtc.dev/precisely/apis/spatial-features-api/llms.txt) · [OpenAPI document](https://skmtc.dev/precisely/apis/spatial-features-api/revisions/3b1b54f31ce1?raw)
