Counting your domains

Your branded domains collection size can be read with a HTTP GET on the count domains endpoint

If you want to get the number of branded domains matching a given set of conditions (e.g. answering how many active branded domains are in my account?), you can attach filters to your request:


Parameter nameTypeConstraintsDescription
activebooleanoptionalFilter branded domains depending on whether they can be used to branded short links or not
typestring enum
- user
- service
optionalFilter branded domains depending on their type (own by user or service domains like
GETting domains collection size
$ curl '' \
-H 'apikey: YOUR_API_KEY'
A numeric value is provided back:
    "count": 42

Handling errors

HTTP StatusError typeDescription
403403 - Invalid formatInvalid query parameters format. Double check value for property query parameter. Details about validation failure in message field