Create poll

API to create a poll

Fields Information

Poll

Key

Type

Description

question required

string

The question/title of the Poll

identifier

string

Can be used to pass in custom identifier, eg - user id, email, etc.

data

object

A flexible data field to store any meta data with each option

Option

Minimum 2 Options are required in a poll (Just making the obvious known 😅 )

Key

Type

Description

text required

string

String to store the option's text

data

object

A flexible data field to store any meta data with each option

Creating a Poll

POST https://api.pollsapi.com/v1/create/poll

This endpoint allows you to get free cakes.

Headers

Name
Type
Description

Content-Type

string

application/json

api-key

string

API Key for your account

Request Body

Name
Type
Description

identifier

string

Can be used to store a custom identifier

data

object

A flexible data field to store custom metadata

question

string

The question/title of the poll you are creating

options

array

List of options the poll should have(Min. 2). Please check below for the structure of Option

Example cURL request

Request Body

Last updated

Was this helpful?