Skip to Content
Xeonr Developer Docs
API SpecificationPRIVATEApplications

Create Application

POST
/xeonr.auth.private.v1.ApplicationsService/CreateApplication

Creates a new application with the specified configuration, including identity providers, scopes, and enrollment settings.

Required scopes: auth:apps:edit (organisation-wide) or auth:apps:edit:own (applications owned by a team you belong to)

Authorization

BearerAuth
AuthorizationBearer <token>

JWT access token for internal API access. Requires 'private' scope for most endpoints, 'admin' scope for administrative operations.

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

name?string
Length1 <= length <= 64
slug?string
Length1 <= length <= 64
websiteUrl?string
Formaturi
Length1 <= length <= 128
automaticEnrollment?booleanDeprecated

Deprecated: set sign_in_mode. Honoured only while sign_in_mode is UNSPECIFIED: true means EVERYONE; false means TEAM_MEMBERS when supports_teams is set, else INVITE_ONLY.

supportsScopedRequests?boolean
audience?array<>

Additional audiences stamped onto tokens issued for this application. ORGANISATION ADMINISTRATORS ONLY: a caller without auth:apps:edit is refused if it sets this, because an arbitrary audience is a token another product will accept. Every application always carries its own derived identity audience (urn:xeonr:auth:application:<application_id>) whether or not this list is set, so it is optional.

Itemsitems <= 10
applicationCustomConfig?
public?booleanDeprecated

Deprecated and ignored: the public catalogue is gone.

validationCallbackUrl?|

URL for the validation callback endpoint (called during PAR and consent for RAR)

Formaturi
iacManaged?boolean
supportsTeams?boolean

Whether the application understands Xeonr Teams: the explicit switch (see Application.supports_teams). Owner-settable. Off, the application cannot be created with a TEAM_MEMBERS sign_in_mode or a team_enablement other than ADMIN_MANAGED.

automaticTeamBinding?booleanDeprecated

Deprecated: set team_enablement. Honoured only while team_enablement is UNSPECIFIED: true means SELF_SERVE (which only an administrator may set, on a platform application), false means ADMIN_MANAGED.

allowDynamicClients?boolean

Lets clients created by RFC 7591 dynamic registration request this application's scopes without holding a ClientApplicationBinding. Only the PUBLIC-tier scopes that are not role-gated or service-account-only are admitted, and the user's consent and enrollment gates still apply.

ownerTeam?string

Team to own the new application, as a slug or urn:xeonr:auth:team:<uuid>. REQUIRED unless the caller is an organisation administrator; the caller must be an owner of the named team. An administrator may omit it to create an organisation-owned application.

signInMode?string

Who can sign in. UNSPECIFIED falls back to the deprecated flags above, and with none of them set means INVITE_ONLY.

Value in"SIGN_IN_MODE_UNSPECIFIED" | "SIGN_IN_MODE_EVERYONE" | "SIGN_IN_MODE_TEAM_MEMBERS" | "SIGN_IN_MODE_INVITE_ONLY"
teamEnablement?string

Who may enable the application on a team. UNSPECIFIED means ADMIN_MANAGED (or what the deprecated automatic_team_binding says). SELF_SERVE needs an organisation administrator and a platform application; everyone who may create an application may choose ADMIN_MANAGED or BY_REQUEST.

Value in"TEAM_ENABLEMENT_UNSPECIFIED" | "TEAM_ENABLEMENT_ADMIN_MANAGED" | "TEAM_ENABLEMENT_BY_REQUEST" | "TEAM_ENABLEMENT_SELF_SERVE"
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://auth.xeonr.io/xeonr.auth.private.v1.ApplicationsService/CreateApplication" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "application": {
    "applicationId": "app_prod_myapp",
    "name": "My Application",
    "slug": "my-application",
    "websiteUrl": "https://myapp.example.com",
    "createdAt": "2023-01-15T01:30:15.01Z",
    "updatedAt": "2023-01-15T01:30:15.01Z",
    "enabledIdps": [
      "github",
      "discord"
    ],
    "scopes": [
      {
        "name": "read:users",
        "description": "Read access to user data",
        "isInternal": true,
        "isSensitive": true,
        "role": {
          "name": "admin",
          "iacManaged": true,
          "roleType": "ROLE_TYPE_UNSPECIFIED",
          "description": "string",
          "defaultOwnerRole": true,
          "displayName": "Administrator",
          "teamRank": 0,
          "ownerInherited": true
        },
        "isDelegatable": true,
        "isServiceAccountOnly": true,
        "isOrgOnly": true,
        "iacManaged": true,
        "dynamicCanGrant": true,
        "tier": "SCOPE_TIER_UNSPECIFIED"
      }
    ],
    "automaticEnrollment": true,
    "audience": [
      "https://api.example.com"
    ],
    "roles": [
      {
        "name": "admin",
        "iacManaged": true,
        "roleType": "ROLE_TYPE_UNSPECIFIED",
        "description": "string",
        "defaultOwnerRole": true,
        "displayName": "Administrator",
        "teamRank": 0,
        "ownerInherited": true
      }
    ],
    "supportsScopedRequests": true,
    "applicationCustomConfig": {
      "jsonSchema": {
        "property1": {},
        "property2": {}
      },
      "uiSchema": {
        "property1": {},
        "property2": {}
      }
    },
    "public": true,
    "resourceTypes": [
      {
        "type": "bucket",
        "jsonSchema": {
          "property1": {},
          "property2": {}
        },
        "displayTitleField": "title",
        "displayDescriptionField": "description",
        "iacManaged": true,
        "parents": [
          "string"
        ],
        "actions": [
          "string"
        ],
        "scopedEnforcement": true
      }
    ],
    "validationCallbackUrl": "https://uploads.example.com/api/auth/validate",
    "iacManaged": true,
    "supportsTeams": true,
    "automaticTeamBinding": true,
    "allowDynamicClients": true,
    "console": {
      "product": true,
      "origin": "string",
      "icon": "string",
      "colour": "string",
      "category": "string",
      "blurb": "string",
      "status": "string",
      "scopes": [
        "string"
      ],
      "pinnedByDefault": true,
      "docsUrl": "string",
      "supportUrl": "string",
      "displayName": "string"
    },
    "ownerTeam": "urn:xeonr:auth:team:6f1a…",
    "ownerTeamSlug": "string",
    "platform": true,
    "signInMode": "SIGN_IN_MODE_UNSPECIFIED",
    "teamEnablement": "TEAM_ENABLEMENT_UNSPECIFIED",
    "tokenClaimsByReference": true
  }
}