Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tags:
- api-portal
- organization
author: WSO2 API Platform Documentation Team
last_updated: 2026-07-23
last_updated: 2026-10-13
content_type: "how-to"
---

Expand All @@ -30,7 +30,7 @@ The **Organization** tab in the API Portal's Settings page manages the details o
| **Business owner** | Contact name for the organization owner |
| **Business owner contact** | The owner's phone number or other contact string |
| **Business owner email** | The owner's email address |
| **IDP reference ID** | The organization claim value your identity provider (IDP) asserts at single sign-on (SSO) login, which incoming tokens are resolved against. Effectively read-only—the portal sets it to the organization handle when the organization is created, and saving a different value fails, because it's what every token is matched against. To have an IDP's organization claim resolve here, align it with the handle instead: see [Connect an identity provider](../setting-up/authentication/connect-an-identity-provider.md#step-5-make-the-organization-claim-resolve-to-your-organization) |
| **IDP reference ID** | The organization claim value your identity provider (IDP) asserts at single sign-on (SSO) login, which incoming tokens are resolved against. Read-only here, because it's what every token is matched against, so saving a different value fails. For the configured organization, it comes from `[api_portal.auth] idp_org_id` and defaults to the handle. For an organization that [multi-organization mode](../setting-up/authentication/multi-organization.md) provisions, it's the organization claim the organization was created from. See [Connect an identity provider](../setting-up/authentication/connect-an-identity-provider.md#step-5-make-the-organization-claim-resolve-to-your-organization) |
| **Control plane reference ID** | Reference ID included in outbound webhook event payloads (`org.ref_id`). Not used for authentication |

4. Click **Save changes**.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tags:
- api-portal
- webhooks
author: WSO2 API Platform Documentation Team
last_updated: 2026-08-18
last_updated: 2026-10-13
content_type: "how-to"
---

Expand Down Expand Up @@ -65,6 +65,9 @@ Two things to design your endpoint around:
- **A delivery is attempted once.** Any `non-2xx` response, connection error, or timeout is terminal—there's no automatic retry. Make the endpoint reliable, and answer within the configured timeout.
- **Acknowledge fast, work later.** Return a `2xx` and do the propagation asynchronously, rather than holding the connection open while you call a gateway.


In [multi-organization mode](../setting-up/authentication/multi-organization.md#webhooks), one portal delivers every organization's events, and each organization's subscribers receive only that organization's events.

You can read delivery history, including failures and their HTTP status, through the Management API—see [Webhook Events](../rest-api/webhook-events.md).

## Related
Expand Down
35 changes: 28 additions & 7 deletions en/docs/api-portal/1.0.0/references/configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tags:
- api-portal
- configuration
author: WSO2 API Platform Documentation Team
last_updated: 2026-07-24
last_updated: 2026-10-13
content_type: "reference"
---

Expand Down Expand Up @@ -89,20 +89,24 @@ session_secret = "" # 64-char hex — express-session signing secret
```toml
[api_portal.auth]
mode = "local" # local | idp
# idp_org_id = "default" # the organization claim value your IdP asserts; defaults to the handle

[api_portal.auth.claim_mappings]
organization = "org_name" # claim carrying the org ID
roles = "roles" # claim carrying the user's roles
groups = "groups"
# org_name = "org_name" # optional: names organizations provisioned in multi-organization mode
# org_handle = "org_handle" # optional: their URL handle

[api_portal.auth.local]
platform_api_url = ""
public_key_path = "" # path to the Platform API's RS256 public key PEM
tls_skip_verify = false

# The [api_portal.auth.idp] endpoints describe your own identity provider and have
# no default. issuer, authorization_url, token_url, client_id, and callback_url are
# required when mode = "idp"; the portal refuses to start without them.
# no default. authorization_url, token_url, client_id, and callback_url are required
# when mode = "idp"; the portal refuses to start without them. issuer and audience are
# recommended.
[api_portal.auth.idp]
name = "my-idp" # friendly name, used in logs
issuer = ""
Expand All @@ -111,7 +115,7 @@ token_url = ""
user_info_url = ""
client_id = ""
client_secret = ""
audience = ""
audience = "" # recommended
callback_url = ""
scope = "openid profile email"
sign_up_url = ""
Expand All @@ -122,9 +126,13 @@ jwks_url = ""
token_refresh_timeout_ms = 10000
silent_sso = true # Enable silent SSO
org_callback = false # Redirect to the org's own landing page after login
# Multi-organization mode only: per-organization issuers
issuer_template = ""
jwks_url_template = ""
template_org_claim = ""
```

See [Authentication](../setting-up/authentication/overview.md) for the authentication modes, and [Connect an identity provider](../setting-up/authentication/connect-an-identity-provider.md) for the value each `[api_portal.auth.idp]` key has to match in the IdP.
See [Authentication](../setting-up/authentication/overview.md) for the authentication modes, and [Connect an identity provider](../setting-up/authentication/connect-an-identity-provider.md) for the value each `[api_portal.auth.idp]` key has to match in the IdP. For `issuer_template`, `jwks_url_template`, and `template_org_claim`, see [Accept tokens from per-organization issuers](../setting-up/authentication/multi-organization.md#accept-tokens-from-per-organization-issuers).

### Authorization

Expand Down Expand Up @@ -187,7 +195,7 @@ These three keys describe the organization the instance serves:

| Key | Description |
|---|---|
| `organization.handle` | The URL slug of the single organization this instance serves, and the pin every route is scoped against. Anything resolving to a different organization is rejected. In local-auth mode it must match the Platform API's organization id. In IDP mode it's also what the token's organization claim has to resolve to—see the note below |
| `organization.handle` | The URL slug of the single organization this instance serves, and the pin every route is scoped against. Anything resolving to a different organization is rejected. In local-auth mode it must match the Platform API's organization id. In IDP mode it's also what the token's organization claim has to resolve to—see the note below. In [multi-organization mode](#multi-organization), it's the default organization, which a token without an organization claim acts in |
| `organization.display_name` | Used only when seeding the organization for the first time. Never overwrites an existing name, so an admin's later edit in the settings UI survives restarts. Empty means "use the handle" |
| `organization.auto_create_subscription_plans` | Seeds Bronze, Silver, Gold, Unlimited, and AsyncUnlimited alongside the organization |

Expand All @@ -197,12 +205,25 @@ Seeding runs on startup only if the organization doesn't already exist, so it's
The two authentication modes resolve it differently, so don't assume one claim covers both.

- **Local auth** reads a fixed `org_handle` claim and compares it to `organization.handle`.
- **IDP mode** reads the claim named by `auth.claim_mappings.organization` (default `org_name`) and resolves it, accepting the organization's handle or its display name. The organization's IDP reference ID is seeded from `handle` and can't be changed afterward, so `handle` is the value to align the claim with—see [Make the organization claim resolve to your organization](../setting-up/authentication/connect-an-identity-provider.md#step-5-make-the-organization-claim-resolve-to-your-organization).
- **IDP mode** reads the claim named by `auth.claim_mappings.organization` (default `org_name`). In single-organization mode, the claim may name the organization's handle, its display name, or its IdP reference ID. In [multi-organization mode](#multi-organization), it must match an organization's IdP reference ID exactly. The IdP reference ID defaults to `handle`; set `auth.idp_org_id` to the value your IdP asserts when it differs. A token without the claim acts in this organization—see [Make the organization claim resolve to your organization](../setting-up/authentication/connect-an-identity-provider.md#step-5-make-the-organization-claim-resolve-to-your-organization).


!!! note
`organization.default_name` is a deprecated alias for `handle`. It still resolves, with a startup warning—use `handle` in new configuration.

## Multi-organization

```toml
[api_portal.multi_organization]
enabled = false
```

| Key | Description |
|---|---|
| `multi_organization.enabled` | `true` serves every organization in the database from this instance, and provisions an organization from a verified token's organization claim the first time one of its users signs in. Needs `auth.mode = "idp"`; setting `auth.idp.issuer` and `auth.idp.audience` is recommended. With local authentication, the setting has no effect and the portal logs a warning. Any value other than `true` or `false` stops the portal from starting |

See [Serve multiple organizations from one API Portal](../setting-up/authentication/multi-organization.md) for the deployment requirements, provisioning rules, and sign-in behavior.

## Artifacts

```toml
Expand Down
10 changes: 5 additions & 5 deletions en/docs/api-portal/1.0.0/rest-api/api-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ At least one of `web/` or `docs/` must exist at the ZIP root.

```shell

curl -X GET https://localhost:9543/api-portal/api/v0.9/apis/{apiId}/assets?type=document&fileName=getting-started.md \
curl -X GET https://localhost:9543/api-portal/api/v0.9/apis/{apiId}/assets?type=DOC_HowTo&fileName=getting-started.md \
-u {username}:{password} \
-H 'Accept: text/markdown'

Expand All @@ -284,8 +284,8 @@ session: an anonymous request for a non-image type is rejected.

|Name|In|Type|Required|Description|
|---|---|---|---|---|
|type|query|string|true|Stored API content type selector. Common values are `web`, `document`, `image`, and `link`, depending on how the uploaded ZIP content was classified.|
|fileName|query|string|true|Stored API content file name to retrieve.|
|type|query|string|true|Stored type of the file, matched exactly: `MARKETING` for the API's landing page content and theming, such as its Markdown body and Handlebars template; `IMAGE` for images, such as the API icon; `DOC_<category>` for documents, for example `DOC_HowTo` (`DOC_Other` for documents without a category); and `API_DEFINITION` for the API's definition.|
|fileName|query|string|true|Stored file name to retrieve. For `API_DEFINITION`, use the name the definition was stored under: `definition.yaml`, `definition.yml`, or `definition.json` when it came from an API artifact ZIP, the uploaded file's own name when it was sent in the `definition` field, and `definition.graphql` for a GraphQL schema.|
|orgId|query|string|false|Deprecated and ignored. Accepted only so existing callers (the portal's own image-URL rewrite appends it) are not rejected. The organization is always this instance's own — from the session when there is one, otherwise from `organization.handle` configuration. It was previously honoured on this unauthenticated endpoint, which made it a selector for any organization's API icons in a shared database.|
|apiId|path|string|true|The API's handle (unique per org). Resolves only to REST, SOAP, WebSocket, WebSub, and GraphQL APIs. Model Context Protocol (MCP) servers are addressed via `/mcp-servers`.|

Expand Down Expand Up @@ -366,7 +366,7 @@ session: an anonymous request for a non-image type is rejected.

```shell

curl -X DELETE https://localhost:9543/api-portal/api/v0.9/apis/{apiId}/assets?type=document \
curl -X DELETE https://localhost:9543/api-portal/api/v0.9/apis/{apiId}/assets?type=DOC_HowTo \
-H 'Authorization: Bearer {access_token}' \
-H 'Accept: application/json'

Expand All @@ -390,7 +390,7 @@ Required scopes (the token must carry at least one of): `dp:api_content:delete`,

|Name|In|Type|Required|Description|
|---|---|---|---|---|
|type|query|string|true|Stored API content type selector. Common values are `web`, `document`, `image`, and `link`, depending on how the uploaded ZIP content was classified.|
|type|query|string|true|Stored type of the files to delete: `MARKETING` for the API's landing page content and theming, such as its Markdown body and Handlebars template; `IMAGE` for images, such as the API icon; `DOC_<category>` for documents, for example `DOC_HowTo` (`DOC_Other` for documents without a category); and `API_DEFINITION` for the API's definition.|
|fileName|query|string|false|File name selector used to delete a single stored API content file.|
|apiId|path|string|true|The API's handle (unique per org). Resolves only to REST, SOAP, WebSocket, WebSub, and GraphQL APIs. Model Context Protocol (MCP) servers are addressed via `/mcp-servers`.|

Expand Down
10 changes: 5 additions & 5 deletions en/docs/api-portal/1.0.0/rest-api/mcp-server-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ At least one of `web/` or `docs/` must exist at the ZIP root.

```shell

curl -X GET https://localhost:9543/api-portal/api/v0.9/mcp-servers/{mcpServerId}/assets?type=document&fileName=getting-started.md \
curl -X GET https://localhost:9543/api-portal/api/v0.9/mcp-servers/{mcpServerId}/assets?type=DOC_HowTo&fileName=getting-started.md \
-H 'Authorization: Bearer {access_token}' \
-H 'Accept: text/markdown'

Expand All @@ -273,8 +273,8 @@ Required scopes (the token must carry at least one of): `dp:mcp_server_content:r

|Name|In|Type|Required|Description|
|---|---|---|---|---|
|type|query|string|true|Stored API content type selector. Common values are `web`, `document`, `image`, and `link`, depending on how the uploaded ZIP content was classified.|
|fileName|query|string|true|Stored API content file name to retrieve.|
|type|query|string|true|Stored type of the file, matched exactly: `MARKETING` for the MCP server's landing page content and theming, such as its Markdown body and Handlebars template; `IMAGE` for images, such as the MCP server icon; `DOC_<category>` for documents, for example `DOC_HowTo` (`DOC_Other` for documents without a category); and `SCHEMA_DEFINITION` for the MCP server's tools schema.|
|fileName|query|string|true|Stored file name to retrieve. For `SCHEMA_DEFINITION`, use the name the tools schema was stored under: `definition.yaml`, `definition.yml`, or `definition.json` when it came from an MCP server artifact ZIP, or the uploaded file's own name when it was sent in the `definition` field.|
|mcpServerId|path|string|true|The MCP server's handle (unique per org).|

> Example responses
Expand Down Expand Up @@ -354,7 +354,7 @@ Required scopes (the token must carry at least one of): `dp:mcp_server_content:r

```shell

curl -X DELETE https://localhost:9543/api-portal/api/v0.9/mcp-servers/{mcpServerId}/assets?type=document \
curl -X DELETE https://localhost:9543/api-portal/api/v0.9/mcp-servers/{mcpServerId}/assets?type=DOC_HowTo \
-H 'Authorization: Bearer {access_token}' \
-H 'Accept: application/json'

Expand All @@ -375,7 +375,7 @@ Required scopes (the token must carry at least one of): `dp:mcp_server_content:d

|Name|In|Type|Required|Description|
|---|---|---|---|---|
|type|query|string|true|Stored API content type selector. Common values are `web`, `document`, `image`, and `link`, depending on how the uploaded ZIP content was classified.|
|type|query|string|true|Stored type of the files to delete: `MARKETING` for the MCP server's landing page content and theming, such as its Markdown body and Handlebars template; `IMAGE` for images, such as the MCP server icon; `DOC_<category>` for documents, for example `DOC_HowTo` (`DOC_Other` for documents without a category); and `SCHEMA_DEFINITION` for the MCP server's tools schema.|
|fileName|query|string|false|File name selector used to delete a single stored API content file.|
|mcpServerId|path|string|true|The MCP server's handle (unique per org).|

Expand Down
Loading