---
title: "Expose the endpoint to consume the data of the layer directly"
method: GET
path: "/layers/{layerId}/endpoint"
tags: ["stream"]
---

# Expose the endpoint to consume the data of the layer directly

`GET /layers/{layerId}/endpoint`

Returns a list of Kafka Broker URL's, client ID (required to enforce quotas), and Group ID prefix. Type is set to a consumer.

## Path parameters

- `layerId` string, required

## Query parameters

- `internal` boolean

## Response `200`

OK

- StreamLayerEndpointResponse — Information to use to connect to the stream layer.
  - `kafkaProtocolVersion` string[], required
  - `topic` string, required — This field will be deprecated in next API version. Use topics field instead.
  - `topics` string[], required
  - `clientId` string, required
  - `consumerGroupPrefix` string, required — If present, this should be used as the prefix of `group.id` [Kafka Consumer properties](https://kafka.apache.org/11/documentation.html#newconsumerconfigs).
  - `bootstrapServers` BootstrapServer[], required
    - `hostname` string, uri, required
    - `port` integer, required
  - `bootstrapServersInternal` BootstrapServer[]
    - `hostname` string, uri, required
    - `port` integer, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized - the request didn't provide correct authentication details
- `403` — Forbidden - the specific account doesn't have correct privileges to perform the operation
- `404` — Not found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/here/apis/query-api-v1.md) · [All operations](https://skmtc.dev/here/apis/query-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/here/query-api-v1/revisions/30e5d2645407/schema)
