{ "opencollection": "1.0.0", "info": { "name": "Twilio SendGrid Provisioning Account Global Suppressions API", "version": "1.0.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Global Suppressions", "type": "folder" }, "items": [ { "info": { "name": "Add recipient addresses to the global suppression group.", "type": "http" }, "http": { "method": "POST", "url": "https://api.sendgrid.com/v3/asm/suppressions/global", "headers": [ { "name": "on-behalf-of", "value": "" } ], "body": { "type": "json", "data": "{}" } }, "docs": "**This endpoint allows you to add one or more email addresses to the global suppressions group.**" }, { "info": { "name": "Retrieve a Global Suppression", "type": "http" }, "http": { "method": "GET", "url": "https://api.sendgrid.com/v3/asm/suppressions/global/:email", "headers": [ { "name": "on-behalf-of", "value": "" } ], "params": [ { "name": "email", "value": "", "type": "path", "description": "The email address of the global suppression you want to retrieve. Or, if you want to check if an email address is on the global suppressions list, enter that email address here." } ] }, "docs": "**This endpoint allows you to retrieve a global suppression. You can also use this endpoint to confirm if an email address is already globally suppresed.**\n\nIf the email address you include in the URL path parameter `{email}` is already globally suppressed, the response will include that email address. If the address you enter for `{email}` is not globally suppressed, an empty JSON object `{}` will be returned." }, { "info": { "name": "Delete a Global Suppression", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.sendgrid.com/v3/asm/suppressions/global/:email", "headers": [ { "name": "on-behalf-of", "value": "" } ], "params": [ { "name": "email", "value": "", "type": "path", "description": "The email address of the global suppression you want to retrieve. Or, if you want to check if an email address is on the global suppressions list, enter that email address here." } ] }, "docs": "**This endpoint allows you to remove an email address from the global suppressions group.**\n\nDeleting a suppression group will remove the suppression, meaning email will once again be sent to the previously suppressed addresses. This should be avoided unless a recipient indicates they wish to receive email from you again. You can use our [bypass filters](https://sendgrid.com/docs/ui/sending-email/index-suppressions/#bypass-suppressions) to deliver messages to otherwise suppressed addresses when " }, { "info": { "name": "Retrieve all global suppressions", "type": "http" }, "http": { "method": "GET", "url": "https://api.sendgrid.com/v3/suppression/unsubscribes", "headers": [ { "name": "on-behalf-of", "value": "" } ], "params": [ { "name": "start_time", "value": "", "type": "query", "description": "Refers start of the time range in unix timestamp when an unsubscribe email was created (inclusive)." }, { "name": "end_time", "value": "", "type": "query", "description": "Refers end of the time range in unix timestamp when an unsubscribe email was created (inclusive)." }, { "name": "limit", "value": "", "type": "query", "description": "`limit` sets the page size, i.e. maximum number of items from the list to be returned for a single API request. If omitted, the default page size is used. The maximum page size for this endpoint is 500 items per page." }, { "name": "offset", "value": "", "type": "query", "description": "The number of items in the list to skip over before starting to retrieve the items for the requested page. The default `offset` of `0` represents the beginning of the list, i.e. the start of the first page. To request the second page of the list, set the `offset` to the page size as determined by `limit`. Use multiples of the page size as your `offset` to request further consecutive pages. E.g. assume your page size is set to `10`. An `offset` of `10` requests the second page, an `offset` of `20` requests the third page and so on, provided there are sufficiently many items in your list." }, { "name": "email", "value": "", "type": "query", "description": "Specifies which records to return based on the records' associated email addresses. For example, `sales` returns records with email addresses that start with 'sales', such as `salesdepartment@example.com` or `sales@example.com`. You can also use `%25` as a wildcard. For example, `%25market` returns records containing email addresses with the string 'market' anywhere in the email address, and `%25market%25tree` returns records containing email addresses with the string 'market' followed by the string 'tree'. Any reserved characters should be [percent-encoded](https://en.wikipedia.org/wiki/Percent-encoding#Reserved_characters), e.g., the `@` symbol should be encoded as `%40`." } ] }, "docs": "**This endpoint allows you to retrieve a paginated list of all email address that are globally suppressed.**\n\nYou can use the `limit` query parameter to set the page size. If your list contains more items than the page size permits, you can make multiple requests. Use the `offset` query parameter to control the position in the list from which to start retrieving additional items." } ] } ], "bundled": true }