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

# Get survey permissions

> Who has access to this survey and with which role, whose results each person can see and who sees its combined results, and what the caller can do. Anyone with access can read it.



## OpenAPI

````yaml /openapi.json get /v1/surveys/{survey_id}/permissions
openapi: 3.0.3
info:
  title: Doozy Public API
  version: 1.0.0
  description: >-
    The Doozy Public API allows you to programmatically access your
    organization's data.


    ## Authentication


    All API requests require an API key passed in the `x-api-key` header.


    ```

    x-api-key: dzy_xxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

    ```


    API keys can be generated and managed through the Doozy dashboard. Each key
    is associated with a user account and inherits that user's permissions.


    ## Rate Limiting


    API requests are rate limited. Rate limiting is handled by Cloudflare. If
    you exceed the rate limit, you'll receive a 429 Too Many Requests response.


    ## Pagination


    List endpoints support cursor-based pagination using `limit` and
    `starting_after` query parameters.
  contact:
    name: Doozy Support
    email: support@doozy.live
    url: https://help.doozy.live/api
servers:
  - url: https://api.doozy.live
    description: Production
security:
  - apiKey: []
tags:
  - name: Quizzes
    description: Quiz analytics and reporting endpoints
  - name: Tracks
    description: Track management and analytics endpoints
  - name: Surveys
    description: Survey and poll analytics endpoints
  - name: Introductions
    description: Doozy Roulette and Matchmaking introduction endpoints
  - name: Account
    description: 'Owner-only workspace settings: user provisioning and feature permissions'
paths:
  /v1/surveys/{survey_id}/permissions:
    get:
      tags:
        - Surveys
      summary: Get survey permissions
      description: >-
        Who has access to this survey and with which role, whose results each
        person can see and who sees its combined results, and what the caller
        can do. Anyone with access can read it.
      parameters:
        - schema:
            type: string
            minLength: 1
            maxLength: 128
            pattern: ^[A-Za-z0-9_-]+$
            description: The unique identifier of the survey
            example: 2XOADZ5X978jbJUbveb9
          required: true
          description: The unique identifier of the survey
          name: survey_id
          in: path
      responses:
        '200':
          description: Survey permissions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SurveyPermissions'
        '401':
          description: Authentication required - missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Not allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Survey not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - apiKey: []
