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

# Create integration survey

> Create a survey on the upstream platform via this integration. Returns metadata only.



## OpenAPI

````yaml /openapi/program.openapi.json post /integrations/{integrationId}/surveys
openapi: 3.1.0
info:
  title: Questra Program API
  version: 0.0.1
  description: >-
    REST API for the Questra Program product. Browser users authenticate through
    Questra Auth SSO; automation uses workspace-scoped API keys (`Authorization:
    Bearer qpk_live_…`). API keys carry scopes enforced before handlers.
    Outbound webhooks follow Standard Webhooks (at-least-once delivery;
    consumers must be idempotent).
servers:
  - url: /v1
    description: Program API base path
security: []
paths:
  /integrations/{integrationId}/surveys:
    post:
      tags:
        - Integration surveys
      summary: Create integration survey
      description: >-
        Create a survey on the upstream platform via this integration. Returns
        metadata only.
      parameters:
        - schema:
            type: string
            minLength: 1
            example: community-decipher
          required: true
          name: integrationId
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateIntegrationSurveyRequest'
      responses:
        '201':
          description: Survey created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationSurveyResponse'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorBody'
        '404':
          description: Integration not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBody'
components:
  schemas:
    CreateIntegrationSurveyRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          example: Brand Tracker Q3
        status:
          allOf:
            - $ref: '#/components/schemas/IntegrationSurveyStatus'
            - description: Defaults to `draft` when omitted.
      required:
        - name
    IntegrationSurveyResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/IntegrationSurvey'
      required:
        - data
    ValidationErrorBody:
      type: object
      properties:
        error:
          type: string
          enum:
            - validation_error
        message:
          type: string
        details: {}
      required:
        - error
    ErrorBody:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        resource:
          type: string
        slug:
          type: string
        file_id:
          type: string
        endpoint_id:
          type: string
        event_id:
          type: string
        delivery_id:
          type: string
        api_key_id:
          type: string
        integration_id:
          type: string
        audit_id:
          type: string
        status:
          type: string
        details: {}
        question_ids:
          type: array
          items:
            type: string
        survey_ids:
          type: array
          items:
            type: string
        revisions:
          type: array
          items:
            type: number
      required:
        - error
    IntegrationSurveyStatus:
      type: string
      enum:
        - draft
        - test
        - live
        - active
        - paused
        - closed
        - archived
    IntegrationSurvey:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          example: SV_9K2mPqLx1aBcDeF
          description: >-
            Provider's unique survey id. Opaque string — format varies by
            platform (UUID, SV_*, path segments, etc.).
        name:
          type: string
          example: Brand Tracker Q3
        status:
          $ref: '#/components/schemas/IntegrationSurveyStatus'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - name
        - status
        - created_at
        - updated_at

````