For the complete documentation index, see llms.txt. This page is also available as Markdown.

Units

From the API, you are able to obtain a list of current active Units (venues / locations).

The API user is linked to an Airship account, and all the units associated to that account will be returned, paginated in the response.

Endpoint

https://api.airship.co.uk/v1/account/units

Query parameters

Parameter
Type
Description

groups

boolean

Optional. Set to true to include each unit's folders and groups.

Use ?groups=true to return folder IDs and names. Each folder includes its group IDs and names.

Response

Fields

Field
Notes

Airships unique unit ID for the unit. It is required when sending Airship data

The unit name

Each Airship account has a 'root' account (typically named Head Office) - this is used for data that can't be associated with a specific location. Only 1 root account can be setup for each account, and is identified by this flag

Fields returned with groups=true

Field
Notes

folders

The unit's folders. Returned only when groups=true.

folders[].id

Airship's unique folder ID.

folders[].name

The folder name.

folders[].groups

Groups within the folder.

folders[].groups[].id

Airship's unique group ID.

folders[].groups[].name

The group name.

Example response

Example response with groups

Last updated