Skip to main content

Get Portal by Mailbox

Retrieves the portal configuration associated with a specific ECGrid mailbox.

Endpoint​

GET /v2/portals/by-mailbox/{mailboxId}

Path Parameters​

ParameterTypeRequiredDescription
mailboxIdintYesThe ID of the mailbox whose portal configuration should be retrieved

Response​

Returns the portal record linked to the specified mailbox, including the portal URL and current status.

{
"success": true,
"data": {
"portalId": 501,
"mailboxId": 7890,
"url": "https://portal.ecgrid.io/company-name",
"status": "Active",
"created": "2024-09-01T12:00:00Z"
}
}

Response Fields​

FieldTypeDescription
portalIdintUnique identifier for the portal record
mailboxIdintThe mailbox this portal is associated with
urlstringThe public-facing URL for the customer portal
statusstringCurrent status of the portal (e.g., Active, Suspended)
createddatetimeUTC timestamp when the portal was created

Code Examples​

curl -X GET "https://rest.ecgrid.io/v2/portals/by-mailbox/$MAILBOX_ID" \
-H "X-API-Key: $ECGRID_API_KEY"

See Also​