AssociatedRecords: Brevo Associated Records
read only REST
- Katalog:
Brevo - Schéma:
CustomObjects - Label: Associated Records
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
contactis supported both as the sourceobject_typeand as an associated object type.- An
id,ext_id,emailorsmsthat matches no contact returns404. - If several contacts share the same
ext_id,emailorsms, identify the contact byidto be sure of which one is used. - Contacts returned in
itemscarry 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_atandupdated_atare not returned onobject. A contact's external ID is available asattributes.ext_idwhen it is set.
Lze načítat pouze data.
Shrnutí
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
contactis supported both as the sourceobject_typeand as an associated object type.- An
id,ext_id,emailorsmsthat matches no contact returns404. - If several contacts share the same
ext_id,emailorsms, identify the contact byidto be sure of which one is used. - Contacts returned in
itemscarry 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_atandupdated_atare not returned onobject. A contact's external ID is available asattributes.ext_idwhen it is set.
Zdroj API
- Koncový bod:
/objects/{object_type}/associated-records - Operace:
get /objects/{object_type}/associated-records
Provozní charakteristiky
| Charakteristika | Hodnota |
|---|---|
| Průměrná latence přístupu (ms) | 126 |
| Počet řádků při úplném skenování za minutu | 414,000 |
| Počet řádků Query za minutu | 476 |
| Počet řádků za minutu | 496 |
Výsledek lze uložit do mezipaměti na straně klienta.
Parametry
| Jméno | Datový typ | Vyžadováno | Výchozí | Dokumentace |
|---|---|---|---|---|
email |
`` | Email address of the source contact.Only accepted when object_ 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_ |
`` | 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_ is contact.Provide exactly one of id, ext_id, email or sms. |
Sloupce tabulky
Sloupce tabulky AssociatedRecords jsou uvedeny níže. Každý sloupec má datový typ SQL. Pro každý požadovaný sloupec musí být vždy během vkládání a aktualizace zadána nová hodnota, která není nulová (non-null).
| Jméno | Datový typ | Štítek | Vyžadováno | Značky | Dokumentace |
|---|---|---|---|---|---|
has_ |
char |
itgen_sib_has_more | filtry na platformě, zapisovatelné, has_ |
true when at least one more associated record exists after this page. |
|
offset |
int64 |
itgen_sib_offset | filtry na platformě, zapisovatelné, offset |
The offset that was requested. |
Poznámky k Vydání
Jaké změny v tabulkách, sloupcích, atributech a funkcích ovladače nastaly v jednotlivých verzích: