Skip to main content

Create Portal

Creates a new customer-facing web portal configuration and links it to the specified ECGrid mailbox.

Endpoint

POST /v2/portals/create

Request Body

FieldTypeRequiredConstraintsDescription
mailboxIdintYesMust be a valid mailbox IDThe mailbox to associate with the new portal
{
"mailboxId": 7890
}

Response

Returns the newly created portal record including its assigned ID and URL.

{
"success": true,
"data": {
"portalId": 502,
"mailboxId": 7890,
"url": "https://portal.ecgrid.io/new-portal-slug",
"status": "Active",
"created": "2026-05-07T09:00:00Z"
}
}

Response Fields

FieldTypeDescription
portalIdintUnique identifier for the newly created portal
mailboxIdintThe mailbox this portal is linked to
urlstringThe public-facing URL for the customer portal
statusstringInitial status of the portal upon creation
createddatetimeUTC timestamp when the portal was created

Code Examples

curl -X POST "https://rest.ecgrid.io/v2/portals/create" \
-H "X-API-Key: $ECGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "mailboxId": 7890 }'

See Also