MCP Gateway
ApiUser connections

Get expiring connections

Return connections expiring within the specified time window, sorted by urgency. Connections are scoped to the authenticated user. Includes auto-refresh status to indicate whether user action is required.

GET
/api/v1/connections/expiring

Authorization

User API Key
AuthorizationBearer <token>

User API key (mgw_usr_live_* or mgw_usr_test_*)

In: header

Query Parameters

hours?integer

Get credentials expiring within this many hours (1-168)

Default24
Range1 <= value <= 168
access_token?|

Response Body

application/json

application/json

curl -X GET "https://loading/api/v1/connections/expiring"
{
  "items": [
    {
      "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9",
      "server_id": "820efca4-4a15-4ab7-82fc-9e76f6d61325",
      "server_name": "string",
      "provider_name": "string",
      "expires_at": "2019-08-24T14:15:22Z",
      "expires_in_seconds": 0,
      "expiration_status": "healthy",
      "auto_refresh_enabled": false,
      "requires_action": false
    }
  ],
  "total": 0,
  "action_required": 0
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}