---
type: api
title: Get constructor
description: Retrieves a constructor by id.
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/cloud-enterprise/operation/operation-get-constructor
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/cloud-enterprise/operation/operation-get-constructor
products:
  - Elastic Cloud Enterprise
---

# Get constructor

Authentication: required

## Paths

- `GET` `/platform/infrastructure/constructors/{constructor_id}`

#### Path parameters

- `constructor_id` (string) — required
  Identifier for the constructor

## Description

Retrieves a constructor by id.

## Responses

#### `200`

The information for the constructor specified by {constructor_id}.

`application/json`

- `status` (object)
  The health status of the constructor.
  - `connected` (boolean)
    Whether the constructor is connected
  - `maintenance_mode` (boolean)
    Whether the constructor is in maintenance mode
- `constructor_id` (string)
  Identifier for this constructor
#### `404`

The constructor specified by {constructor_id} cannot be found. (code: `constructors.constructor_not_found`)

`application/json`

- `errors` (object[])
  A list of errors that occurred in the failing request
  - `code` (string)
    A structured code representing the error type that occurred
  - `message` (string)
    A human readable message describing the error that occurred
  - `fields` (string[])
    If the error can be tied to a specific field or fields in the user request, this lists those fields
##### Response headers

- `x-cloud-error-codes` (enum)
  The error codes associated with the response

## Code examples

#### curl

```curl
curl -X GET "${API_URL}/platform/infrastructure/constructors/${CONSTRUCTOR_ID}" \
  -u "${USERNAME}:${PASSWORD}"
```

## Response examples

#### 200

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "status": {
    "connected": false,
    "maintenance_mode": false
  },
  "constructor_id": "string"
}
```

#### 404

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "errors": [
    {
      "code": "string",
      "message": "string",
      "fields": [
        "string"
      ]
    }
  ]
}
```

