Skip to content

Dropbox: Retrieves team events

Dropbox teamLog.getEvents: arguments, response, policy and SDK examples.

← Team log operations · Get started

Operation dropbox.team_log_get_events

Provider route: POST /2/team_log/get_events. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/dropbox with npm, or alter-sdk-dropbox with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { DropboxIntegration } from "@alter-ai/dropbox";
async function execute(input: Parameters<DropboxIntegration["teamLog"]["getEvents"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new DropboxIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.teamLog.getEvents(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_dropbox import DropboxIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = DropboxIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.team_log.get_events(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
headersobjectOptionalAdditional keys: not allowed
headers.Dropbox-API-Path-RootModelOptionalExpand Deletes a group — request body — headers Dropbox-API-Path-Root
headers.Dropbox-API-Select-UserstringOptional
headers.Dropbox-API-Select-AdminstringOptional
bodyModelRequired within parentExpand Retrieves team events — request body — body

Referenced models: Deletes a group — request body — headers Dropbox-API-Path-Root, Retrieves team events — request body — body

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Retrieves team events — response body

Referenced models: Retrieves team events — response body

217 more schemas are linked from the tables above, on the schema pages.

Deletes a group — request body — headers Dropbox-API-Path-Root
FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)stringAlternativeOne of: home
$ (anyOf 2)objectAlternative
$ (anyOf 2)..tagstringRequired within parentMust equal: home
$ (anyOf 3)objectAlternative
$ (anyOf 3)..tagstringRequired within parentMust equal: root
$ (anyOf 3).rootstringRequired within parentPattern: ^(?:[-_0-9a-zA-Z:]+)$
$ (anyOf 4)objectAlternative
$ (anyOf 4)..tagstringRequired within parentMust equal: namespace_id
$ (anyOf 4).namespace_idstringRequired within parentPattern: ^(?:[-_0-9a-zA-Z:]+)$
$ (anyOf 5)objectAlternativeA tag this contract version does not list (Dropbox's other).
$ (anyOf 5)..tagstringRequired within parentPattern: ^(?!(?:home|root|namespace_id)$)
Retrieves team events — response body
FieldTypePresenceDescription and constraints
$objectRoot
eventsarrayRequired within parent
events[]ModelEach itemExpand Retrieves team events — response body — events item
cursorstringRequired within parent
has_morebooleanRequired within parent

Referenced models: Retrieves team events — response body — events item

Retrieves team events — request body — body
FieldTypePresenceDescription and constraints
$objectRoot
limitintegerOptionalMinimum: 1
Maximum: 1000
account_idJSONOptional
account_id (anyOf 1)stringAlternativeMaximum length: 40
Minimum length: 40
account_id (anyOf 2)nullAlternative
timeJSONOptional
time (anyOf 1)ModelAlternativeExpand Retrieves team events — request body — body time Time range
time (anyOf 2)nullAlternative
categoryJSONOptional
category (anyOf 1)ModelAlternativeExpand Retrieves team events — request body — body category Category of events in event audit log
category (anyOf 2)nullAlternative
event_typeJSONOptional
event_type (anyOf 1)ModelAlternativeExpand Retrieves team events — request body — body event type The type of the event
event_type (anyOf 2)nullAlternative

Referenced models: Retrieves team events — request body — body time Time range, Retrieves team events — request body — body category Category of events in event audit log, Retrieves team events — request body — body event type The type of the event

Retrieves team events — response body — events item
FieldTypePresenceDescription and constraints
$objectRootAn audit log event.
timestampstringRequired within parent
event_categoryModelRequired within parentExpand Retrieves team events — response body — events item event category
actorJSONOptional
actor (anyOf 1)ModelAlternativeExpand Retrieves team events — response body — events item actor The entity who performed the action
actor (anyOf 2)nullAlternative
originJSONOptional
origin (anyOf 1)ModelAlternativeExpand Retrieves team events — response body — events item origin access method, geo location
origin (anyOf 2)nullAlternative
involve_non_team_memberJSONOptional
involve_non_team_member (anyOf 1)booleanAlternative
involve_non_team_member (anyOf 2)nullAlternative
contextJSONOptional
context (anyOf 1)ModelAlternativeExpand Retrieves team events — response body — events item context The primary entity on which the action was done
context (anyOf 2)nullAlternative
participantsJSONOptional
participants (anyOf 1)arrayAlternative
participants (anyOf 1)[]ModelEach itemExpand Retrieves team events — response body — events item participants array item
participants (anyOf 2)nullAlternative
assetsJSONOptional
assets (anyOf 1)arrayAlternative
assets (anyOf 1)[]ModelEach itemExpand Retrieves team events — response body — events item assets array item
assets (anyOf 2)nullAlternative
event_typeModelRequired within parentExpand Retrieves team events — response body — events item event type
detailsModelRequired within parentExpand Retrieves team events — response body — events item details

Referenced models: Retrieves team events — response body — events item actor The entity who performed the action, Retrieves team events — response body — events item assets array item, Retrieves team events — response body — events item context The primary entity on which the action was done, Retrieves team events — response body — events item event category, Retrieves team events — response body — events item details, Retrieves team events — response body — events item event type, Retrieves team events — response body — events item origin access method, geo location, Retrieves team events — response body — events item participants array item

Retrieves team events — request body — body time Time range
FieldTypePresenceDescription and constraints
$objectRootTime range.
start_timeJSONOptional
start_time (anyOf 1)stringAlternative
start_time (anyOf 2)nullAlternative
end_timeJSONOptional
end_time (anyOf 1)stringAlternative
end_time (anyOf 2)nullAlternative
Retrieves team events — response body — events item actor The entity who performed the action
FieldTypePresenceDescription and constraints
$JSONRootThe entity who performed the action.
$ (anyOf 1)stringAlternativeKnown values: anonymous, dropbox
$ (anyOf 2)objectAlternative
$ (anyOf 2)..tagstringRequired within parentMust equal: admin
$ (anyOf 2).adminModelRequired within parentExpand Retrieves team events — response body — events item actor The entity who performed the action tag user user
$ (anyOf 3)objectAlternative
$ (anyOf 3)..tagstringRequired within parentMust equal: anonymous
$ (anyOf 4)objectAlternative
$ (anyOf 4)..tagstringRequired within parentMust equal: app
$ (anyOf 4).appModelRequired within parentExpand Retrieves team events — response body — events item details tag app link team details app info
$ (anyOf 5)objectAlternative
$ (anyOf 5)..tagstringRequired within parentMust equal: dropbox
$ (anyOf 6)objectAlternative
$ (anyOf 6)..tagstringRequired within parentMust equal: reseller
$ (anyOf 6).reseller_namestringRequired within parent
$ (anyOf 6).reseller_emailstringRequired within parentMaximum length: 255
$ (anyOf 7)objectAlternative
$ (anyOf 7)..tagstringRequired within parentMust equal: user
$ (anyOf 7).userModelRequired within parentExpand Retrieves team events — response body — events item actor The entity who performed the action tag user user
$ (anyOf 8)objectAlternativeA tag this contract version does not list (Dropbox's other).
$ (anyOf 8)..tagstringRequired within parentPattern: ^(?!(?:admin|anonymous|app|dropbox|reseller|user)$)

Referenced models: Retrieves team events — response body — events item details tag app link team details app info, Retrieves team events — response body — events item actor The entity who performed the action tag user user

SDK function policy ID: dropbox.team_log_get_events. Catalog operation: team_log/get_events. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["events.read"]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.