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

# Get available prompts.

> Retrieves the list of available prompts for a specified member, 
optionally filtered by device type.



## OpenAPI

````yaml openapi/prompt-v1.json GET /core/v1/interaction/available/details
openapi: 3.0.1
info:
  title: Prompt.Api
  version: v1
servers:
  - url: https://{host}/prompt
    description: Your Lobyco environment
    variables:
      host:
        default: your-environment.lobyco.net
        description: >-
          The API host for your Lobyco environment. Replace it with the host you
          were given — this placeholder does not resolve.
security:
  - Bearer: []
paths:
  /core/v1/interaction/available/details:
    get:
      tags:
        - Interaction
      summary: Get available prompts.
      description: "Retrieves the list of available prompts for a specified member, \r\noptionally filtered by device type."
      parameters:
        - name: memberId
          in: query
          description: Unique identifier of the member whose prompts are being requested.
          schema:
            type: string
        - name: deviceType
          in: query
          description: Optional filter to return prompts specific to the given device type.
          schema:
            $ref: >-
              #/components/schemas/Prompt.ApplicationService.Infrastructure.Enums.DeviceType
      responses:
        '200':
          description: Success
          content:
            text/plain:
              schema:
                $ref: >-
                  #/components/schemas/Prompt.Api.DTO.Responses.GetAvailablePromptsForMemberResponse
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Prompt.Api.DTO.Responses.GetAvailablePromptsForMemberResponse
            text/json:
              schema:
                $ref: >-
                  #/components/schemas/Prompt.Api.DTO.Responses.GetAvailablePromptsForMemberResponse
        '204':
          description: No Content
        '400':
          description: Bad Request
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
components:
  schemas:
    Prompt.ApplicationService.Infrastructure.Enums.DeviceType:
      enum:
        - Mobile
        - Web
      type: string
    Prompt.Api.DTO.Responses.GetAvailablePromptsForMemberResponse:
      type: object
      properties:
        prompts:
          type: array
          items:
            $ref: >-
              #/components/schemas/Prompt.ApplicationService.CQRS.Models.PromptPopup
          description: Collection of available prompts
          nullable: true
      additionalProperties: false
    Microsoft.AspNetCore.Mvc.ProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
      additionalProperties: {}
    Prompt.ApplicationService.CQRS.Models.PromptPopup:
      type: object
      properties:
        promptId:
          type: integer
          format: int32
        headline:
          type: string
          nullable: true
        body:
          type: string
          nullable: true
        imageUrl:
          type: string
          nullable: true
        approveButtonText:
          type: string
          nullable: true
        declineButtonText:
          type: string
          nullable: true
        type:
          $ref: '#/components/schemas/Prompt.Persistence.Models.PromptType'
        metadata:
          $ref: >-
            #/components/schemas/Prompt.ApplicationService.CQRS.Models.PromptPopupMetadata
      additionalProperties: false
    Prompt.Persistence.Models.PromptType:
      enum:
        - ThirdPartyConsent
        - Regular
        - PreferredStore
        - PushConsent
      type: string
    Prompt.ApplicationService.CQRS.Models.PromptPopupMetadata:
      type: object
      properties:
        addLinkToTermsAndConditions:
          type: boolean
          nullable: true
        consents:
          type: array
          items:
            type: string
          nullable: true
        color:
          type: string
          nullable: true
        useWebWrapper:
          type: boolean
          nullable: true
      additionalProperties: false
  securitySchemes:
    Bearer:
      type: apiKey
      description: >-
        Opaque Authorization header using the Bearer scheme. Example:
        "Authorization: Bearer {token}"
      name: Authorization
      in: header

````