Adhub API
  1. User
Adhub API
  • User
    • Get user information
      GET
    • Update user
      PATCH
    • Reset API key
      POST
    • Get user balance
      GET
  • Campaigns
    • List campaigns
      GET
    • Create campaign
      POST
    • Get campaign
      GET
    • Update campaign
      PATCH
    • Delete campaign
      DELETE
    • Toggle campaign status
      POST
  • Adverts
    • List adverts
      GET
    • Create advert
      POST
    • Get advert
      GET
    • Update advert
      PATCH
    • Delete advert
      DELETE
  1. User

Reset API key

POST
/user/reset_api_key
Generates a new API key and invalidates the current one

Request

Authorization
API Key
Add parameter in header
Authorization
Example:
Authorization: ********************
or

Responses

🟢200OK
application/json
API key reset successfully
Body

🟠401Unauthorized
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'adhub.plus/api/v1/user/reset_api_key' \
--header 'Authorization: <api-key>'
Response Response Example
200 - Example 1
{
    "success": true,
    "message": "API key reset successfully",
    "data": {
        "api_key": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6"
    }
}
Modified at 2025-11-11 09:40:41
Previous
Update user
Next
Get user balance
Built with