# Get connection status

`provider_connections.get`

Check your Portal's REST API, MCP, and webhook connections and their 24-hour health counts. Verify an MCP connection with a successful read through your signed-in client. Manage API keys and webhook destinations in Settings > Connections.

[Connections guide](https://docs.levr.ai/mcp/resources/provider_connections.md)

Availability depends on live discovery and your access to the record. Do not infer MCP calls from REST paths.

Operation: read. Required OAuth scopes: mcp.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "provider_slug": {
      "description": "Provider slug returned by providers.list; reuse a known value. Named slugs are valid.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "provider_slug"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "oneOf": [
    {
      "not": {
        "required": [
          "error"
        ]
      },
      "properties": {
        "ok": {
          "const": true
        }
      },
      "required": [
        "data"
      ]
    },
    {
      "not": {
        "required": [
          "data"
        ]
      },
      "properties": {
        "ok": {
          "const": false
        }
      },
      "required": [
        "error"
      ]
    }
  ],
  "properties": {
    "data": {
      "additionalProperties": false,
      "properties": {
        "external_api": {
          "additionalProperties": false,
          "properties": {
            "active_key_count": {
              "type": "integer"
            },
            "base_url": {
              "type": "string"
            },
            "documentation_url": {
              "type": "string"
            },
            "requests_24h": {
              "additionalProperties": false,
              "properties": {
                "errors": {
                  "type": "integer"
                },
                "rate_limited": {
                  "type": "integer"
                },
                "total": {
                  "type": "integer"
                }
              },
              "required": [
                "total",
                "errors",
                "rate_limited"
              ],
              "type": "object"
            }
          },
          "required": [
            "base_url",
            "documentation_url",
            "active_key_count",
            "requests_24h"
          ],
          "type": "object"
        },
        "mcp": {
          "additionalProperties": false,
          "properties": {
            "documentation_url": {
              "type": "string"
            },
            "server_url": {
              "type": "string"
            }
          },
          "required": [
            "server_url",
            "documentation_url"
          ],
          "type": "object"
        },
        "provider_slug": {
          "description": "Provider slug returned by providers.list; reuse a known value. Named slugs are valid.",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        "webhooks": {
          "additionalProperties": false,
          "properties": {
            "active_destination_count": {
              "type": "integer"
            },
            "deliveries_24h": {
              "additionalProperties": false,
              "properties": {
                "failed": {
                  "type": "integer"
                },
                "succeeded": {
                  "type": "integer"
                },
                "total": {
                  "type": "integer"
                }
              },
              "required": [
                "total",
                "succeeded",
                "failed"
              ],
              "type": "object"
            }
          },
          "required": [
            "active_destination_count",
            "deliveries_24h"
          ],
          "type": "object"
        }
      },
      "required": [
        "provider_slug",
        "external_api",
        "mcp",
        "webhooks"
      ],
      "type": "object"
    },
    "error": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "details": {
          "additionalProperties": true,
          "description": "Optional bounded, agent-safe correction or recovery facts.",
          "type": "object"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    },
    "meta": {
      "additionalProperties": false,
      "properties": {
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "request_id"
      ],
      "type": "object"
    },
    "ok": {
      "description": "Whether the tool completed successfully.",
      "type": "boolean"
    }
  },
  "required": [
    "ok",
    "meta"
  ],
  "type": "object"
}
```
