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

# Get a current survey definition

> Published or archived. Drafts/deleted/out-of-workspace/out-of-scope return generic 404. No historical definitions. Requires the surveys:read permission.



## OpenAPI

````yaml /openapi.yaml get /v1/surveys/{survey_id}
openapi: 3.1.0
info:
  title: Novella API
  version: 1.0.0
  description: >-
    Read surveys, responses, respondents, and survey analytics in your Novella
    workspace.
servers:
  - url: https://api.novellahq.com
    description: Production
security:
  - WorkspaceApiKey: []
tags:
  - name: System
  - name: Surveys
  - name: Responses
  - name: Respondents
  - name: Analytics
externalDocs:
  description: Novella API guides
  url: https://docs.novellahq.com
paths:
  /v1/surveys/{survey_id}:
    get:
      tags:
        - Surveys
      summary: Get a current survey definition
      description: >-
        Published or archived. Drafts/deleted/out-of-workspace/out-of-scope
        return generic 404. No historical definitions. Requires the surveys:read
        permission.
      operationId: getSurvey
      parameters:
        - $ref: '#/components/parameters/survey_idPath'
      responses:
        '200':
          description: Successful response.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
            Cache-Control:
              $ref: '#/components/headers/CacheControl'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SurveyEnvelope'
              example:
                data:
                  id: 35cdd1d7-cb61-40aa-bdfa-7da240617703
                  name: Customer feedback
                  type: csat
                  status: published
                  created_at: '2026-09-01T10:00:00Z'
                  updated_at: '2026-09-30T18:00:00Z'
                  questions:
                    - key: rating
                      type: rating
                      label: How satisfied are you?
                      required: true
                      rating_scale:
                        minimum: 1
                        maximum: 5
                        step: 1
                    - key: tags
                      type: multi_select
                      label: What worked well?
                      required: false
                      options:
                        - value: support
                          label: Support
                          applies_to_rating_values:
                            - 4
                            - 5
                    - key: comment
                      type: text
                      label: Anything else?
                      required: false
                meta:
                  request_id: req_example
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '405':
          $ref: '#/components/responses/MethodNotAllowed'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
