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,
  "groups": "group1\ngroup2\ngroup3"
}'
{
  "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 invites from groups order

Example:

"add"

service
integer
required

Service ID for the invites from groups 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

groups
string
required

List of groups separated by '\r\n' or '\n' from which invites are needed

Example:

"group1\ngroup2\ngroup3"

Response

200
application/json
OK
order
integer
Example:

23501