GET
/
webhook
/
poll.didCreate
Poll Didcreate webhook event
curl --request GET \
  --url https://apix.us.amity.co/webhook/poll.didCreate \
  --header 'Authorization: Bearer <token>'
{
  "event": "<string>",
  "data": {
    "polls": [
      {
        "pollId": "<string>",
        "userId": "<string>",
        "userInternalId": "64be1f6cb9b4106b5a6bbf3f",
        "userPublicId": "User123",
        "title": "<string>",
        "question": "<string>",
        "answers": [
          {
            "dataType": "text",
            "data": "<string>",
            "fileId": "<string>",
            "voteCount": 0,
            "isVotedByUser": false,
            "id": "<string>"
          }
        ],
        "answerType": "<string>",
        "closedAt": "<string>",
        "createdAt": "<string>",
        "isVoted": false,
        "status": "open",
        "closedIn": 123
      }
    ],
    "users": [
      {
        "_id": "<string>",
        "path": "<string>",
        "userId": "<string>",
        "userInternalId": "<string>",
        "userPublicId": "<string>",
        "roles": [
          "<string>"
        ],
        "permissions": [
          "MUTE_CHANNEL"
        ],
        "displayName": "<string>",
        "profileHandle": "<string>",
        "description": "<string>",
        "avatarFileId": "<string>",
        "avatarCustomUrl": "<string>",
        "flagCount": 123,
        "hashFlag": {
          "bits": 123,
          "hashes": 123,
          "hash": [
            "<string>"
          ]
        },
        "metadata": {},
        "isGlobalBan": true,
        "isBrand": true,
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z",
        "isDeleted": true
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

Poll Information

The response is of type object.