# WiFi

WiFi is where you'll be able to view who owns a certain device using the MAC address or create a WiFi session for a customer.

## Check if device belongs to guest

<mark style="color:blue;">`GET`</mark> `/v1/guests/wifi`

#### Query Parameters

| Name                                  | Type   | Description           |
| ------------------------------------- | ------ | --------------------- |
| mac<mark style="color:red;">\*</mark> | String | Mac address of device |

{% tabs %}
{% tab title="200: OK " %}

```typescript
{
     "id": string,
     "email": string,
     "first": string,
     "last": string
}
```

{% endtab %}
{% endtabs %}

## Create WiFi session

<mark style="color:green;">`POST`</mark> `/v1/guests/:guest_id/wifi`

#### Request Body

| Name                                          | Type   | Description           |
| --------------------------------------------- | ------ | --------------------- |
| user\_agent<mark style="color:red;">\*</mark> | String | User agent of device  |
| mac<mark style="color:red;">\*</mark>         | String | MAC address of device |
| venue\_id<mark style="color:red;">\*</mark>   | String |                       |
| event\_id                                     | String |                       |

{% tabs %}
{% tab title="200: OK " %}

{% endtab %}
{% endtabs %}
