curl --request POST \
  --url https://api.litlyx.com/api/v1/visits \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "rows": [
    "<string>"
  ],
  "limit": 100,
  "from": "`2024-01-01T00:00:00+0000`",
  "to": "`current date as ISO`"
}'
[
  {}
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
rows
string[]
required

Array of strings selecting the rows you want the API to return. Possible values: website,page,referrer,browser,country,continent,os,device,created_at,session,flowHash.

limit
number
default:
100

How many element the API should return.

from
string
default:
`2024-01-01T00:00:00+0000`

From what day the API will return the data. Format: ISO.

to
string
default:
`current date as ISO`

To what day the API will return the data. Format: ISO.

Response

200
application/json
Success

The response is of type object[]. The value depends on rows you will specify in the body. It will return an object with the specified rows.