# Attribution models 

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /{version}/api/get/setting-models:
    post:
      summary: 'Attribution models '
      deprecated: false
      description: >-
        The attribution model determines how you will distribute the conversion
        contribution of a channel or touchpoint.
      tags:
        - Public API/Setting
      parameters:
        - name: version
          in: path
          description: v2-4-2
          required: true
          example: v2-4-2
          schema:
            type: string
        - name: ApiKey
          in: header
          description: ''
          required: true
          example: '{{ApiKey}}'
          schema:
            type: string
            default: '{{ApiKey}}'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties: {}
              x-apifox-orders: []
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      records:
                        type: array
                        items:
                          type: object
                          properties:
                            code:
                              type: string
                              description: model code
                            name:
                              type: string
                              description: 'model  name '
                            base_model:
                              type: string
                              description: 'model '
                            window:
                              type: string
                              description: model window
                            channels:
                              type: array
                              items:
                                type: string
                              description: channles
                            ad_platforms:
                              type: array
                              items:
                                type: string
                              description: platforms
                            scene:
                              type: 'null'
                              description: all | ad
                            data_source:
                              type: integer
                              description: '1: system, 2: custom'
                          required:
                            - code
                            - name
                            - base_model
                            - window
                            - channels
                            - ad_platforms
                            - scene
                            - data_source
                          x-apifox-orders:
                            - code
                            - name
                            - base_model
                            - window
                            - channels
                            - ad_platforms
                            - scene
                            - data_source
                    required:
                      - records
                    x-apifox-orders:
                      - records
                required:
                  - code
                  - message
                  - data
                x-apifox-orders:
                  - code
                  - message
                  - data
              example:
                code: 1
                message: Service succeed
                data:
                  records:
                    - code: t5vx68016z6d223jdwsg7c8100b40twx
                      name: PositionV2
                      base_model: position_v2
                      window: '90'
                      channels:
                        - all
                      ad_platforms:
                        - all
                      scene: null
                      data_source: 2
                    - code: 1cwm0j21flccyfwtsfj1xaw1003r2hga
                      name: Last click
                      base_model: last_clicked
                      window: '30'
                      channels:
                        - all
                      ad_platforms:
                        - all
                      scene: null
                      data_source: 1
                    - code: 1cwm0j21fm6cyfwtxa9f114100kv6i9v
                      name: First click
                      base_model: first_clicked
                      window: '60'
                      channels:
                        - all
                      ad_platforms:
                        - all
                      scene: null
                      data_source: 1
                    - code: 1cwm0j21fmwcyfwu07m624g100phdcbl
                      name: Linear
                      base_model: linear
                      window: '180'
                      channels:
                        - all
                      ad_platforms:
                        - all
                      scene: null
                      data_source: 1
                    - code: 1cwm0j21fnkcyfwu2n2h120100tvnkjz
                      name: Position
                      base_model: position
                      window: '180'
                      channels:
                        - all
                      ad_platforms:
                        - all
                      scene: null
                      data_source: 1
          headers: {}
          x-apifox-name: Success
      security: []
      x-apifox-folder: Public API/Setting
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/7934002/apis/api-429980012-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://data-api.test.attribuly.com
    description: test
  - url: https://data.api.attribuly.com
    description: prod
security: []

```
