> ## Documentation Index
> Fetch the complete documentation index at: https://docs.allyy.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get export configuration

> Returns extended export configuration details including last synchronization info.

**Note:** The response schema shown below applies when `exportType` is `prediction`. When `exportType` is `decision`, the response shape differs: instead of `displayFields`, `rankingRule`, `predictionScores`, `contactTypes`, and `targetGroup`, it contains `decisionConfigurationId`, `decisionConfiguration` (id + name), and `fieldMappings`.



## OpenAPI

````yaml get /api/recommendation/v1.0/customer/{customerId}/{exportType}/ExportConfiguration/{exportConfigurationId}/extended
openapi: 3.0.1
info:
  title: Recommendation Api v1.0
  version: v1.0
servers:
  - url: https://app.allyy.io
security: []
paths:
  /api/recommendation/v1.0/customer/{customerId}/{exportType}/ExportConfiguration/{exportConfigurationId}/extended:
    get:
      tags:
        - ExportConfiguration
      summary: Get export configuration (extended)
      description: >-
        Returns extended export configuration details including last
        synchronization info.


        **Note:** The response schema shown below applies when `exportType` is
        `prediction`. When `exportType` is `decision`, the response shape
        differs: instead of `displayFields`, `rankingRule`, `predictionScores`,
        `contactTypes`, and `targetGroup`, it contains
        `decisionConfigurationId`, `decisionConfiguration` (id + name), and
        `fieldMappings`.
      parameters:
        - name: exportType
          in: path
          required: true
          description: 'Export configuration type: `prediction` or `decision`'
          schema:
            type: string
        - name: customerId
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: exportConfigurationId
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: version
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ExtendedExportConfigurationModelResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ExtendedExportConfigurationModelResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ExtendedExportConfigurationModelResponse'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
        - oauth2:
            - oneprediction_api
