Search accounts
POST/accounts/_search
Search accounts by name and/or domain. If both are specified, it will perform an AND operation. Support:
Provider | Search By |
---|---|
Apollo | name only |
Salesloft | name, domain |
Outreach | name, domain |
Note: only read_from_cache=false
is supported at the moment.
Request
Query Parameters
Whether to include raw data fetched from the 3rd party provider.
Number of results to return per page. (Max: 1000)
The pagination cursor value
Whether to read from Supaglue's Managed Destination cache or to read directly from the provider.
NOTE: read_from_cache=true
requires you to have the object synced to the Supaglue Managed Destination.
Header Parameters
The customer ID that uniquely identifies the customer in your application
The provider name
- application/json
Body
required
filter objectrequired
The criteria to upsert on. If both name and domain are specified, it would perform an AND operation. If more than one account is found that matches, then an error will be thrown.
The name of the account to upsert on. Supported for Outreach, Salesloft, and Apollo.
The domain of the account to upsert on. Only supported for Outreach and Salesloft.
Responses
- 200
Paginated accounts
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
pagination objectrequired
records object[]required
raw_data object
{
"pagination": {
"next": "eyJpZCI6IjQyNTc5ZjczLTg1MjQtNDU3MC05YjY3LWVjYmQ3MDJjNmIxNCIsInJldmVyc2UiOmZhbHNlfQ==",
"previous": "eyJpZCI6IjBjZDhmYmZkLWU5NmQtNDEwZC05ZjQxLWIwMjU1YjdmNGI4NyIsInJldmVyc2UiOnRydWV9",
"total_count": 100
},
"records": [
{
"id": 54312,
"owner_id": "23e640fe-6105-4a11-a636-3aa6b6c6e762",
"name": "My Company",
"domain": "mycompany.com",
"created_at": "2022-02-27T00:00:00Z",
"updated_at": "2022-02-27T00:00:00Z",
"is_deleted": false,
"last_modified_at": "2022-02-27T00:00:00Z",
"raw_data": {}
}
]
}