Authorization
This method is used to activate the key and check the validity of the key.
POST https://api.streampay.one/api/login
Request
| Name | Location | Type | Description |
|---|
| key | Body | String | The key by which authorization takes place. |
| hwid | Body | String | User's HWID |
Response
| Name | Type | Description |
|---|
| success | Boolean | The result of the request, true - successful, false - error. |
| error | String | Optional response, if success = false. Possible response options: key_not_found, key_banned, failed_to_activate, wrong_hwid, subscription_expired |
| data | Object | Response data, if success = true. |
Create log
This method allows you to create a log tied to the activation key of your software.
POST https://api.streampay.one/api/logs
Request
| Name | Location | Type | Description |
|---|
| streampay-api-token | Header | String | Access key, can be obtained in the project settings. |
| key | Body | String | The key to which the log is tied. |
| ip | Body | String | User's IP address |
| tag | Body | String | Log tag, you can filter logs by log tag in the control panel. |
| message | Body | String | Log message, useful log payload. |
| hwid | Body | String | User's HWID |
Response
| Name | Type | Description |
|---|
| success | Boolean | The result of the request, true - successful, false - error. |
| error | String | Optional response, if success = false. |