GET
/
visitors
/
visits
/
v1
Retrieve visits
curl --request GET \
  --url https://api.spacebring.com/visitors/visits/v1 \
  --header 'Authorization: Basic <encoded-value>'
{
  "visits": [
    {
      "code": "102288",
      "comment": "<string>",
      "checkInDate": "2023-11-07T05:31:56Z",
      "checkOutDate": "2023-11-07T05:31:56Z",
      "createDate": "2023-11-07T05:31:56Z",
      "date": "2023-11-07T05:31:56Z",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "location": {
        "address": "<string>",
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "timezoneId": "<string>",
        "title": "<string>"
      },
      "locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "userHost": {
        "about": "<string>",
        "email": "<string>",
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>",
        "phoneNumber": "<string>",
        "photoUrl": "<string>",
        "surname": "<string>"
      },
      "userRefHost": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "userRefVisitor": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "visitor": {
        "email": "<string>",
        "name": "<string>",
        "phoneNumber": "<string>",
        "surname": "<string>"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

See our authentication documentation for how to authorize your requests

Headers

spacebring-network-id
string<uuid>

The id of the network. Required when using bearer token authentication

Query Parameters

locationRef
string<uuid>
required

The id of the location.

userRefHost
string<uuid>

The id of the user, host of the visit.

createDate
object

The date filter of items.

limit
integer
default:25

The number of items to return

Required range: 1 <= x <= 100
nextPageToken
string

nextPageToken retrieved from a previous request

Response

200
application/json

OK

The response is of type object.