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

# On Options Load

> Handle external_select options loading (block_suggestion payload).

This endpoint is called by Slack when a user interacts with an external_select
element. It supports dynamic repository search with pagination.

The endpoint:
1. Authenticates the Slack user
2. Searches for repositories matching the user's query
3. Returns up to 100 options for the dropdown

Note: "No Repository" is handled by a separate button in the form, so it's
not included in the dropdown options. Error cases return an empty list.

Configuration: Set the Options Load URL in Slack App settings to:
https://your-domain/slack/on-options-load



## OpenAPI

````yaml /openapi/openhands-cloud.json post /slack/on-options-load
openapi: 3.1.0
info:
  title: OpenHands
  description: 'OpenHands: Code Less, Make More'
  version: 0.0.1
servers: []
security: []
paths:
  /slack/on-options-load:
    post:
      summary: On Options Load
      description: >-
        Handle external_select options loading (block_suggestion payload).


        This endpoint is called by Slack when a user interacts with an
        external_select

        element. It supports dynamic repository search with pagination.


        The endpoint:

        1. Authenticates the Slack user

        2. Searches for repositories matching the user's query

        3. Returns up to 100 options for the dropdown


        Note: "No Repository" is handled by a separate button in the form, so
        it's

        not included in the dropdown options. Error cases return an empty list.


        Configuration: Set the Options Load URL in Slack App settings to:

        https://your-domain/slack/on-options-load
      operationId: on_options_load_slack_on_options_load_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}

````