invantive documentationpart of invantive cloud
Invantive Support ForumsLog In / Sign Up

AssociatedRecords_Items: Brevo Associated Record Items

read only REST

  • Catalog: Brevo
  • Schema: CustomObjects
  • Label: Associated Record Items

Get the records associated with an object record Custom objects are only available to Enterprise plans. This feature is in beta. These are subject to change. Returns the records associated with a single source record. Associations of every type are returned together in one paginated list, ordered by association creation time with the most recently created association first.

Identifying the source record Provide exactly one of id, ext_id, email or sms. Passing none of them, or more than one, returns 400. email and sms are only accepted when object_type is contact; using either with any other object type returns 400.

Object types Use the object type exactly as it is defined in your account, for example vehicle for a custom object of that name, or contact for contacts. An object type that does not exist in your account returns 400.

Filtering by associated object type Use type to restrict the response to one or more associated object types, for example ?type=contact&type=garage. Up to 5 types can be requested per call; more returns 400. When type is omitted, associations of every type are returned.

Pagination Results are returned 20 per page. The page size is fixed and cannot be changed. Increase offset by 20 to walk through the pages until has_more is false. An offset beyond the last record returns an empty items array with has_more set to false.

Working with contacts

  • contact is supported both as the source object_type and as an associated object type.
  • An id, ext_id, email or sms that matches no contact returns 404.
  • If several contacts share the same ext_id, email or sms, identify the contact by id to be sure of which one is used.
  • Contacts returned in items carry all of the contact's attributes, with attribute keys in lowercase — email, first_name, last_name, sms, ext_id, and any other contact attribute lowercased.
  • For contacts, ext_id, created_at and updated_at are not returned on object. A contact's external ID is available as attributes.ext_id when it is set.

Can only retrieve data.

Summary

Custom objects are only available to Enterprise plans. This feature is in beta. These are subject to change. Returns the records associated with a single source record. Associations of every type are returned together in one paginated list, ordered by association creation time with the most recently created association first.

Identifying the source record Provide exactly one of id, ext_id, email or sms. Passing none of them, or more than one, returns 400. email and sms are only accepted when object_type is contact; using either with any other object type returns 400.

Object types Use the object type exactly as it is defined in your account, for example vehicle for a custom object of that name, or contact for contacts. An object type that does not exist in your account returns 400.

Filtering by associated object type Use type to restrict the response to one or more associated object types, for example ?type=contact&type=garage. Up to 5 types can be requested per call; more returns 400. When type is omitted, associations of every type are returned.

Pagination Results are returned 20 per page. The page size is fixed and cannot be changed. Increase offset by 20 to walk through the pages until has_more is false. An offset beyond the last record returns an empty items array with has_more set to false.

Working with contacts

  • contact is supported both as the source object_type and as an associated object type.
  • An id, ext_id, email or sms that matches no contact returns 404.
  • If several contacts share the same ext_id, email or sms, identify the contact by id to be sure of which one is used.
  • Contacts returned in items carry all of the contact's attributes, with attribute keys in lowercase — email, first_name, last_name, sms, ext_id, and any other contact attribute lowercased.
  • For contacts, ext_id, created_at and updated_at are not returned on object. A contact's external ID is available as attributes.ext_id when it is set.

API Source

  • Endpoint: /objects/{object_type}/associated-records
  • Operation: get /objects/{object_type}/associated-records

Performance Characteristics

Characteristic Value
Average access latency (ms) 126
Full scan rows per minute 414,000
Point query rows per minute 476
Write rows per minute 496

The result can be cached on the client.

Parameters

Name Data Type Required Default Documentation
email `` Email address of the source contact. Only accepted when object_type is contact. Provide exactly one of id, ext_id, email or sms.
ext_id `` External ID of the source record in your system. Provide exactly one of id, ext_id, email or sms.
id `` Internal Brevo ID of the source record. Must be a positive integer. Provide exactly one of id, ext_id, email or sms.
object_type `` Object type of the source record, exactly as defined in your account. Accepts any object type defined in the account, for example a custom object type or contact.
sms `` Phone number of the source contact, including the country code. It may be given with or without a leading +; percent-encode the + as %2B, because a literal + in a query string is read as a space. Only accepted when object_type is contact. Provide exactly one of id, ext_id, email or sms.

Table Columns

The columns of the table AssociatedRecords_Items are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

Name Data Type Label Required Marks Documentation
has_more char itgen_sib_has_more filters on the platform, writable, ::ancestor.has_more true when at least one more associated record exists after this page.
object_attributes varchar2 itgen_sib_object_attributes writable Key-value pairs of attribute data for the associated record. Each key is the attribute key (e.g., company_name, engine_type), not the attribute label (e.g., "Company Name", "Engine Type"). For category or multiple_category attributes, the value is the option key (not the option label or option ID). For contacts, attribute keys are returned in lowercase, for example email, first_name, last_name, sms and ext_id. The JSON text of the nested object.
object_created_at datetime itgen_sib_object_created_at writable, object.created_at Timestamp when the associated record was created. Not returned for contacts.
object_ext_id varchar2 itgen_sib_object_ext_id writable, object.ext_id External ID of the associated record in your system. Not returned for contacts, whose external ID is available as attributes.ext_id.
object_id int64 itgen_sib_object_id writable, object.id Internal ID of the associated record generated by Brevo.
object_updated_at datetime itgen_sib_object_updated_at writable, object.updated_at Timestamp when the associated record was last updated. Not returned for contacts.
offset int64 itgen_sib_offset filters on the platform, writable, ::ancestor.offset The offset that was requested.
type varchar2 Type writable, type Object type of the associated record.

Release Notes

What changed per release in the tables, columns, attributes and capabilities of the driver: