Account
The account endpoint is used to manage a WunderUpdates account.
/account
GET
Displays information about the account.
Request
bash
curl -X GET https://api.wunderupdates.com/v1/account \
-H "x-api-key: YOUR_API_KEY"
Response
bash
{
"account": {
"prefix": "abcde123",
"activationUsage": 0,
"activationLimit": 1
},
"status": 200,
"products": {
"themes": [],
"plugins": []
}
}
/account/license
Manages the account license.
GET
Displays information about the account license.
Request
bash
curl -X GET https://api.wunderupdates.com/v1/account/license \
-H "x-api-key: YOUR_API_KEY"
Response
bash
{
"status": 200,
"license": {
"limit": 10,
"expires": 99999999
}
}
POST
Adds or replaces the existing license with a new license key.
Request
bash
curl -X POST https://api.wunderupdates.com/v1/account/license \
-H "x-api-key: YOUR_API_KEY"
-d '{ "license": "YOUR_LICENSE_KEY" }'
Response
bash
{
"status": 200,
"license": {
"limit": 10,
"expires": 99999999
}
}
/account/tokens
Manages API tokens on the account. Note that the first API token must be created using the account dashboard and we generally recommend using that if you need to create more tokens.
GET
Displays information about the account API tokens
Request
bash
curl -X GET https://api.wunderupdates.com/v1/account/tokens \
-H "x-api-key: YOUR_API_KEY"
Response
bash
{
"status": 200,
"tokens": [
{
"name": "my-first-api-token",
"expires": 1237123123
},
{
"name": "external-dev-studio-1",
"expires": 1337123123
}
]
}
POST
Generates a new API token for the account. Note that the actual token is only displayed in the response to this request, it's not possible to see it again.
Request
bash
curl -X POST https://api.wunderupdates.com/v1/account/tokens \
-H "x-api-key: YOUR_API_KEY"
-d '{ "name": "a-token-name", "expires": 365 }''
Parameters
- Name: A string only containing a-z, 0-9, dashes (-) or periods (.). Must be unique for the account.
- Expires: Token expiry time in days. A value between 1-365 or -1 (non expiring token).
Response
bash
{
"status": 200,
"token": {
"token": "ABCD1234-ABCD-ABCD-ABCD-ABCD1234",
"expires": 99999999,
"name": "a-token-name"
}
}
/account/tokens/$name
DELETE
Deletes an API token from the account.
Request
bash
curl -X DELETE https://api.wunderupdates.com/v1/account/tokens/token-name \
-H "x-api-key: YOUR_API_KEY"
Parameters
- Name: The token name
Response
bash
{
"status": 200,
"message: null
}