---
type: api
title: List trust relationships
description: List trust relationships.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/v4/operation/operation-get-trust-relationships
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/v4/operation/operation-get-trust-relationships
products:
  - Elastic Cloud Enterprise
---

# List trust relationships

## Paths

- `GET` `/platform/configuration/trust-relationships`

- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/v4/authentication#basicauth)
- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/v4/authentication#apikey)

## Description

List trust relationships.

## Query String Parameters

- `include_certificate` (boolean · default: false)
  Whether to include the public CA certificates in the response.
- `filter` (enum  · default: all)
  Which trust relationships to return in the response. Defaults to `all`
  Values: `all`, `local`, `non-local`

## Responses

#### `200`

The list of trust relationships.

`application/json`

- `trust_relationships` ([] TrustRelationshipGetResponse)
  The trust relationships
  - `id` (string)
    The id of the trust relationship
  - `name` (string)
    The name of the trust relationship
  - `trust_by_default` (boolean)
    If this relationship is trusted by default by all deployments in the current environment.
  - `account_ids` ([] string)
    The ID of the accounts trusted by this relationship.
  - `public_ca_cert` (string)
    The public CA certificate of the environment to trust
  - `local` (boolean)
    If this is the trust relationship for the local environment
  - `installation_id` (string)
    The installation ID of the environment to trust
  - `last_modified` (string)
    The most recent time the trust relationship was changed (ISO format in UTC)
#### `401`

You are not authorized to perform this action.

`application/json`

- `errors` ([] BasicFailedReplyElement)
  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
## Code Examples

#### Console

```console
GET /platform/configuration/trust-relationships
```

#### curl

```curl
curl -X GET "/platform/configuration/trust-relationships"
```