components:
  schemas:
    SurveyPermissions:
      type: object
      properties:
        object:
          type: string
          enum:
            - permissions
        acl:
          type: array
          items:
            $ref: '#/components/schemas/ActivityAclMember'
        result_access:
          $ref: '#/components/schemas/ResultAccess'
        combined_results:
          $ref: '#/components/schemas/CombinedResults'
        caller:
          $ref: '#/components/schemas/ActivityPermissions'
      required:
        - object
        - acl
        - result_access
        - combined_results
        - caller
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - api_error
                - authentication_error
                - invalid_request_error
                - rate_limit_error
                - not_found_error
                - permission_error
              description: The type of error returned
              example: invalid_request_error
            code:
              type: string
              nullable: true
              enum:
                - api_key_required
                - api_key_invalid
                - firebase_id_token_required
                - firebase_id_token_invalid
                - appcheck_token_required
                - appcheck_token_invalid
                - account_id_required
                - account_id_invalid
                - api_access_disabled
                - api_access_unauthorized
                - api_access_role_not_allowed
                - parameter_missing
                - parameter_invalid
                - resource_already_exists
                - resource_in_use
                - resource_not_found
                - permission_denied
                - not_implemented
                - internal_error
                - rate_limit_exceeded
                - upstream_error
                - user_not_found
                - user_not_connected_to_slack
                - user_missing_roles_for_track
                - user_already_on_track
                - user_already_completed_track
                - enrollee_already_terminal
                - step_already_sent
                - step_already_due
                - track_not_active
                - track_not_enrollable
                - action_forbidden
                - api_access_plan_not_supported
                - plan_not_supported
                - draft_stale
                - forms_stale
                - invalid_cursor
                - program_archived
                - program_not_active
                - program_track_not_live
                - invalid_status_transition
                - mentorship_not_proposed
                - mentorship_ended
                - approval_waiting_on_mentor
                - no_reachable_manager
                - application_already_decided
                - participant_not_in_program
                - participant_already_answered
                - participant_not_mentor
                - reminder_pending
                - mentee_not_waiting
                - mentor_not_active
                - mentor_full
                - mentor_at_total
                - mentor_unchanged
                - same_person
                - invite_expired
                - invite_revoked
                - asset_upload_incomplete
                - asset_upload_rejected
                - null
              description: Machine-readable error code for specific error conditions
              example: resource_not_found
            message:
              type: string
              description: Human-readable error message
              example: 'No such quiz: tYYueINbgmmyss8O3LiD'
            param:
              type: string
              nullable: true
              description: The parameter related to the error, if applicable
              example: id
            doc_url:
              type: string
              format: uri
              description: URL to documentation about this error
              example: https://docs.doozy.live/api/errors#resource_not_found
            request_id:
              type: string
              description: ID of the request, for support
              example: req_8KSh4mNxQ1aZbPoLcVrT
          required:
            - type
            - code
            - message
            - request_id
      required:
        - error
    ActivityAclMember:
      type: object
      properties:
        user_id:
          type: string
          description: Doozy user ID
          example: 06gPNJbvBuM2i8BKRXct
        display_name:
          type: string
          description: Member's display name
          example: John Doe
        email:
          type: string
          description: Member's email address
          example: john@example.com
        slack_user_id:
          type: string
          nullable: true
          description: Member's Slack user ID
          example: U1234567890
        image_token:
          type: string
          nullable: true
          description: Legacy profile image token (resolves to a signed avatar URL)
          example: U2cIK8VPYKqQxpfEz7iG
        image_url:
          $ref: '#/components/schemas/ProfileImageUrls'
        role:
          $ref: '#/components/schemas/ActivityAclRole'
        inherited_from:
          $ref: '#/components/schemas/PermissionsInheritedFrom'
      required:
        - user_id
        - display_name
        - email
        - slack_user_id
        - image_token
        - image_url
        - role
        - inherited_from
      additionalProperties: false
    ResultAccess:
      type: object
      properties:
        managers:
          type: object
          nullable: true
          properties:
            scope:
              $ref: '#/components/schemas/ManagerResultScope'
          required:
            - scope
          additionalProperties: false
          description: >-
            Lets each person's managers see their results. Null when managers
            can't.
        viewers:
          type: array
          items:
            $ref: '#/components/schemas/ResultViewerGrant'
          maxItems: 50
      required:
        - managers
        - viewers
      description: >-
        Who sees each person's results besides people with access to the item.
        Anonymous results are never shown.
    CombinedResults:
      type: string
      enum:
        - access_list
        - recipients
      description: >-
        access_list: only people with access see the combined results.
        recipients: the people it was sent to also see the totals, without
        names, comments or downloads.
    ActivityPermissions:
      type: object
      properties:
        role:
          type: string
          nullable: true
          enum:
            - admin
            - editor
            - viewer
            - null
          description: The caller's role on this item, or null when they have no access
        can_view_results:
          type: boolean
        can_clone:
          type: boolean
        can_manage:
          type: boolean
        can_edit:
          type: boolean
        can_publish:
          type: boolean
        can_pause:
          type: boolean
        can_resume:
          type: boolean
        can_delete:
          type: boolean
        can_activate:
          type: boolean
        can_manage_access:
          type: boolean
      required:
        - role
        - can_view_results
        - can_clone
        - can_manage
        - can_edit
        - can_publish
        - can_pause
        - can_resume
        - can_delete
        - can_activate
        - can_manage_access
    ProfileImageUrls:
      type: object
      nullable: true
      properties:
        image_24:
          type: string
        image_32:
          type: string
        image_48:
          type: string
        image_72:
          type: string
        image_192:
          type: string
        image_512:
          type: string
        image_1024:
          type: string
        image_original:
          type: string
      description: Slack-sourced profile image URLs by size (preferred avatar)
    ActivityAclRole:
      type: string
      enum:
        - admin
        - editor
        - viewer
      description: >-
        viewer sees the item and its results; editor also edits and publishes
        it; admin also activates, pauses, sends, deletes it and manages access
      example: editor
    PermissionsInheritedFrom:
      type: object
      nullable: true
      properties:
        type:
          type: string
          enum:
            - track
        id:
          type: string
        name:
          type: string
      required:
        - type
        - id
        - name
      description: Null when the entry is on this item itself
    ManagerResultScope:
      type: string
      enum:
        - direct_reports
        - subtree
      description: >-
        direct_reports: a manager sees the people who report to them. subtree:
        also everyone below those people.
    ResultViewerGrant:
      type: object
      properties:
        principal:
          type: object
          properties:
            type:
              type: string
              enum:
                - user
                - group
            id:
              type: string
              minLength: 1
              maxLength: 128
              pattern: ^[A-Za-z0-9_-]+$
          required:
            - type
            - id
          additionalProperties: false
        people:
          $ref: '#/components/schemas/ResultPeopleScope'
      required:
        - principal
        - people
      additionalProperties: false
      description: A user or group who sees the results of a set of people
    ResultPeopleScope:
      oneOf:
        - type: object
          properties:
            type:
              type: string
              enum:
                - direct_reports
            of:
              type: string
              minLength: 1
              maxLength: 128
              pattern: ^[A-Za-z0-9_-]+$
          required:
            - type
            - of
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - subtree
            of:
              type: string
              minLength: 1
              maxLength: 128
              pattern: ^[A-Za-z0-9_-]+$
          required:
            - type
            - of
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - group
            group_id:
              type: string
              minLength: 1
              maxLength: 128
              pattern: ^[A-Za-z0-9_-]+$
          required:
            - type
            - group_id
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - department
            value:
              type: string
              minLength: 1
          required:
            - type
            - value
          additionalProperties: false
        - type: object
          properties:
            type:
              type: string
              enum:
                - account
          required:
            - type
          additionalProperties: false
      description: The people whose results a viewer grant covers
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication. Generate keys in the Doozy dashboard.

````

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