This connector is optimized for AI agents. For the data replication connector, see Sendgrid .
This is the full reference documentation for the Sendgrid agent connector.
Supported entities and actions
The Sendgrid connector supports the following entities and actions.
Entity Actions Contacts List , Get , Search Lists List , Get , Search Segments List , Get , Search Campaigns List , Search Singlesends List , Get , Search Templates List , Get , Search Singlesend Stats List , Search Bounces List , Search Blocks List , Search Spam Reports List Invalid Emails List , Search Global Suppressions List , Search Suppression Groups List , Get , Search Suppression Group Members List , Search
Returns a sample of contacts. Use the export endpoint for full lists.
Python SDK
await sendgrid . contacts . list ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "contacts", "action": "list" }'
Response Schema Records Field Name Type Description idstringemailnull | stringfirst_namenull | stringlast_namenull | stringunique_namenull | stringalternate_emailsnull | arrayaddress_line_1null | stringaddress_line_2null | stringcitynull | stringstate_province_regionnull | stringcountrynull | stringpostal_codenull | stringphone_numbernull | stringwhatsappnull | stringlinenull | stringfacebooknull | stringlist_idsnull | arraysegment_idsnull | arraycustom_fieldsnull | objectcreated_atnull | stringupdated_atnull | string
Returns the full details and all fields for the specified contact.
Python SDK
await sendgrid . contacts . get ( id = "<str>" )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "contacts", "action": "get", "params": { "id": "<str>" } }'
Parameters
Parameter Name Type Required Description idstringYes The ID of the contact
Response Schema Records Field Name Type Description idstringemailnull | stringfirst_namenull | stringlast_namenull | stringunique_namenull | stringalternate_emailsnull | arrayaddress_line_1null | stringaddress_line_2null | stringcitynull | stringstate_province_regionnull | stringcountrynull | stringpostal_codenull | stringphone_numbernull | stringwhatsappnull | stringlinenull | stringfacebooknull | stringlist_idsnull | arraysegment_idsnull | arraycustom_fieldsnull | objectcreated_atnull | stringupdated_atnull | string
Search and filter contacts records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.
Python SDK
await sendgrid . contacts . search ( query = { "filter" : { "eq" : { "address_line_1" : "<str>" } } } )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "contacts", "action": "search", "params": { "query": {"filter": {"eq": {"address_line_1": "<str>"}}} } }'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description address_line_1stringAddress line 1 address_line_2stringAddress line 2 alternate_emailsarrayAlternate email addresses citystringCity contact_idstringUnique contact identifier used by Airbyte countrystringCountry created_atstringWhen the contact was created custom_fieldsobjectCustom field values emailstringContact email address facebookstringFacebook ID first_namestringContact first name last_namestringContact last name linestringLINE ID list_idsarrayIDs of lists the contact belongs to phone_numberstringPhone number postal_codestringPostal code state_province_regionstringState, province, or region unique_namestringUnique name for the contact updated_atstringWhen the contact was last updated whatsappstringWhatsApp number
Response Schema Field Name Type Description dataarrayList of matching records metaobjectPagination metadata meta.has_morebooleanWhether additional pages are available meta.cursorstring | nullCursor for next page of results meta.took_msnumber | nullQuery execution time in milliseconds data[].address_line_1stringAddress line 1 data[].address_line_2stringAddress line 2 data[].alternate_emailsarrayAlternate email addresses data[].citystringCity data[].contact_idstringUnique contact identifier used by Airbyte data[].countrystringCountry data[].created_atstringWhen the contact was created data[].custom_fieldsobjectCustom field values data[].emailstringContact email address data[].facebookstringFacebook ID data[].first_namestringContact first name data[].last_namestringContact last name data[].linestringLINE ID data[].list_idsarrayIDs of lists the contact belongs to data[].phone_numberstringPhone number data[].postal_codestringPostal code data[].state_province_regionstringState, province, or region data[].unique_namestringUnique name for the contact data[].updated_atstringWhen the contact was last updated data[].whatsappstringWhatsApp number
Lists
Lists List
Returns all marketing contact lists.
Python SDK
await sendgrid . lists . list ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "lists", "action": "list" }'
Parameters
Parameter Name Type Required Description page_sizeintegerNo Maximum number of lists to return
Response Schema Records Field Name Type Description idstringnamestringcontact_countinteger_metadatanull | object
Field Name Type Description nextnull | string
Lists Get
Returns a specific marketing list by ID.
Python SDK
await sendgrid . lists . get ( id = "<str>" )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "lists", "action": "get", "params": { "id": "<str>" } }'
Parameters
Parameter Name Type Required Description idstringYes The ID of the list
Response Schema Records Field Name Type Description idstringnamestringcontact_countinteger_metadatanull | object
Lists Search
Search and filter lists records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.
Python SDK
await sendgrid . lists . search ( query = { "filter" : { "eq" : { "_metadata" : { } } } } )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "lists", "action": "search", "params": { "query": {"filter": {"eq": {"_metadata": {}}}} } }'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description _metadataobjectMetadata about the list resource contact_countintegerNumber of contacts in the list idstringUnique list identifier namestringName of the list
Response Schema Field Name Type Description dataarrayList of matching records metaobjectPagination metadata meta.has_morebooleanWhether additional pages are available meta.cursorstring | nullCursor for next page of results meta.took_msnumber | nullQuery execution time in milliseconds data[]._metadataobjectMetadata about the list resource data[].contact_countintegerNumber of contacts in the list data[].idstringUnique list identifier data[].namestringName of the list
Segments
Segments List
Returns all segments (v2).
Python SDK
await sendgrid . segments . list ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "segments", "action": "list" }'
Response Schema Records Field Name Type Description idstringnamestringcontacts_countintegercreated_atnull | stringupdated_atnull | stringsample_updated_atnull | stringnext_sample_updatenull | stringparent_list_idsnull | arrayquery_versionstringstatusnull | object
Segments Get
Returns a specific segment by ID.
Python SDK
await sendgrid . segments . get ( segment_id = "<str>" )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "segments", "action": "get", "params": { "segment_id": "<str>" } }'
Parameters
Parameter Name Type Required Description segment_idstringYes The ID of the segment
Response Schema Records Field Name Type Description idstringnamestringcontacts_countintegercreated_atnull | stringupdated_atnull | stringsample_updated_atnull | stringnext_sample_updatenull | stringparent_list_idsnull | arrayquery_versionstringstatusnull | object
Segments Search
Search and filter segments records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.
Python SDK
await sendgrid . segments . search ( query = { "filter" : { "eq" : { "contacts_count" : 0 } } } )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "segments", "action": "search", "params": { "query": {"filter": {"eq": {"contacts_count": 0}}} } }'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description contacts_countintegerNumber of contacts in the segment created_atstringWhen the segment was created idstringUnique segment identifier namestringSegment name next_sample_updatestringWhen the next sample update will occur parent_list_idsarrayIDs of parent lists query_versionstringQuery version used sample_updated_atstringWhen the sample was last updated statusobjectSegment status details updated_atstringWhen the segment was last updated
Response Schema Field Name Type Description dataarrayList of matching records metaobjectPagination metadata meta.has_morebooleanWhether additional pages are available meta.cursorstring | nullCursor for next page of results meta.took_msnumber | nullQuery execution time in milliseconds data[].contacts_countintegerNumber of contacts in the segment data[].created_atstringWhen the segment was created data[].idstringUnique segment identifier data[].namestringSegment name data[].next_sample_updatestringWhen the next sample update will occur data[].parent_list_idsarrayIDs of parent lists data[].query_versionstringQuery version used data[].sample_updated_atstringWhen the sample was last updated data[].statusobjectSegment status details data[].updated_atstringWhen the segment was last updated
Campaigns
Campaigns List
Returns all marketing campaigns.
Python SDK
await sendgrid . campaigns . list ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "campaigns", "action": "list" }'
Parameters
Parameter Name Type Required Description page_sizeintegerNo Maximum number of campaigns to return per page
Response Schema Records Field Name Type Description idstringnamestringstatusstringchannelsnull | arrayis_abtestbooleancreated_atnull | stringupdated_atnull | string
Field Name Type Description nextnull | string
Campaigns Search
Search and filter campaigns records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.
Python SDK
await sendgrid . campaigns . search ( query = { "filter" : { "eq" : { "channels" : [ ] } } } )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "campaigns", "action": "search", "params": { "query": {"filter": {"eq": {"channels": []}}} } }'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description channelsarrayChannels for this campaign created_atstringWhen the campaign was created idstringUnique campaign identifier is_abtestbooleanWhether this campaign is an A/B test namestringCampaign name statusstringCampaign status updated_atstringWhen the campaign was last updated
Response Schema Field Name Type Description dataarrayList of matching records metaobjectPagination metadata meta.has_morebooleanWhether additional pages are available meta.cursorstring | nullCursor for next page of results meta.took_msnumber | nullQuery execution time in milliseconds data[].channelsarrayChannels for this campaign data[].created_atstringWhen the campaign was created data[].idstringUnique campaign identifier data[].is_abtestbooleanWhether this campaign is an A/B test data[].namestringCampaign name data[].statusstringCampaign status data[].updated_atstringWhen the campaign was last updated
Singlesends
Singlesends List
Returns all single sends.
Python SDK
await sendgrid . singlesends . list ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "singlesends", "action": "list" }'
Parameters
Parameter Name Type Required Description page_sizeintegerNo Maximum number of single sends to return per page
Response Schema Records Field Name Type Description idstringnamestringstatusstringcategoriesnull | arraysend_atnull | stringsend_tonull | objectemail_confignull | objectis_abtestbooleancreated_atstringupdated_atstring
Field Name Type Description nextnull | string
Singlesends Get
Returns details about one single send.
Python SDK
await sendgrid . singlesends . get ( id = "<str>" )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "singlesends", "action": "get", "params": { "id": "<str>" } }'
Parameters
Parameter Name Type Required Description idstringYes The ID of the single send
Response Schema Records Field Name Type Description idstringnamestringstatusstringcategoriesnull | arraysend_atnull | stringsend_tonull | objectemail_confignull | objectis_abtestbooleancreated_atstringupdated_atstring
Singlesends Search
Search and filter singlesends records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.
Python SDK
await sendgrid . singlesends . search ( query = { "filter" : { "eq" : { "categories" : [ ] } } } )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "singlesends", "action": "search", "params": { "query": {"filter": {"eq": {"categories": []}}} } }'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description categoriesarrayCategories associated with this single send created_atstringWhen the single send was created idstringUnique single send identifier is_abtestbooleanWhether this is an A/B test namestringSingle send name send_atstringScheduled send time statusstringCurrent status: draft, scheduled, or triggered updated_atstringWhen the single send was last updated
Response Schema Field Name Type Description dataarrayList of matching records metaobjectPagination metadata meta.has_morebooleanWhether additional pages are available meta.cursorstring | nullCursor for next page of results meta.took_msnumber | nullQuery execution time in milliseconds data[].categoriesarrayCategories associated with this single send data[].created_atstringWhen the single send was created data[].idstringUnique single send identifier data[].is_abtestbooleanWhether this is an A/B test data[].namestringSingle send name data[].send_atstringScheduled send time data[].statusstringCurrent status: draft, scheduled, or triggered data[].updated_atstringWhen the single send was last updated
Templates
Templates List
Returns paged transactional templates (legacy and dynamic).
Python SDK
await sendgrid . templates . list ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "templates", "action": "list" }'
Parameters
Parameter Name Type Required Description generationsstringNo Template generations to return page_sizeintegerNo Number of templates per page
Response Schema Records Field Name Type Description idstringnamestringgenerationstringupdated_atnull | stringversionsnull | array
Templates Get
Returns a single transactional template.
Python SDK
await sendgrid . templates . get ( template_id = "<str>" )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "templates", "action": "get", "params": { "template_id": "<str>" } }'
Parameters
Parameter Name Type Required Description template_idstringYes The ID of the template
Response Schema Records Field Name Type Description idstringnamestringgenerationstringupdated_atnull | stringversionsnull | array
Templates Search
Search and filter templates records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.
Python SDK
await sendgrid . templates . search ( query = { "filter" : { "eq" : { "generation" : "<str>" } } } )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "templates", "action": "search", "params": { "query": {"filter": {"eq": {"generation": "<str>"}}} } }'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description generationstringTemplate generation (legacy or dynamic) idstringUnique template identifier namestringTemplate name updated_atstringWhen the template was last updated versionsarrayTemplate versions
Response Schema Field Name Type Description dataarrayList of matching records metaobjectPagination metadata meta.has_morebooleanWhether additional pages are available meta.cursorstring | nullCursor for next page of results meta.took_msnumber | nullQuery execution time in milliseconds data[].generationstringTemplate generation (legacy or dynamic) data[].idstringUnique template identifier data[].namestringTemplate name data[].updated_atstringWhen the template was last updated data[].versionsarrayTemplate versions
Singlesend Stats
Singlesend Stats List
Returns stats for all single sends.
Python SDK
await sendgrid . singlesend_stats . list ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "singlesend_stats", "action": "list" }'
Parameters
Parameter Name Type Required Description page_sizeintegerNo Maximum number of stats to return per page
Response Schema Records Field Name Type Description idstringab_phasenull | stringab_variationnull | stringaggregationnull | stringstatsnull | object
Field Name Type Description nextnull | string
Singlesend Stats Search
Search and filter singlesend stats records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.
Python SDK
await sendgrid . singlesend_stats . search ( query = { "filter" : { "eq" : { "ab_phase" : "<str>" } } } )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "singlesend_stats", "action": "search", "params": { "query": {"filter": {"eq": {"ab_phase": "<str>"}}} } }'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description ab_phasestringThe A/B test phase ab_variationstringThe A/B test variation aggregationstringThe aggregation type idstringThe single send ID statsobjectEmail statistics for the single send
Response Schema Field Name Type Description dataarrayList of matching records metaobjectPagination metadata meta.has_morebooleanWhether additional pages are available meta.cursorstring | nullCursor for next page of results meta.took_msnumber | nullQuery execution time in milliseconds data[].ab_phasestringThe A/B test phase data[].ab_variationstringThe A/B test variation data[].aggregationstringThe aggregation type data[].idstringThe single send ID data[].statsobjectEmail statistics for the single send
Bounces
Bounces List
Returns all bounced email records.
Python SDK
await sendgrid . bounces . list ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "bounces", "action": "list" }'
Parameters
Parameter Name Type Required Description limitintegerNo Number of records to return offsetintegerNo Number of records to skip for pagination
Response Schema Records Field Name Type Description createdintegeremailstringreasonstringstatusstring
Bounces Search
Search and filter bounces records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.
Python SDK
await sendgrid . bounces . search ( query = { "filter" : { "eq" : { "created" : 0 } } } )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "bounces", "action": "search", "params": { "query": {"filter": {"eq": {"created": 0}}} } }'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description createdintegerUnix timestamp when the bounce occurred emailstringThe email address that bounced reasonstringThe reason for the bounce statusstringThe enhanced status code for the bounce
Response Schema Field Name Type Description dataarrayList of matching records metaobjectPagination metadata meta.has_morebooleanWhether additional pages are available meta.cursorstring | nullCursor for next page of results meta.took_msnumber | nullQuery execution time in milliseconds data[].createdintegerUnix timestamp when the bounce occurred data[].emailstringThe email address that bounced data[].reasonstringThe reason for the bounce data[].statusstringThe enhanced status code for the bounce
Blocks
Blocks List
Returns all blocked email records.
Python SDK
await sendgrid . blocks . list ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "blocks", "action": "list" }'
Parameters
Parameter Name Type Required Description limitintegerNo Number of records to return offsetintegerNo Number of records to skip for pagination
Response Schema Records Field Name Type Description createdintegeremailstringreasonstringstatusstring
Blocks Search
Search and filter blocks records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.
Python SDK
await sendgrid . blocks . search ( query = { "filter" : { "eq" : { "created" : 0 } } } )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "blocks", "action": "search", "params": { "query": {"filter": {"eq": {"created": 0}}} } }'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description createdintegerUnix timestamp when the block occurred emailstringThe blocked email address reasonstringThe reason for the block statusstringThe status code for the block
Response Schema Field Name Type Description dataarrayList of matching records metaobjectPagination metadata meta.has_morebooleanWhether additional pages are available meta.cursorstring | nullCursor for next page of results meta.took_msnumber | nullQuery execution time in milliseconds data[].createdintegerUnix timestamp when the block occurred data[].emailstringThe blocked email address data[].reasonstringThe reason for the block data[].statusstringThe status code for the block
Spam Reports
Spam Reports List
Returns all spam report records.
Python SDK
await sendgrid . spam_reports . list ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "spam_reports", "action": "list" }'
Parameters
Parameter Name Type Required Description limitintegerNo Number of records to return offsetintegerNo Number of records to skip for pagination
Response Schema Records Field Name Type Description createdintegeremailstringipstring
Invalid Emails
Invalid Emails List
Returns all invalid email records.
Python SDK
await sendgrid . invalid_emails . list ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "invalid_emails", "action": "list" }'
Parameters
Parameter Name Type Required Description limitintegerNo Number of records to return offsetintegerNo Number of records to skip for pagination
Response Schema Records Field Name Type Description createdintegeremailstringreasonstring
Invalid Emails Search
Search and filter invalid emails records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.
Python SDK
await sendgrid . invalid_emails . search ( query = { "filter" : { "eq" : { "created" : 0 } } } )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "invalid_emails", "action": "search", "params": { "query": {"filter": {"eq": {"created": 0}}} } }'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description createdintegerUnix timestamp when the invalid email was recorded emailstringThe invalid email address reasonstringThe reason the email is invalid
Response Schema Field Name Type Description dataarrayList of matching records metaobjectPagination metadata meta.has_morebooleanWhether additional pages are available meta.cursorstring | nullCursor for next page of results meta.took_msnumber | nullQuery execution time in milliseconds data[].createdintegerUnix timestamp when the invalid email was recorded data[].emailstringThe invalid email address data[].reasonstringThe reason the email is invalid
Global Suppressions
Global Suppressions List
Returns all globally unsubscribed email addresses.
Python SDK
await sendgrid . global_suppressions . list ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "global_suppressions", "action": "list" }'
Parameters
Parameter Name Type Required Description limitintegerNo Number of records to return offsetintegerNo Number of records to skip for pagination
Response Schema Records Field Name Type Description createdintegeremailstring
Global Suppressions Search
Search and filter global suppressions records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.
Python SDK
await sendgrid . global_suppressions . search ( query = { "filter" : { "eq" : { "created" : 0 } } } )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "global_suppressions", "action": "search", "params": { "query": {"filter": {"eq": {"created": 0}}} } }'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description createdintegerUnix timestamp when the global suppression was created emailstringThe globally suppressed email address
Response Schema Field Name Type Description dataarrayList of matching records metaobjectPagination metadata meta.has_morebooleanWhether additional pages are available meta.cursorstring | nullCursor for next page of results meta.took_msnumber | nullQuery execution time in milliseconds data[].createdintegerUnix timestamp when the global suppression was created data[].emailstringThe globally suppressed email address
Suppression Groups
Suppression Groups List
Returns all suppression (unsubscribe) groups.
Python SDK
await sendgrid . suppression_groups . list ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "suppression_groups", "action": "list" }'
Response Schema Records Field Name Type Description idintegernamestringdescriptionstringis_defaultbooleanunsubscribesinteger
Suppression Groups Get
Returns information about a single suppression group.
Python SDK
await sendgrid . suppression_groups . get ( group_id = 0 )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "suppression_groups", "action": "get", "params": { "group_id": 0 } }'
Parameters
Parameter Name Type Required Description group_idintegerYes The ID of the suppression group
Response Schema Records Field Name Type Description idintegernamestringdescriptionstringis_defaultbooleanunsubscribesinteger
Suppression Groups Search
Search and filter suppression groups records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.
Python SDK
await sendgrid . suppression_groups . search ( query = { "filter" : { "eq" : { "description" : "<str>" } } } )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "suppression_groups", "action": "search", "params": { "query": {"filter": {"eq": {"description": "<str>"}}} } }'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description descriptionstringDescription of the suppression group idintegerUnique suppression group identifier is_defaultbooleanWhether this is the default suppression group namestringSuppression group name unsubscribesintegerNumber of unsubscribes in this group
Response Schema Field Name Type Description dataarrayList of matching records metaobjectPagination metadata meta.has_morebooleanWhether additional pages are available meta.cursorstring | nullCursor for next page of results meta.took_msnumber | nullQuery execution time in milliseconds data[].descriptionstringDescription of the suppression group data[].idintegerUnique suppression group identifier data[].is_defaultbooleanWhether this is the default suppression group data[].namestringSuppression group name data[].unsubscribesintegerNumber of unsubscribes in this group
Suppression Group Members
Suppression Group Members List
Returns all suppressions across all groups.
Python SDK
await sendgrid . suppression_group_members . list ( )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "suppression_group_members", "action": "list" }'
Parameters
Parameter Name Type Required Description limitintegerNo Number of records to return offsetintegerNo Number of records to skip for pagination
Response Schema Records Field Name Type Description emailstringgroup_idintegergroup_namestringcreated_atinteger
Suppression Group Members Search
Search and filter suppression group members records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.
Python SDK
await sendgrid . suppression_group_members . search ( query = { "filter" : { "eq" : { "created_at" : 0 } } } )
API
curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer {your_auth_token}' \ --data '{ "entity": "suppression_group_members", "action": "search", "params": { "query": {"filter": {"eq": {"created_at": 0}}} } }'
Parameters
Parameter Name Type Required Description queryobjectYes Filter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or query.filterobjectNo Filter conditions query.sortarrayNo Sort conditions limitintegerNo Maximum results to return (default 1000) cursorstringNo Pagination cursor from previous response's meta.cursor fieldsarrayNo Field paths to include in results
Searchable Fields
Field Name Type Description created_atintegerUnix timestamp when the suppression was created emailstringThe suppressed email address group_idintegerID of the suppression group group_namestringName of the suppression group
Response Schema Field Name Type Description dataarrayList of matching records metaobjectPagination metadata meta.has_morebooleanWhether additional pages are available meta.cursorstring | nullCursor for next page of results meta.took_msnumber | nullQuery execution time in milliseconds data[].created_atintegerUnix timestamp when the suppression was created data[].emailstringThe suppressed email address data[].group_idintegerID of the suppression group data[].group_namestringName of the suppression group