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

# Get Connected Domain

Returns a single sending domain with its member mailboxes and day-by-day reputation history.

`history` contains one point per day that has data, oldest first; days without data are omitted. The window defaults to the last 90 days and can be narrowed with `startDate`/`endDate`.

A **404** means the domain has neither active connected mailboxes nor reputation history in your workspace.


Returns a single sending domain with its member mailboxes and day-by-day reputation history — the API equivalent of the in-app domain view.

* `history` has one point per day that has data, oldest first; the window defaults to the last 90 days and can be narrowed with `startDate`/`endDate`.
* `mailboxes` lists the active connected mailboxes on the domain (with `mailboxCount` alongside); it can be empty when only historical reputation data remains.

A **404** means the domain has neither active connected mailboxes nor reputation history in your workspace.

# 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-domains/{domainName}": {
      "get": {
        "summary": "Get Connected Domain",
        "description": "Returns a single sending domain with its member mailboxes and day-by-day reputation history.\n\n`history` contains one point per day that has data, oldest first; 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 domain has neither active connected mailboxes nor reputation history in your workspace.\n",
        "operationId": "getDomain",
        "tags": [
          "Connected Domains"
        ],
        "parameters": [
          {
            "name": "domainName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The sending domain. Case-insensitive.",
            "example": "allegrow.co"
          },
          {
            "$ref": "#/components/parameters/StartDateParam"
          },
          {
            "$ref": "#/components/parameters/EndDateParam"
          }
        ],
        "responses": {
          "200": {
            "description": "Domain detail with reputation history",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "currentReputation",
                    "domain",
                    "endDate",
                    "history",
                    "mailboxCount",
                    "mailboxes",
                    "startDate"
                  ],
                  "properties": {
                    "currentReputation": {
                      "type": "number",
                      "nullable": true,
                      "description": "Latest daily reputation (0–100) within the window. `null` when no reputation data exists yet.",
                      "example": 95.1
                    },
                    "domain": {
                      "type": "string",
                      "example": "allegrow.co"
                    },
                    "endDate": {
                      "type": "string",
                      "format": "date",
                      "description": "Resolved end of the reporting window.",
                      "example": "2026-08-18"
                    },
                    "history": {
                      "type": "array",
                      "description": "Daily reputation series, oldest first. Days without data are omitted.",
                      "items": {
                        "$ref": "#/components/schemas/HistoryPoint"
                      }
                    },
                    "mailboxCount": {
                      "type": "integer",
                      "description": "Number of active connected mailboxes on this domain.",
                      "example": 2
                    },
                    "mailboxes": {
                      "type": "array",
                      "description": "Email addresses of the active connected mailboxes on this domain, sorted ascending.",
                      "items": {
                        "type": "string",
                        "format": "email"
                      },
                      "example": [
                        "rep@allegrow.co",
                        "sales@allegrow.co"
                      ]
                    },
                    "startDate": {
                      "type": "string",
                      "format": "date",
                      "description": "Resolved start of the reporting window.",
                      "example": "2026-05-21"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid domain or date window",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SimpleError"
                },
                "example": {
                  "error": "domainName must be a valid domain"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/MissingApiKeyError"
          },
          "403": {
            "$ref": "#/components/responses/InvalidApiKeyError"
          },
          "404": {
            "description": "Domain not found in your workspace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "Not Found",
                  "message": "Domain 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": {
      "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"
          }
        }
      }
    }
  }
}
```