> For the complete documentation index, see [llms.txt](https://docs.labii.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.labii.com/api/methods/visitor.md).

# Visitor

## Method & Permission

| API            | GET                                              | POST | PUT | PATCH | DELETE |
| -------------- | ------------------------------------------------ | ---- | --- | ----- | ------ |
| Visitor List   | Admin, Project Admin, Project Edit, Project View | -    | -   | -     | -      |
| Visitor Detail | Admin, Project Admin, Project Edit, Project View | -    | -   | -     | -      |

## Visitor List

<mark style="color:blue;">`GET`</mark> `/tables/visitor/list/{level}/{sid}/{serializer}/`

#### Path Parameters

| Name       | Type   | Description      |
| ---------- | ------ | ---------------- |
| level      | string | organization     |
| sid        | string | organization sid |
| serializer | string |                  |

#### Query Parameters

| Name       | Type   | Description |
| ---------- | ------ | ----------- |
| row\_\_sid | string | The row sid |

#### Headers

| Name  | Type   | Description |
| ----- | ------ | ----------- |
| token | string |             |

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

```yaml
# serializer = name
{
    "page_size": 10,
    "page_number": 1,
    "page_count": 1,
    "count": 7,
    "next": null,
    "previous": null,
    "add_permission": true,
    "results": [
        {
            "sid": "yBEH0a40x15AFKPUZ50",
            "name": "XXX at 2021-03-23 06:24:27.804126+00:00"
        },
          ...
    ]
}
# serializer = list
{
    "page_size": 10,
    "page_number": 1,
    "page_count": 1,
    "count": 7,
    "next": null,
    "previous": null,
    "add_permission": true,
    "results": [
        {
            "sid": "yBEH0a40x15AFKPUZ50",
            "updated_by": "XXX",
            "date_created": "2021-03-23T06:24:27.804126Z",
            "change_permission": false
        },
          ...
    ]
}
# serializer = detail
{
    "page_size": 10,
    "page_number": 1,
    "page_count": 1,
    "count": 7,
    "next": null,
    "previous": null,
    "add_permission": true,
    "results": [
        {
            "sid": "yBEH0a40x15AFKPUZ50",
            "row": {
                "sid": "psvy0a40x6e7crwBGLQV1",
                "name": "EP579: Test Name 20210321184523"
            },
            "updated_by": "XXX",
            "date_created": "2021-03-23T06:24:27.804126Z",
            "change_permission": false
        },
          ...
    ]
}
```

{% endtab %}

{% tab title="406 " %}

```
Invalid row__sid (xxx)
```

{% endtab %}
{% endtabs %}

## Visitor Detail

<mark style="color:blue;">`GET`</mark> `/tables/visitor/detail/{sid}/`

#### Path Parameters

| Name | Type   | Description |
| ---- | ------ | ----------- |
| sid  | string |             |

#### Headers

| Name  | Type   | Description |
| ----- | ------ | ----------- |
| token | string |             |

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

```yaml
{
    "sid": "yBEH0a40x15AFKPUZ50",
    "row": {
        "sid": "psvy0a40x6e7crwBGLQV1",
        "name": "EP579: Test Name 20210321184523"
    },
    "updated_by": "XXX",
    "date_created": "2021-03-23T06:24:27.804126Z",
    "change_permission": false
},
```

{% endtab %}
{% endtabs %}
