Endpoints relating to ads
How to format urls:
https://ads.luaauth.com/verify/:CALLBACK_ID
https://ads.luaauth.com/postback/:POSTBACK_ID
GET /ads/providers
Response:
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:
GET /ads/systems
Response:
GET /ads/systems/:system_id
Params:
| Key | Description |
| system_id | The systems id |
Response:
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:
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:
POST /ads/systems/:system_id/remove
Params:
| Key | Description |
| system_id | The systems id |
Response:
GET /ads/systems/:system_id/checkpoints
Params:
| Key | Description |
| system_id | The systems id |
Response:
POST /ads/systems/:system_id/checkpoints/prepare
Params:
| Key | Description |
| system_id | The systems id |
Response:
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:
GET /ads/checkpoints/:checkpoint_id
Params:
| Key | Description |
| checkpoint_id | The checkpoints id |
Response:
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:
POST /ads/checkpoints/:checkpoint_id/swap
Params:
| Key | Description |
| checkpoint_id | The checkpoints id |
Payload:
| Key | Type | Required |
| index | Number | True |
Response:
POST /ads/checkpoints/:checkpoint_id/remove
Params:
| Key | Description |
| checkpoint_id | The checkpoints id |
Response: