/ Platform API
Platform API
    Chat Platform API v3
    Chat Platform API
    Chat Platform API
    Version 3

    Get a poll option

    Copy link

    This action retrieves a poll option.


    HTTP request

    Copy link
    GET https://api-{application_id}.sendbird.com/v3/polls/{poll_id}/options/{option_id}
    

    Parameters

    Copy link

    The following table lists the parameters that this action supports.

    Required
    Parameter nameTypeDescription

    poll_id

    integer

    Specifies the unique ID of the poll that the option belongs to.

    option_id

    integer

    Specifies the unique ID of the option.


    Response

    Copy link

    If successful, this action returns a poll option resource in the response body.

    {
        "text": "April 22 (Fri)",
        "created_at": 1657268547,
        "updated_at": 0,
        "created_by": "Kay",
        "vote_count": 1,
        "poll_id": 2217,
        "id": 3593
    }
    

    In the case of an error, an error object is returned. A detailed list of error codes is available here.