Pixaven Blog

New API feature: Querying Account Status

New API feature: Querying Account Status

If you’d like to programatically get the metadata pertaining to your Pixaven account you can now easily do so. A newly introduced /1.0/account endpoint will respond with information about your subscription such as plan level and billing period. You will also receive full information about your monthly quota consumption: total quota, used quota, and remaining quota.

To retrieve your account status simply send a GET request to https://api.pixaven.com/1.0/account. For example with cURL:

curl -u your-api-key: https://api.pixaven.com/1.0/account

You can expect the following response from the API:

{
    "success": true,
    "code": 200,
    "company": "Acme Inc.",
    "subscription": {
        "name": "Startup",
        "period": "Monthly"
    },
    "quota": {
        "total": 250000,
        "used": 124081,
        "remaining": 125919
    }
}

We have also updated the API documentation with this newly introduced endpoint.

Have questions about querying account status or requests for other features? Don’t hesitate to contact us anytime.

About the author

Przemek Matylla is the Founder and CEO of Pixaven currently living in Berlin. You can follow him on Twitter or connect with him on LinkedIn.