version:
V1 portals use a single configuration blob, while V2 portals use
structured config groups (theme, metadata, media, content, registration,
staking, FAQs, etc.). See the Portal API for the v1/v2
distinction.
Route: POST /api/external/v1/portals/create
Headers
| Header | Required | Description |
|---|---|---|
Content-Type | Yes | Must be application/json |
x-magna-api-token | Yes | Your Magna API token |
Body parameters (V1)
| Field | Type | Required | Description |
|---|---|---|---|
version | "V1" | Yes | Portal version |
claimConfig | object | Yes | Token + contract + claim window |
configuration | object | Yes | Portal configuration blob (colors, metadata, feature flags) |
content | object | No | Portal copy / content |
images | object | No | Portal images |
legalEntityName | string | No | Legal entity displayed in the portal |
xHandle | string | No | X (Twitter) handle |
blogUrl | string | No | Blog URL |
discordInviteLink | string | No | Discord invite link |
Body parameters (V2)
| Field | Type | Required | Description |
|---|---|---|---|
version | "V2" | Yes | Portal version |
claimConfig | object | Yes | Token + contract + claim window |
themeConfig | object | No | Colors, button styles, theme |
metadata | object | No | Title, description, OG image, favicon |
mediaConfig | object | No | Logos, backgrounds, animations |
content | object | No | Portal copy / content |
registrationConfig | object | No | Registration / eligibility settings |
stakingConfig | object | No | Staking configuration |
enabledWallets | string[] | No | Wallet adapters to enable |
socialProviders | array | No | Social login providers |
faqs | array | No | FAQ entries |
helpLinks | array | No | Help links |
xHandle · blogUrl · discordInviteLink · paragraphHandle · posthogKey · tosMdUrl | string | No | Optional metadata |
The
configuration (V1) and structured config groups (V2) carry many nested
fields. Create a portal in the admin dashboard once and fetch it with
Get Portal to see the exact shape your
project uses, then mirror it here.