# Pictures of a provider

## Get provider pictures

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

#### Path Parameters

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

#### Headers

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

{% tabs %}
{% tab title="200: OK Provider details" %}
The detailed properties of the returned object can be found in the documentation of the [Provider](https://docs.aviowiki.com/data-models/provider) data model.

```json
[
  {
    "path": "filereferences/1033_a5c16faf270c4859a80a57e391504f2f.jpeg",
    "name": "Geneva FBO updated image web.jpg",
    "description": null,
    "size": 232891,
    "aid": "FIL-Q7O5-H0VP"
  }
]
```

{% endtab %}

{% tab title="400: Bad Request" %}
Occurs when an invalid request is made.

```
{
  "error": "Invalid request",
  "timestamp": "2025-02-27T11:18:21.299Z",
  "status": 400,
  "message": "Bad request",
  "path": "/providers/PRV-Y1K4-7Y6W/pictures/all"
}
```

{% endtab %}

{% tab title="Default Deserialization Exception" %}
Occurs if the response cannot be processed.

```
{
  "error": "string",
  "timestamp": "2025-02-27T11:18:21.299Z",
  "status": 0,
  "message": "string",
  "path": "string"
}
```

{% endtab %}
{% endtabs %}

#### Accessing the Image

To display or download the image, prepend the following base URL to the `path` field:

```
https://files.aviowiki.com/
```

**Example:**

If the API returns:

```json
  "path": "filereferences/1033_a5c16faf270c4859a80a57e391504f2f.jpeg",
  "name": "Geneva FBO updated image web.jpg"
}
```

Then the full image URL is:

```
https://files.aviowiki.com/filereferences/1033_a5c16faf270c4859a80a57e391504f2f.jpeg
```