components:
  schemas:
    ExtendedExportConfigurationModelResponse:
      type: object
      properties:
        meta:
          $ref: '#/components/schemas/Metadata'
        data:
          $ref: '#/components/schemas/ExtendedExportConfigurationModel'
      additionalProperties: false
    Metadata:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/Error'
          nullable: true
        validation:
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
          nullable: true
        info:
          type: object
          additionalProperties:
            nullable: true
          nullable: true
      additionalProperties: false
    ExtendedExportConfigurationModel:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
          nullable: true
        datasetId:
          type: string
          format: uuid
        dataset:
          type: string
          nullable: true
        displayFields:
          type: array
          items:
            $ref: '#/components/schemas/ExtendedExportDisplayFieldModel'
          nullable: true
        rankingRule:
          $ref: '#/components/schemas/ExtendedExportRankingRuleModel'
        predictionScoresPerContactCount:
          type: integer
          format: int32
          nullable: true
        predictionScoresPerContactPerClassCount:
          type: array
          items:
            $ref: '#/components/schemas/PredictionScoresPerContactPerClassCount'
          nullable: true
        webhookName:
          type: string
          nullable: true
        destination:
          $ref: '#/components/schemas/ExportDestination'
        bigQueryDestination:
          $ref: '#/components/schemas/BigQueryDestination'
        activeCampaignDestination:
          $ref: '#/components/schemas/ActiveCampaignDestination'
        agillicDestination:
          $ref: '#/components/schemas/AgillicDestination'
        microsoftSqlServerDestination:
          $ref: '#/components/schemas/MicrosoftSqlServerDestination'
        sftpServerDestination:
          $ref: '#/components/schemas/SftpServerDestination'
        microsoftDynamicsDestination:
          $ref: '#/components/schemas/MicrosoftDynamicsDestination'
        lastSynchronization:
          $ref: '#/components/schemas/ExportSynchronization'
        predictionConfiguration:
          $ref: '#/components/schemas/PredictionConfigurationBase'
        contactTypes:
          type: array
          items:
            $ref: '#/components/schemas/ContactType'
          nullable: true
        targetGroup:
          $ref: '#/components/schemas/TargetGroup'
      additionalProperties: false
    Error:
      type: object
      properties:
        code:
          type: string
          nullable: true
        message:
          type: string
          nullable: true
      additionalProperties: false
    ValidationError:
      type: object
      properties:
        property:
          type: string
          nullable: true
        message:
          type: string
          nullable: true
      additionalProperties: false
    ExtendedExportDisplayFieldModel:
      required:
        - alias
        - destinationName
      type: object
      properties:
        alias:
          minLength: 1
          type: string
        destinationName:
          minLength: 1
          type: string
        entityType:
          $ref: '#/components/schemas/EntityType'
        fieldType:
          $ref: '#/components/schemas/DisplayFieldType'
        originalName:
          type: string
          nullable: true
        dataType:
          $ref: '#/components/schemas/DataType'
      additionalProperties: false
    ExtendedExportRankingRuleModel:
      type: object
      properties:
        sortingFields:
          type: array
          items:
            $ref: '#/components/schemas/ExtendedExportSortingFieldModel'
          nullable: true
        previousExportsFilter:
          $ref: '#/components/schemas/ExportCriteriaModel'
        previousResponseFilter:
          type: array
          items:
            $ref: '#/components/schemas/ExtendedResponseCriteriaModel'
          nullable: true
      additionalProperties: false
    PredictionScoresPerContactPerClassCount:
      type: object
      properties:
        className:
          type: string
          nullable: true
        predictionScoresPerClassCount:
          type: integer
          format: int32
      additionalProperties: false
    ExportDestination:
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
        - 9
        - 10
      type: integer
      format: int32
    BigQueryDestination:
      type: object
      properties:
        serviceAccountKey:
          type: string
          nullable: true
        projectId:
          type: string
          nullable: true
        datasetId:
          type: string
          nullable: true
        table:
          type: string
          nullable: true
        writeMode:
          $ref: '#/components/schemas/DestinationWriteMode'
      additionalProperties: false
    ActiveCampaignDestination:
      type: object
      properties:
        url:
          type: string
          nullable: true
        secret:
          type: string
          nullable: true
        prefix:
          type: string
          nullable: true
        lists:
          type: array
          items:
            type: string
          nullable: true
      additionalProperties: false
    AgillicDestination:
      type: object
      properties:
        developerKey:
          type: string
          nullable: true
        secret:
          type: string
          nullable: true
        table:
          type: string
          nullable: true
      additionalProperties: false
    MicrosoftSqlServerDestination:
      type: object
      properties:
        host:
          type: string
          nullable: true
        userId:
          type: string
          nullable: true
        password:
          type: string
          nullable: true
        database:
          type: string
          nullable: true
        table:
          type: string
          nullable: true
        isActiveDirectoryAuthentication:
          type: boolean
      additionalProperties: false
    SftpServerDestination:
      type: object
      properties:
        host:
          type: string
          nullable: true
        username:
          type: string
          nullable: true
        password:
          type: string
          nullable: true
        portNumber:
          type: integer
          format: int32
        fingerprint:
          type: string
          nullable: true
        path:
          type: string
          nullable: true
      additionalProperties: false
    MicrosoftDynamicsDestination:
      type: object
      properties:
        tenantId:
          type: string
          format: uuid
        clientId:
          type: string
          format: uuid
        organizationUrl:
          type: string
          nullable: true
        secret:
          type: string
          nullable: true
        entity:
          type: string
          nullable: true
        entityCollectionName:
          type: string
          nullable: true
        contactRelationshipSchemaName:
          type: string
          nullable: true
      additionalProperties: false
    ExportSynchronization:
      type: object
      properties:
        id:
          type: string
          format: uuid
        exportConfigurationId:
          type: string
          format: uuid
        dataflowJobId:
          type: string
          nullable: true
        status:
          $ref: '#/components/schemas/ExportSynchronizationStatus'
        exportedFilesCount:
          type: integer
          format: int32
          nullable: true
        created:
          type: string
          format: date-time
        updated:
          type: string
          format: date-time
          nullable: true
        fileNames:
          type: array
          items:
            type: string
          nullable: true
          readOnly: true
      additionalProperties: false
    PredictionConfigurationBase:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
          nullable: true
      additionalProperties: false
    ContactType:
      type: object
      properties:
        id:
          type: string
          format: uuid
        dataSetId:
          type: string
          format: uuid
        type:
          type: string
          nullable: true
      additionalProperties: false
    TargetGroup:
      type: object
      properties:
        criteriaList:
          type: array
          items:
            $ref: '#/components/schemas/GroupCriteria'
          nullable: true
        groupScoresByContact:
          type: boolean
        isRelative:
          type: boolean
      additionalProperties: false
    EntityType:
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
        - 9
        - 11
        - 12
        - 13
        - 14
        - 17
        - 18
        - 19
      type: integer
      format: int32
    DisplayFieldType:
      enum:
        - 0
        - 1
        - 2
        - 3
        - 4
        - 5
      type: integer
      format: int32
    DataType:
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
      type: integer
      format: int32
    ExtendedExportSortingFieldModel:
      required:
        - alias
      type: object
      properties:
        alias:
          minLength: 1
          type: string
        entityType:
          $ref: '#/components/schemas/EntityType'
        fieldType:
          $ref: '#/components/schemas/DisplayFieldType'
        direction:
          $ref: '#/components/schemas/SortDirection'
        originalName:
          type: string
          nullable: true
        dataType:
          $ref: '#/components/schemas/DataType'
      additionalProperties: false
    ExportCriteriaModel:
      type: object
      properties:
        appearancesCount:
          maximum: 65535
          minimum: 1
          type: integer
          format: int32
        daysCount:
          maximum: 65535
          minimum: 1
          type: integer
          format: int32
          nullable: true
      additionalProperties: false
    ExtendedResponseCriteriaModel:
      type: object
      properties:
        responseTypeId:
          type: string
          format: uuid
        categoricalValueId:
          type: string
          format: uuid
          nullable: true
        boolValue:
          type: boolean
          nullable: true
        numericValue:
          type: number
          format: double
          nullable: true
        operator:
          $ref: '#/components/schemas/NumericResponseOperator'
        daysCount:
          maximum: 65535
          minimum: 1
          type: integer
          format: int32
          nullable: true
        occurrencesCount:
          maximum: 65535
          minimum: 1
          type: integer
          format: int32
          nullable: true
        responseType:
          type: string
          nullable: true
        categoricalValue:
          type: string
          nullable: true
      additionalProperties: false
    DestinationWriteMode:
      enum:
        - 1
        - 2
      type: integer
      format: int32
    ExportSynchronizationStatus:
      enum:
        - 0
        - 1
        - 2
        - 20
        - 100
      type: integer
      format: int32
    GroupCriteria:
      type: object
      properties:
        name:
          type: string
          nullable: true
        ratio:
          type: number
          format: double
          nullable: true
        count:
          type: integer
          format: int32
          nullable: true
        mode:
          $ref: '#/components/schemas/SelectionMode'
      additionalProperties: false
    SortDirection:
      enum:
        - 0
        - 1
      type: integer
      format: int32
    NumericResponseOperator:
      enum:
        - 1
        - 2
        - 3
        - 4
      type: integer
      format: int32
    SelectionMode:
      enum:
        - 1
        - 2
        - 3
      type: integer
      format: int32
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        implicit:
          authorizationUrl: https://app.allyy.io/api/authentication/connect/authorize
          scopes:
            allyy_api: Allyy API - full access

````