# The application-wide default origin

> The application-wide default origin: CustomDomain™ API reference in the power group. Covers request parameters, the request body, responses and error codes.

Source: https://docs.customdomain.ai/docs/api-reference/power/getApplicationDefaultOrigin

## `GET https://api.customdomain.ai/v1/applications/{id}/power:default`

The origin the edge proxies to for any of this application's connections that have no origin of their own. Resolution order is: the connection's own origin, then this default, then none (the edge answers 421).

This exists because a per-connection origin is the wrong grain for the common case: one application serving thousands of customer domains, all proxying to the same place and dispatching on `X-Forwarded-Host`.

### Authentication

`widgetJWT`, `apiKey`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes |  |

### Responses

| Status | Description |
| --- | --- |
| `200` | The current default |
| `401` | Error envelope: {code, title, details}. |
| `402` | Error envelope: {code, title, details}. |
| `404` | Error envelope: {code, title, details}. |
| `503` | Error envelope: {code, title, details}. |

### `200` response body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `application_id` | string | no |  |
| `default_origin` | string | no | Absent when no default is set. |
| `configured` | boolean | no | Whether a default is set. Distinguishes "no default" from an empty value. |

The full specification is served at `GET https://api.customdomain.ai/v1/openapi.json`.
