Ad endpoints

Endpoints relating to ads

How to format urls:

  • Callback: https://ads.luaauth.com/verify/:CALLBACK_ID
  • Postback: https://ads.luaauth.com/postback/:POSTBACK_ID

Getting provider info

GET /ads/providers

Response:

Creating a new system

POST /ads/systems/new

Payload:

Key Type Required Default
project_id String True
name String True
key_duration Number False 86400000
max_keys Number False 1
allow_extending Boolean False True
max_duration Number False 604800000

Response:

Getting systems

GET /ads/systems

Response:

Getting a system

GET /ads/systems/:system_id

Params:

Key Description
system_id The systems id

Response:

Editing a system

POST /ads/systems/:system_id/edit

Params:

Key Description
system_id The systems id

Payload:

Key Type Required
project_id String False
name String False
key_duration Number False
max_keys Number False
allow_extending Boolean False
max_duration Number False

Response:

Changing a systems custom url

POST /ads/systems/:system_id/url

A-Z, a-z, 0-9 and - are the only characters allowed in the custom url

Params:

Key Description
system_id The systems id

Payload:

Key Type Required
url String False

Response:

Deleting a system

POST /ads/systems/:system_id/remove

Params:

Key Description
system_id The systems id

Response:

Getting checkpoints

GET /ads/systems/:system_id/checkpoints

Params:

Key Description
system_id The systems id

Response:

Preparing a new checkpoint

POST /ads/systems/:system_id/checkpoints/prepare

Params:

Key Description
system_id The systems id

Response:

Creating a new checkpoint

GET /ads/systems/:system_id/checkpoints/new

You must prepare a checkpoint before being able to create one

Params:

Key Description
system_id The systems id

Payload:

Key Type Options Required
name String True
url String True
provider Enum linkvertise OR lootlabs OR work.ink True
provider_data JSON True

Response:

Getting a checkpoint

GET /ads/checkpoints/:checkpoint_id

Params:

Key Description
checkpoint_id The checkpoints id

Response:

Editing a checkpoint

POST /ads/checkpoints/:checkpoint_id/edit

Params:

Key Description
checkpoint_id The checkpoints id

Payload:

Key Type Options Required
name String False
url String False
provider Enum linkvertise OR lootlabs OR work.ink False
provider_data JSON False

Response:

Swapping a checkpoint

POST /ads/checkpoints/:checkpoint_id/swap

Params:

Key Description
checkpoint_id The checkpoints id

Payload:

Key Type Required
index Number True

Response:

Deleting a checkpoint

POST /ads/checkpoints/:checkpoint_id/remove

Params:

Key Description
checkpoint_id The checkpoints id

Response: