Flow: Authenticate and list organizations
1
Get a token
Use your API key ID and secret to obtain a Bearer token:
2
List organizations
Call the organizations endpoint with the token and account ID:The response includes organizations accessible to your account.
Flow: Create an organization and add assets
1
Create an organization
id from the response — you will use it as the organization_id when creating assets.2
Create an asset in that organization
3
Verify the asset was created
Flow: Filter and sort assets
Use bracket-notation operators to build precise queries. See Filtering for the full operator reference.1
Filter by property values
Find important contacts of a specific type:
2
Add date ranges and sorting
Narrow to contacts created this year, newest first:
3
Select specific fields
Return only the fields you need to reduce payload size:
Flow: Paginate through a large result set
When a collection has more items than a single page can return, iterate usinglimit and offset. See Paginating results for details.
1
Fetch the first page
total, limit, and offset. For example: { "items": [...], "total": 120, "limit": 50, "offset": 0 }.2
Fetch subsequent pages
Increment Stop when
offset by limit until you have all results:offset >= total.Flow: Link related assets
Related assets let you create ad-hoc relationships between any two assets, even across different asset types.1
Add a related asset
Link a contact to a configuration asset:
2
List related assets
Flow: Upload a file to an asset
File uploads use a three-step process: create the file record, upload to the presigned URL, then mark the upload as complete.1
Create a file record
This returns a presigned S3 upload URL:Save the
file.id and presignedUploadUrl from the response.2
Upload the file
Use the presigned URL to upload the file directly to storage:
3
Mark the upload as complete
4
Download the file later
Get a presigned download URL: