---
updatedAt: 2026-08-26T10:06:08.000Z
agentTools:
  projectIndex: https://docs.allegrow.co/llms.txt
---

# Get Connected Mailbox

Returns a single connected mailbox by its `id` (from the mailboxes list), including its day-by-day reputation history.

`currentReputation` is the most recent day's reputation in the window (the headline number on the in-app mailbox screen). `history` contains one point per day that has data; days without data are omitted. The window defaults to the last 90 days and can be narrowed with `startDate`/`endDate`.

A **404** means the id does not belong to an active connected mailbox in your workspace.


Returns a single connected mailbox by its `id`, including its day-by-day reputation history — the API equivalent of the in-app mailbox screen.

* Get the `id` from [List Connected Mailboxes](/reference/list-connected-mailboxes).
* `currentReputation` is the most recent day's value within the window; `history` has one point per day that has data, oldest first.
* The window defaults to the last 90 days; narrow it with `startDate`/`endDate` (both `YYYY-MM-DD`, inclusive).

A **404** means the id does not belong to an active connected mailbox in your workspace. Note this endpoint reports the *latest* value, while [List Connected Mailboxes](/reference/list-connected-mailboxes) reports a *range average* — the two intentionally mirror the in-app mailbox screen and leaderboard respectively, so they can differ for the same mailbox.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Allegrow Workspace API",
    "description": "The Allegrow Workspace API provides read-only, programmatic access to your workspace's connected mailboxes, sender reputation, sending domains, Safety Net mailboxes, and users — the same data shown in the Allegrow app, ready to plug into your own dashboards and BI tooling.\n",
    "version": "1.0.0",
    "contact": {
      "name": "Allegrow Support",
      "email": "support@allegrow.co"
    }
  },
  "servers": [
    {
      "url": "https://api.allegrow.co",
      "description": "Production API"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/v1/connected-mailboxes/{id}": {
      "get": {
        "summary": "Get Connected Mailbox",
        "description": "Returns a single connected mailbox by its `id` (from the mailboxes list), including its day-by-day reputation history.\n\n`currentReputation` is the most recent day's reputation in the window (the headline number on the in-app mailbox screen). `history` contains one point per day that has data; days without data are omitted. The window defaults to the last 90 days and can be narrowed with `startDate`/`endDate`.\n\nA **404** means the id does not belong to an active connected mailbox in your workspace.\n",
        "operationId": "getMailbox",
        "tags": [
          "Connected Mailboxes"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "The mailbox `id` from GET /v1/connected-mailboxes.",
            "example": "550e8400-e29b-41d4-a716-446655440000"
          },
          {
            "$ref": "#/components/parameters/StartDateParam"
          },
          {
            "$ref": "#/components/parameters/EndDateParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Mailbox detail with reputation history",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "connectedAt",
                    "connectionStatus",
                    "currentReputation",
                    "domain",
                    "email",
                    "endDate",
                    "history",
                    "id",
                    "owner",
                    "provider",
                    "startDate",
                    "statusUpdatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "example": "550e8400-e29b-41d4-a716-446655440000"
                    },
                    "endDate": {
                      "type": "string",
                      "format": "date",
                      "description": "Resolved end of the reporting window.",
                      "example": "2026-08-18"
                    },
                    "startDate": {
                      "type": "string",
                      "format": "date",
                      "description": "Resolved start of the reporting window.",
                      "example": "2026-05-21"
                    },
                    "connectedAt": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true,
                      "description": "When the mailbox was connected to Allegrow.",
                      "example": "2025-11-03T10:00:00Z"
                    },
                    "connectionStatus": {
                      "type": "string",
                      "nullable": true,
                      "description": "Current connection state. Common values are `connected`, `disconnected`, and `credentials_error`.",
                      "example": "connected"
                    },
                    "currentReputation": {
                      "type": "number",
                      "nullable": true,
                      "description": "Most recent day's reputation (0–100) within the requested window. `null` when the mailbox has no reputation data yet.",
                      "example": 96.42
                    },
                    "domain": {
                      "type": "string",
                      "description": "Domain portion of the mailbox address.",
                      "example": "allegrow.co"
                    },
                    "email": {
                      "type": "string",
                      "format": "email",
                      "example": "rep@allegrow.co"
                    },
                    "history": {
                      "type": "array",
                      "description": "Daily reputation series, oldest first. Days without data are omitted.",
                      "items": {
                        "$ref": "#/components/schemas/HistoryPoint"
                      }
                    },
                    "owner": {
                      "$ref": "#/components/schemas/Owner"
                    },
                    "provider": {
                      "type": "string",
                      "nullable": true,
                      "description": "Mail provider the mailbox is hosted on.",
                      "example": "google"
                    },
                    "statusUpdatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true,
                      "description": "When `connectionStatus` last changed.",
                      "example": "2026-08-01T00:00:00Z"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid id or date window",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimpleError"
                },
                "example": {
                  "error": "id must be a valid mailbox id"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/MissingApiKeyError"
          },
          "403": {
            "$ref": "#/components/responses/InvalidApiKeyError"
          },
          "404": {
            "description": "No active connected mailbox with this id in your workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "Not Found",
                  "message": "Mailbox not found",
                  "statusCode": 404
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimitError"
          },
          "503": {
            "description": "A dependent Allegrow service is temporarily unavailable. Retry after the number of seconds in the `Retry-After` header.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Suggested seconds to wait before retrying."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimpleError"
                },
                "example": {
                  "error": "Service temporarily unavailable"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Your Allegrow API key"
      }
    },
    "parameters": {
      "StartDateParam": {
        "name": "startDate",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "format": "date"
        },
        "description": "Start of the reporting window (YYYY-MM-DD, inclusive). Defaults to 89 days before today, giving a 90-day window including today.",
        "example": "2026-05-21"
      },
      "EndDateParam": {
        "name": "endDate",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "format": "date"
        },
        "description": "End of the reporting window (YYYY-MM-DD, inclusive). Defaults to today.",
        "example": "2026-08-18"
      }
    },
    "responses": {
      "MissingApiKeyError": {
        "description": "Unauthorized - API key missing from the request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": "Unauthorized",
              "message": "Unauthorized",
              "statusCode": 401
            }
          }
        }
      },
      "InvalidApiKeyError": {
        "description": "Forbidden - API key invalid or inactive",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": "Forbidden",
              "message": "Forbidden",
              "statusCode": 403
            }
          }
        }
      },
      "RateLimitError": {
        "description": "Rate limit exceeded. Requests count against the same per-second rate limit as validation API calls.",
        "headers": {
          "Retry-After": {
            "description": "Suggested seconds to wait before retrying",
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "error": "Too Many Requests",
              "message": "Too Many Requests",
              "statusCode": 429
            }
          }
        }
      }
    },
    "schemas": {
      "Owner": {
        "type": "object",
        "nullable": true,
        "description": "The user this mailbox belongs to. `null` when the owning user no longer exists in the workspace.",
        "required": [
          "email",
          "firstName",
          "lastName"
        ],
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "example": "rep@allegrow.co"
          },
          "firstName": {
            "type": "string",
            "nullable": true,
            "example": "Ada"
          },
          "lastName": {
            "type": "string",
            "nullable": true,
            "example": "Lovelace"
          }
        }
      },
      "HistoryPoint": {
        "type": "object",
        "required": [
          "date",
          "reputation"
        ],
        "properties": {
          "date": {
            "type": "string",
            "format": "date",
            "example": "2026-08-18"
          },
          "reputation": {
            "type": "number",
            "description": "Reputation (0–100) for this day.",
            "example": 96.42
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "message",
          "error",
          "statusCode"
        ],
        "properties": {
          "message": {
            "type": "string",
            "description": "Error message"
          },
          "error": {
            "type": "string",
            "description": "Error type"
          },
          "statusCode": {
            "type": "integer",
            "description": "HTTP status code"
          }
        }
      },
      "SimpleError": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "description": "Error message"
          }
        }
      }
    }
  }
}
```