curl --request POST \
  --url https://{domain}-be.glean.com/rest/api/v1/activity \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "events": [
    {
      "url": "https://example.com/",
      "action": "HISTORICAL_VIEW",
      "timestamp": "2000-01-23T04:56:07.000Z"
    },
    {
      "url": "https://example.com/search?q=query",
      "action": "SEARCH",
      "timestamp": "2000-01-23T04:56:07.000Z",
      "params": {
        "query": "query"
      }
    },
    {
      "url": "https://example.com/",
      "action": "VIEW",
      "timestamp": "2000-01-23T04:56:07.000Z",
      "params": {
        "duration": 20,
        "referrer": "https://example.com/document"
      }
    }
  ]
}'

Authorizations

Authorization
string
header
required

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

Body

application/json
events
object[]
required

Response

200

OK