# Authorities at an airport

## Get all the authorities at an airport

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/{aid}/airportAuthorities/all`

#### Path Parameters

| Name                                  | Type   | Description                |
| ------------------------------------- | ------ | -------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the airport |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK " %}
The detailed properties of one returned set item can be found in the [Airport Authority](https://docs.aviowiki.com/data-models/authority#airport-authority) documentation.

```json
[
	{
		"type": "CUSTOMS",
		"name": "CBP General Aviation",
		"landsideArea": null,
		"airsideArea": null,
		"customsDetails": null,
		"parent": "APT-KS1J-8E0L",
		"aid": "AAU-HZK3-O7WM",
		"kind": "AIRPORT"
	},
	{
		"type": "OWNER",
		"name": "Port Authority of New York and New Jersey",
		"landsideArea": null,
		"airsideArea": null,
		"customsDetails": null,
		"parent": "APT-KS1J-8E0L",
		"aid": "AAU-VD0K-XUFQ",
		"kind": "AIRPORT"
	}
]
```

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

## Get paged authorities at an airport

<mark style="color:blue;">`GET`</mark> `https://api.aviowiki.com/airports/{aid}/airportAuthorities`

#### Path Parameters

| Name                                  | Type   | Description                |
| ------------------------------------- | ------ | -------------------------- |
| aid<mark style="color:red;">\*</mark> | String | Aviowiki ID of the airport |

#### Query Parameters

| Name | Type   | Description                                                                     |
| ---- | ------ | ------------------------------------------------------------------------------- |
| page | Number | The page number for pagination, starting from \`0\` to indicate the first page. |
| size | Number | The number of results in a page, for pagination.                                |

#### Headers

| Name          | Type   | Description                              |
| ------------- | ------ | ---------------------------------------- |
| Authorization | String | An API Token using Bearer authorization. |

{% tabs %}
{% tab title="200: OK " %}
The properties of the pagination can be found at [pagination](https://docs.aviowiki.com/conventions/pagination "mention"). The detailed properties of one returned set item can be found in the [Airport Authority](https://docs.aviowiki.com/data-models/authority#airport-authority) documentation.

```json
{
	"page": {
		"number": 0,
		"size": 10,
		"totalPages": 1,
		"totalResults": 2
	},
	"content": [
		{
			"type": "CUSTOMS",
			"name": "CBP General Aviation",
			"landsideArea": null,
			"airsideArea": null,
			"customsDetails": null,
			"parent": "APT-KS1J-8E0L",
			"aid": "AAU-HZK3-O7WM",
			"kind": "AIRPORT"
		},
		{
			"type": "OWNER",
			"name": "Port Authority of New York and New Jersey",
			"landsideArea": null,
			"airsideArea": null,
			"customsDetails": null,
			"parent": "APT-KS1J-8E0L",
			"aid": "AAU-VD0K-XUFQ",
			"kind": "AIRPORT"
		}
	]
}
```

{% endtab %}

{% tab title="403: Forbidden No API token was provided or it was invalid." %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}
