POST
/
api
/
v2
curl --request POST \
  --url https://undrctrl.id/api/v2/ \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "apiKey",
  "action": "add",
  "service": 123,
  "link": "https://example.com/page",
  "quantity": 100,
  "answer_number": 1
}'
{
  "order": 23501
}

Body

application/json
key
string
required

The API key for authentication

Example:

"apiKey"

action
string
required

Action to be performed, set to add for poll order

Example:

"add"

service
integer
required

Service ID for the poll order

Example:

123

Link to the page for the order

Example:

"https://example.com/page"

quantity
integer
required

Needed quantity for the order

Example:

100

answer_number
integer
required

Answer number of the poll to be targeted

Example:

1

Response

200
application/json
OK
order
integer
Example:

23501