components:
  parameters:
    survey_idPath:
      name: survey_id
      in: path
      required: true
      description: Stable opaque public ID.
      schema:
        $ref: '#/components/schemas/PublicId'
  headers:
    RequestId:
      description: Server-generated request correlation ID.
      schema:
        type: string
    CacheControl:
      description: private, no-store on business resource responses.
      schema:
        type: string
      example: private, no-store
    RateLimitLimit:
      description: Workspace plan allowance per UTC minute.
      schema:
        type: integer
        minimum: 1
      example: 60
    RateLimitRemaining:
      description: Remaining allowance shared across all keys.
      schema:
        type: integer
        minimum: 0
      example: 59
    RateLimitReset:
      description: Unix seconds at next UTC minute boundary.
      schema:
        type: integer
      example: 1790791260
    WWWAuthenticate:
      description: Bearer challenge.
      schema:
        type: string
      example: Bearer
    Allow:
      description: Allowed business operation.
      schema:
        type: string
      example: GET
    RetryAfter:
      description: Whole seconds to wait before retrying. Required on quota 429.
      schema:
        type: integer
        minimum: 1
      example: 30
  schemas:
    SurveyEnvelope:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Survey'
        meta:
          $ref: '#/components/schemas/RequestMeta'
      required:
        - data
        - meta
      additionalProperties: false
    PublicId:
      type: string
      format: uuid
      pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
      description: Stable opaque public ID. Lowercase UUIDv4. Consumers must not parse it.
    Survey:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/PublicId'
        name:
          type: string
        type:
          type: string
          minLength: 1
          description: >-
            Survey-type machine value from Novella; not a presentation
            configuration.
        status:
          type: string
          enum:
            - published
            - archived
        created_at:
          $ref: '#/components/schemas/UtcTimestamp'
        updated_at:
          $ref: '#/components/schemas/UtcTimestamp'
        questions:
          type: array
          items:
            $ref: '#/components/schemas/Question'
      required:
        - id
        - name
        - type
        - status
        - created_at
        - updated_at
        - questions
      additionalProperties: false
      description: Current definitions only. No drafts or historical label snapshots.
    RequestMeta:
      type: object
      properties:
        request_id:
          type: string
          minLength: 1
      required:
        - request_id
      additionalProperties: false
    ErrorEnvelope:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      required:
        - error
      additionalProperties: false
    UtcTimestamp:
      type: string
      format: date-time
      pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,6})?Z$
      description: UTC RFC3339 timestamp with Z suffix.
    Question:
      type: object
      properties:
        key:
          type: string
          minLength: 1
          description: Stable semantic field key, for example rating, tags or comment.
        type:
          type: string
          enum:
            - rating
            - multi_select
            - text
        label:
          type: string
        required:
          type: boolean
        options:
          type: array
          items:
            $ref: '#/components/schemas/AnswerOption'
        rating_scale:
          $ref: '#/components/schemas/RatingScale'
      required:
        - key
        - type
        - label
        - required
      additionalProperties: false
    ErrorDetail:
      type: object
      properties:
        type:
          type: string
          enum:
            - validation_error
            - authentication_error
            - authorization_error
            - not_found_error
            - method_error
            - rate_limit_error
            - server_error
        code:
          type: string
          minLength: 1
        message:
          type: string
        request_id:
          type: string
          minLength: 1
      required:
        - type
        - code
        - message
        - request_id
      additionalProperties: false
    AnswerOption:
      type: object
      properties:
        value:
          type: string
          minLength: 1
          description: Current machine value, not a numeric internal ID.
        label:
          type: string
        applies_to_rating_values:
          type: array
          items:
            type: number
      required:
        - value
        - label
      additionalProperties: false
    RatingScale:
      type: object
      properties:
        minimum:
          type: number
        maximum:
          type: number
        step:
          type: number
          exclusiveMinimum: 0
      required:
        - minimum
        - maximum
        - step
      additionalProperties: false
  responses:
    BadRequest:
      description: >-
        400: Invalid query parameter. Quota headers appear only after
        eligible-key attribution.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        Cache-Control:
          $ref: '#/components/headers/CacheControl'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            error:
              type: validation_error
              code: invalid_parameter
              message: Invalid query parameter.
              request_id: req_example
    Unauthorized:
      description: >-
        401: A valid API key is required. Quota headers appear only after
        eligible-key attribution.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        Cache-Control:
          $ref: '#/components/headers/CacheControl'
        WWW-Authenticate:
          $ref: '#/components/headers/WWWAuthenticate'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            error:
              type: authentication_error
              code: invalid_credentials
              message: A valid API key is required.
              request_id: req_example
    Forbidden:
      description: >-
        403: This API key does not have the required permission. Quota headers
        appear only after eligible-key attribution.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        Cache-Control:
          $ref: '#/components/headers/CacheControl'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            error:
              type: authorization_error
              code: forbidden
              message: Access denied.
              request_id: req_example
    NotFound:
      description: >-
        404: Resource not found. Quota headers appear only after eligible-key
        attribution.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        Cache-Control:
          $ref: '#/components/headers/CacheControl'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            error:
              type: not_found_error
              code: resource_not_found
              message: Resource not found.
              request_id: req_example
    MethodNotAllowed:
      description: >-
        405: Unsupported HTTP method. Quota headers appear only after
        eligible-key attribution.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        Cache-Control:
          $ref: '#/components/headers/CacheControl'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
        Allow:
          $ref: '#/components/headers/Allow'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            error:
              type: method_error
              code: method_not_allowed
              message: Unsupported HTTP method.
              request_id: req_example
    TooManyRequests:
      description: >-
        429: Workspace request limit exceeded. Quota headers appear only after
        eligible-key attribution.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        Cache-Control:
          $ref: '#/components/headers/CacheControl'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            error:
              type: rate_limit_error
              code: rate_limit_exceeded
              message: Workspace request limit exceeded.
              request_id: req_example
    InternalError:
      description: >-
        500: An unexpected error occurred. Quota headers appear only after
        eligible-key attribution.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        Cache-Control:
          $ref: '#/components/headers/CacheControl'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            error:
              type: server_error
              code: internal_error
              message: An unexpected error occurred.
              request_id: req_example
    ServiceUnavailable:
      description: >-
        503: The requested service is temporarily unavailable. Quota headers
        appear only after eligible-key attribution.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        Cache-Control:
          $ref: '#/components/headers/CacheControl'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            error:
              type: server_error
              code: service_unavailable
              message: The requested service is temporarily unavailable.
              request_id: req_example
  securitySchemes:
    WorkspaceApiKey:
      type: http
      scheme: bearer
      bearerFormat: Random 32-byte Base64URL secret
      description: Send your workspace API key as an Authorization Bearer token.

````

## Related topics

- [Novella API](https://docs.novellahq.com/index.md)
- [Get aggregate survey analytics](https://docs.novellahq.com/api-reference/analytics/get-aggregate-survey-analytics.md)
- [List visible surveys](https://docs.novellahq.com/api-reference/surveys/list-visible-surveys.md)
- [Get current response state](https://docs.novellahq.com/api-reference/responses/get-current-response-state.md)
- [API quickstart](https://docs.novellahq.com/quickstart.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.