Key parameters

Key parameters

Example call - all possible standard parameters

This example is from the activities API. However, similar parameters can be used in most API calls.

ParameterDescriptionExamplesMore Info
ActionDefines the API call.action=updateTypically CRUD verbs
AuthorizationOAuth 2.0 Bearer access token (HTTP header, not a query param)Authorization: Bearer <access_token>See Synergist API Authentication for how to obtain a token
Version numberAPI versionversion=6Incremented for each new version of Synergist
CompanySynergist companycompany=1
ActivityidID of a specific recordactivityid=4833Filters
ViewID for a pre-existing query (called a "view")view=-1700Table of views
CollectionData collection supportcollection=<collection ID> /newAdvanced option
TypeThe data areatype=activityWhich API to use
PageData page to returnpage=1Page numbering starts at 0
RowsNumber of records/rows to return.rows=20 = return all rows
StyleWhich kind of data is requiredstyle=modelstructure / style=modeldataUsing models / Meta-data
ModelstructureDefines the fields returnedModelstructure=activitylistUsing models
InputJSON arraysee examplePassing data array to an API request