---
title: "Returns the endpoint by id"
method: GET
path: "/api/v1/environments/endpoints/{endpointId}"
tags: ["Environment"]
---

# Returns the endpoint by id

`GET /api/v1/environments/endpoints/{endpointId}`

## Path parameters

- `endpointId` string, required

## Response `200`

Collection of environments.

- ResponseEntityEndpointView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` PublishingEndPoint
    - `id` string
    - `groupId` string
    - `serverName` object
      - `empty` boolean
      - `length` integer
    - `address` string
    - `port` string
    - `protocol` string
    - `enabled` boolean
    - `authKey` object
      - `empty` boolean
      - `length` integer
    - `sending` boolean
    - `tokenExpired` boolean
    - `tokenInvalid` boolean
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

---

[API](https://skmtc.dev/jostens/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/jostens/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jostens/dotcms-rest-api/revisions/a088fe9f515c/schema)
