# Create application

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/loyalty_clubs/applications:
    post:
      summary: Create application
      deprecated: false
      description: ''
      tags:
        - API Reference/Management API/Core/Applications
      parameters:
        - name: Content-Type
          in: header
          description: '[Details](doc-341635)'
          required: true
          example: application/json
          schema:
            type: string
            default: application/json
            const: application/json
        - name: X-User-Agent
          in: header
          description: Arbitrary identifier of your client. [Details](doc-341635)
          required: true
          example: '{{X_USER_AGENT}}'
          schema:
            type: string
            default: '{{X_USER_AGENT}}'
        - name: X-Product-Name
          in: header
          description: API Product for API context. [Details](doc-341635)
          required: true
          example: '{{PRODUCT_NAME}}'
          schema:
            type: string
            default: '{{PRODUCT_NAME}}'
        - name: X-Loyalty-Club-Slug
          in: header
          description: LoyaltyClub for API context. [Details](doc-342138)
          required: false
          example: '{{LOYALTY_CLUB_SLUG}}'
          schema:
            type: string
            default: '{{LOYALTY_CLUB_SLUG}}'
        - name: X-Customer
          in: header
          description: Customer for API context.  [Details](doc-342139)
          required: false
          example: '{{CUSTOMER_ID}}'
          schema:
            type: string
            default: '{{CUSTOMER_ID}}'
        - name: X-Client-Authorization
          in: header
          description: '[Token](doc-342128) Authorization.'
          example: '{{API_TOKEN}}'
          schema:
            type: string
            default: '{{API_TOKEN}}'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                application: &ref_0
                  $ref: '#/components/schemas/Application'
              required:
                - application
              x-apidog-orders:
                - application
              x-apidog-ignore-properties: []
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  application: *ref_0
                required:
                  - application
                x-apidog-orders:
                  - application
                x-apidog-ignore-properties: []
              example:
                application:
                  id: 10683
                  loyalty_club_id: 235
                  name: new application
                  slug: new-application
                  created_at: '2025-01-28T13:12:22.127024Z'
                  updated_at: '2025-01-28T13:12:22.127024Z'
                  welcome_message:
                    text:
                      en: hello!
                    enabled: true
                  subproducts: []
                  enabled_properties: null
                  required_properties: []
                  trusted_redirection_domains: []
          headers: {}
          x-apidog-name: OK
        '422':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    examples:
                      - Invalid parameters
                    const: Invalid parameters
                  details:
                    type: object
                    properties: {}
                    x-apidog-orders: []
                    description: 'See: [Params Validation](doc-341637)'
                    additionalProperties: true
                    x-apidog-ignore-properties: []
                required:
                  - error
                  - details
                x-apidog-orders:
                  - error
                  - details
                x-apidog-ignore-properties: []
          headers: {}
          x-apidog-name: Invalid Parameters
      security: []
      x-apidog-folder: API Reference/Management API/Core/Applications
      x-apidog-status: released
      x-run-in-apidog: https://app.eu.apidog.com/web/project/346351/apis/api-3664343-run
components:
  schemas:
    Application:
      type: object
      properties:
        identifier:
          type: string
          description: >-
            Unique identifier for the Application. Will be used in API requests
            to identify it.
          examples:
            - website
        name:
          type: string
          description: Optional display name
          examples:
            - Website
          nullable: true
        welcome_message:
          type: object
          properties:
            text:
              description: Custom text of SMS message sent to a member after registration
              anyOf:
                - description: >-
                    Custom text of SMS message sent to a member after
                    registration
                  $ref: '#/components/schemas/LocalizedContent'
                - type: 'null'
            enabled:
              type: boolean
              description: Is the SMS message enabled?
              default: true
              nullable: true
          x-apidog-orders:
            - text
            - enabled
          required:
            - text
            - enabled
          x-apidog-ignore-properties: []
          nullable: true
        optin_channels:
          type: array
          items:
            type: string
          examples:
            - - fb_campaign_2018
              - fb_campaign_2019
          description: Specifies optin channels for new members on more granular level.
          nullable: true
        enabled_properties:
          type: array
          items:
            type: string
          examples:
            - - msisdn
              - first_name
          description: >-
            Names of member properties that are relevant/available in context of
            this application.

            When blank, a configuration from "default" Application will be used.
          nullable: true
        required_properties:
          type: array
          items:
            type: string
          examples:
            - - msisdn
          description: >-
            Names of member properties that are required to be present for
            members in context of this application.

            When blank, a configuration from "default" Application will be used.
          nullable: true
        trusted_redirection_domains:
          type: array
          items:
            $ref: '#/components/schemas/domain'
          description: >-
            When present, those domains will be available to provide as targets
            of custom redirection URLs generated by API to members
          nullable: true
        created_at:
          $ref: '#/components/schemas/date_time.created_at'
        updated_at:
          $ref: '#/components/schemas/date_time.updated_at'
      required:
        - identifier
        - name
        - welcome_message
        - optin_channels
        - enabled_properties
        - required_properties
        - trusted_redirection_domains
        - created_at
        - updated_at
      x-apidog-orders:
        - identifier
        - name
        - welcome_message
        - optin_channels
        - enabled_properties
        - required_properties
        - trusted_redirection_domains
        - created_at
        - updated_at
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    date_time.updated_at:
      type: string
      description: Time of the last record update
      format: date-time
      examples:
        - '2022-11-15T16:25:58.099512Z'
      readOnly: true
      x-apidog-folder: ''
    date_time.created_at:
      type: string
      description: Time of record creation
      format: date-time
      examples:
        - '2022-11-05T16:25:58.099512Z'
      readOnly: true
      x-apidog-folder: ''
    domain:
      type: string
      examples:
        - example.com
      format: hostname
      x-apidog-folder: ''
    LocalizedContent:
      type: object
      properties: {}
      x-apidog-orders: []
      title: ''
      examples:
        - en: Text
      additionalProperties:
        type: string
        description: >-
          The actual set of languages depends on LC configuration. See:
          [Localization](doc-341959)
        examples:
          - Tekst
        nullable: true
      x-apidog-ignore-properties: []
      nullable: true
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://api.mpc.dev.placewise.com
    description: Staging
security: []

```