{
  "info": {
    "_postman_id": "db6803e4-c3a2-4933-8e7a-034dc0d9aa00",
    "name": "Twilio SendGrid Email Activity API",
    "description": "The Twilio SendGrid Email Activity API allows you to query all of your stored messages, query individual messages, and download a CSV with data about the stored messages. Once retrieved, you can inspect the data associated with your messages to better understand your mail send. For example, you may retrieve all bounced messages or all messages with the same subject line and search for commonalities among them.\n\nYou must [purchase additional email activity history](https://app.sendgrid.com/settings/billing/addons/email_activity) to gain access to the Email Activity Feed API.\n\nSee **Getting Started with the Email Activity Feed API** for help building queries and working with this API. You can also work with email activity in the **Activity** section of the [Twilio SendGrid application user interface](https://app.sendgrid.com/email_activity).\n\nContact Support:\n Name: Twilio SendGrid Support",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-06-05T15:16:34.000Z",
    "updatedAt": "2026-06-05T15:16:34.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-db6803e4-c3a2-4933-8e7a-034dc0d9aa00"
  },
  "item": [
    {
      "name": "v3",
      "item": [
        {
          "name": "messages",
          "item": [
            {
              "name": "{msg_id}",
              "item": [
                {
                  "name": "Filter messages by message ID",
                  "id": "95f23d85-d44c-4a3b-b251-4e8ac32d8a2e",
                  "protocolProfileBehavior": {
                    "disableBodyPruning": true
                  },
                  "request": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/v3/messages/:msg_id",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "v3",
                        "messages",
                        ":msg_id"
                      ],
                      "variable": [
                        {
                          "id": "8a0cb7c9-15df-46ab-836d-21e412526fd1",
                          "key": "msg_id",
                          "value": "<string>",
                          "description": "(Required) The ID of the message you are requesting details for."
                        }
                      ]
                    },
                    "description": "Get all of the details about the specified message."
                  },
                  "response": [
                    {
                      "id": "4c358ed7-6e64-4b86-bea9-193b185dc55c",
                      "name": "response",
                      "originalRequest": {
                        "method": "GET",
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          },
                          {
                            "description": "Added as a part of security scheme: bearer",
                            "key": "Authorization",
                            "value": "Bearer <token>"
                          }
                        ],
                        "url": {
                          "raw": "{{baseUrl}}/v3/messages/:msg_id",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "v3",
                            "messages",
                            ":msg_id"
                          ],
                          "variable": [
                            {
                              "key": "msg_id"
                            }
                          ]
                        }
                      },
                      "status": "OK",
                      "code": 200,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "cookie": [],
                      "responseTime": null,
                      "body": "{\n  \"api_key_id\": \"HHHH\",\n  \"asm_group_id\": \"<integer>\",\n  \"categories\": [\n    \"<string>\",\n    \"<string>\"\n  ],\n  \"events\": [\n    {\n      \"event_name\": \"group_unsubscribe\",\n      \"processed\": \"<string>\",\n      \"bounce_type\": \"hard\",\n      \"http_user_agent\": \"<string>\",\n      \"mx_server\": \"<string>\",\n      \"reason\": \"<string>\",\n      \"attempt_num\": \"<integer>\",\n      \"url\": \"ftp:/J`])/Yz/PvPXPmRNm/XFyM_6/YbPa1q~~cI9j$&C\"\n    },\n    {\n      \"event_name\": \"spam_report\",\n      \"processed\": \"<string>\",\n      \"bounce_type\": \"hard\",\n      \"http_user_agent\": \"<string>\",\n      \"mx_server\": \"<string>\",\n      \"reason\": \"<string>\",\n      \"attempt_num\": \"<integer>\",\n      \"url\": \"ftp://;.5A]&/WgO8ZcionVV/357LiJdj/InU86k/x/CIYwBuxkPd/__gahrCQDY/Ohs9gMEyl/lRHJL/7LG4JSCyuh6/HWTwtGWAua0/_jg:ni\\\\_M=@/-`Epl#kpA8v\"\n    }\n  ],\n  \"originating_ip\": \"<ipv4>\",\n  \"outbound_ip\": \"<ipv4>\",\n  \"outbound_ip_type\": \"shared\",\n  \"teammate\": \"oxv\",\n  \"template_id\": \"<string>\",\n  \"unique_args\": \"Null\",\n  \"from_email\": \"test0@example.com\",\n  \"msg_id\": \"<string>\",\n  \"subject\": \"<string>\",\n  \"to_email\": \"<email>\",\n  \"status\": \"not_delivered\"\n}",
                      "createdAt": "2026-06-05T15:16:35.000Z",
                      "updatedAt": "2026-06-05T15:16:35.000Z",
                      "uid": "35240-4c358ed7-6e64-4b86-bea9-193b185dc55c"
                    },
                    {
                      "id": "15c299c0-0f45-4701-9cc9-e474ad82e46f",
                      "name": "response",
                      "originalRequest": {
                        "method": "GET",
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          },
                          {
                            "description": "Added as a part of security scheme: bearer",
                            "key": "Authorization",
                            "value": "Bearer <token>"
                          }
                        ],
                        "url": {
                          "raw": "{{baseUrl}}/v3/messages/:msg_id",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "v3",
                            "messages",
                            ":msg_id"
                          ],
                          "variable": [
                            {
                              "key": "msg_id"
                            }
                          ]
                        }
                      },
                      "status": "Bad Request",
                      "code": 400,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "cookie": [],
                      "responseTime": null,
                      "body": "{\n  \"errors\": [\n    {\n      \"message\": \"<string>\"\n    },\n    {\n      \"message\": \"<string>\"\n    }\n  ]\n}",
                      "createdAt": "2026-06-05T15:16:35.000Z",
                      "updatedAt": "2026-06-05T15:16:35.000Z",
                      "uid": "35240-15c299c0-0f45-4701-9cc9-e474ad82e46f"
                    },
                    {
                      "id": "a2dc8139-bcdc-4858-9b85-23fb3129436b",
                      "name": "response",
                      "originalRequest": {
                        "method": "GET",
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          },
                          {
                            "description": "Added as a part of security scheme: bearer",
                            "key": "Authorization",
                            "value": "Bearer <token>"
                          }
                        ],
                        "url": {
                          "raw": "{{baseUrl}}/v3/messages/:msg_id",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "v3",
                            "messages",
                            ":msg_id"
                          ],
                          "variable": [
                            {
                              "key": "msg_id"
                            }
                          ]
                        }
                      },
                      "status": "Not Found",
                      "code": 404,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "cookie": [],
                      "responseTime": null,
                      "body": "{\n  \"errors\": [\n    {\n      \"message\": \"<string>\",\n      \"field\": \"<string>\"\n    },\n    {\n      \"message\": \"<string>\",\n      \"field\": \"<string>\"\n    }\n  ]\n}",
                      "createdAt": "2026-06-05T15:16:35.000Z",
                      "updatedAt": "2026-06-05T15:16:35.000Z",
                      "uid": "35240-a2dc8139-bcdc-4858-9b85-23fb3129436b"
                    },
                    {
                      "id": "1e2bb837-9165-481d-90c4-4596169c75d9",
                      "name": "response",
                      "originalRequest": {
                        "method": "GET",
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          },
                          {
                            "description": "Added as a part of security scheme: bearer",
                            "key": "Authorization",
                            "value": "Bearer <token>"
                          }
                        ],
                        "url": {
                          "raw": "{{baseUrl}}/v3/messages/:msg_id",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "v3",
                            "messages",
                            ":msg_id"
                          ],
                          "variable": [
                            {
                              "key": "msg_id"
                            }
                          ]
                        }
                      },
                      "status": "Too Many Requests",
                      "code": 429,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "cookie": [],
                      "responseTime": null,
                      "body": "{\n  \"errors\": [\n    {\n      \"message\": \"<string>\"\n    },\n    {\n      \"message\": \"<string>\"\n    }\n  ]\n}",
                      "createdAt": "2026-06-05T15:16:35.000Z",
                      "updatedAt": "2026-06-05T15:16:35.000Z",
                      "uid": "35240-1e2bb837-9165-481d-90c4-4596169c75d9"
                    }
                  ],
                  "createdAt": "2026-06-05T15:16:35.000Z",
                  "updatedAt": "2026-06-05T15:16:35.000Z",
                  "uid": "35240-95f23d85-d44c-4a3b-b251-4e8ac32d8a2e"
                }
              ],
              "id": "01ee37c9-2d61-4a46-b5e8-718172f3df03",
              "createdAt": "2026-06-05T15:16:35.000Z",
              "updatedAt": "2026-06-05T15:16:35.000Z",
              "uid": "35240-01ee37c9-2d61-4a46-b5e8-718172f3df03"
            },
            {
              "name": "download",
              "item": [
                {
                  "name": "{download_uuid}",
                  "item": [
                    {
                      "name": "Download CSV",
                      "id": "e90ef9e4-a74c-4ced-89bb-6a26848b3eae",
                      "protocolProfileBehavior": {
                        "disableBodyPruning": true
                      },
                      "request": {
                        "method": "GET",
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "url": {
                          "raw": "{{baseUrl}}/v3/messages/download/:download_uuid",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "v3",
                            "messages",
                            "download",
                            ":download_uuid"
                          ],
                          "variable": [
                            {
                              "id": "4a20c260-a0f7-4815-9d28-5687c17958f5",
                              "key": "download_uuid",
                              "value": "<uuid>",
                              "description": "(Required) UUID used to locate the download csv request entry in the DB.\n\nThis is the UUID provided in the email sent to the user when their csv file is ready to download"
                            }
                          ]
                        },
                        "description": "**This endpoint will return a presigned URL that can be used to download the CSV that was requested from the \"Request a CSV\" endpoint.**"
                      },
                      "response": [
                        {
                          "id": "6f25ba33-09a7-406c-b654-f7998a004abd",
                          "name": "response",
                          "originalRequest": {
                            "method": "GET",
                            "header": [
                              {
                                "key": "Accept",
                                "value": "application/json"
                              },
                              {
                                "description": "Added as a part of security scheme: bearer",
                                "key": "Authorization",
                                "value": "Bearer <token>"
                              }
                            ],
                            "url": {
                              "raw": "{{baseUrl}}/v3/messages/download/:download_uuid",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "v3",
                                "messages",
                                "download",
                                ":download_uuid"
                              ],
                              "variable": [
                                {
                                  "key": "download_uuid"
                                }
                              ]
                            }
                          },
                          "status": "OK",
                          "code": 200,
                          "_postman_previewlanguage": "json",
                          "header": [
                            {
                              "key": "Content-Type",
                              "value": "application/json"
                            }
                          ],
                          "cookie": [],
                          "responseTime": null,
                          "body": "{\n  \"presigned_url\": \"<uri>\"\n}",
                          "createdAt": "2026-06-05T15:16:35.000Z",
                          "updatedAt": "2026-06-05T15:16:35.000Z",
                          "uid": "35240-6f25ba33-09a7-406c-b654-f7998a004abd"
                        },
                        {
                          "id": "dd5a6a7d-aa31-4042-9bb3-7d9f174a5669",
                          "name": "response",
                          "originalRequest": {
                            "method": "GET",
                            "header": [
                              {
                                "key": "Accept",
                                "value": "application/json"
                              },
                              {
                                "description": "Added as a part of security scheme: bearer",
                                "key": "Authorization",
                                "value": "Bearer <token>"
                              }
                            ],
                            "url": {
                              "raw": "{{baseUrl}}/v3/messages/download/:download_uuid",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "v3",
                                "messages",
                                "download",
                                ":download_uuid"
                              ],
                              "variable": [
                                {
                                  "key": "download_uuid"
                                }
                              ]
                            }
                          },
                          "status": "Not Found",
                          "code": 404,
                          "_postman_previewlanguage": "json",
                          "header": [
                            {
                              "key": "Content-Type",
                              "value": "application/json"
                            }
                          ],
                          "cookie": [],
                          "responseTime": null,
                          "body": "{\n  \"errors\": [\n    {\n      \"message\": \"<string>\"\n    },\n    {\n      \"message\": \"<string>\"\n    }\n  ]\n}",
                          "createdAt": "2026-06-05T15:16:35.000Z",
                          "updatedAt": "2026-06-05T15:16:35.000Z",
                          "uid": "35240-dd5a6a7d-aa31-4042-9bb3-7d9f174a5669"
                        },
                        {
                          "id": "3d3f8b2e-232d-4084-9ca1-0b8f5781415f",
                          "name": "response",
                          "originalRequest": {
                            "method": "GET",
                            "header": [
                              {
                                "key": "Accept",
                                "value": "application/json"
                              },
                              {
                                "description": "Added as a part of security scheme: bearer",
                                "key": "Authorization",
                                "value": "Bearer <token>"
                              }
                            ],
                            "url": {
                              "raw": "{{baseUrl}}/v3/messages/download/:download_uuid",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "v3",
                                "messages",
                                "download",
                                ":download_uuid"
                              ],
                              "variable": [
                                {
                                  "key": "download_uuid"
                                }
                              ]
                            }
                          },
                          "status": "Internal Server Error",
                          "code": 500,
                          "_postman_previewlanguage": "json",
                          "header": [
                            {
                              "key": "Content-Type",
                              "value": "application/json"
                            }
                          ],
                          "cookie": [],
                          "responseTime": null,
                          "body": "{\n  \"errors\": [\n    {\n      \"message\": \"<string>\"\n    },\n    {\n      \"message\": \"<string>\"\n    }\n  ]\n}",
                          "createdAt": "2026-06-05T15:16:35.000Z",
                          "updatedAt": "2026-06-05T15:16:35.000Z",
                          "uid": "35240-3d3f8b2e-232d-4084-9ca1-0b8f5781415f"
                        }
                      ],
                      "createdAt": "2026-06-05T15:16:35.000Z",
                      "updatedAt": "2026-06-05T15:16:35.000Z",
                      "uid": "35240-e90ef9e4-a74c-4ced-89bb-6a26848b3eae"
                    }
                  ],
                  "id": "222eb080-bcaf-4efe-9b7a-33ce6af0b152",
                  "createdAt": "2026-06-05T15:16:35.000Z",
                  "updatedAt": "2026-06-05T15:16:35.000Z",
                  "uid": "35240-222eb080-bcaf-4efe-9b7a-33ce6af0b152"
                },
                {
                  "name": "Request CSV",
                  "id": "341a58eb-19aa-4326-9c22-02703c884ffc",
                  "protocolProfileBehavior": {
                    "disableBodyPruning": true
                  },
                  "request": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/v3/messages/download?query=<string>",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "v3",
                        "messages",
                        "download"
                      ],
                      "query": [
                        {
                          "description": "Uses a SQL like syntax to indicate which messages to include in the CSV",
                          "key": "query",
                          "value": "<string>"
                        }
                      ]
                    },
                    "description": "This request will kick off a backend process to generate a CSV file. Once generated, the worker will then send an email for the user download the file. The link will expire in 3 days.\n\nThe CSV will contain the events from the last 30 days, limited to the last 1 million events maximum. This endpoint will be rate limited to 1 request every 12 hours (rate limit may change).\n\nThis endpoint is similar to the GET Single Message endpoint - the only difference is that /download is added to indicate that this is a CSV download requests but the same query is used to determine what the CSV should contain."
                  },
                  "response": [
                    {
                      "id": "61d2a1f9-5af7-4679-a77e-c664492723b0",
                      "name": "response",
                      "originalRequest": {
                        "method": "POST",
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          },
                          {
                            "description": "Added as a part of security scheme: bearer",
                            "key": "Authorization",
                            "value": "Bearer <token>"
                          }
                        ],
                        "url": {
                          "raw": "{{baseUrl}}/v3/messages/download?query=<string>",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "v3",
                            "messages",
                            "download"
                          ],
                          "query": [
                            {
                              "description": "Uses a SQL like syntax to indicate which messages to include in the CSV",
                              "key": "query",
                              "value": "<string>"
                            }
                          ]
                        }
                      },
                      "status": "Accepted",
                      "code": 202,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "cookie": [],
                      "responseTime": null,
                      "body": "{\n  \"status\": \"pending\",\n  \"message\": \"<string>\"\n}",
                      "createdAt": "2026-06-05T15:16:35.000Z",
                      "updatedAt": "2026-06-05T15:16:35.000Z",
                      "uid": "35240-61d2a1f9-5af7-4679-a77e-c664492723b0"
                    },
                    {
                      "id": "2db2ab08-a730-48db-aeed-5d674a24f343",
                      "name": "response",
                      "originalRequest": {
                        "method": "POST",
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          },
                          {
                            "description": "Added as a part of security scheme: bearer",
                            "key": "Authorization",
                            "value": "Bearer <token>"
                          }
                        ],
                        "url": {
                          "raw": "{{baseUrl}}/v3/messages/download?query=<string>",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "v3",
                            "messages",
                            "download"
                          ],
                          "query": [
                            {
                              "description": "Uses a SQL like syntax to indicate which messages to include in the CSV",
                              "key": "query",
                              "value": "<string>"
                            }
                          ]
                        }
                      },
                      "status": "Bad Request",
                      "code": 400,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "cookie": [],
                      "responseTime": null,
                      "body": "{\n  \"errors\": [\n    {\n      \"message\": \"<string>\"\n    },\n    {\n      \"message\": \"<string>\"\n    }\n  ]\n}",
                      "createdAt": "2026-06-05T15:16:35.000Z",
                      "updatedAt": "2026-06-05T15:16:35.000Z",
                      "uid": "35240-2db2ab08-a730-48db-aeed-5d674a24f343"
                    },
                    {
                      "id": "fcb4019c-c1d7-46d1-bec4-7f2c5ec4878f",
                      "name": "response",
                      "originalRequest": {
                        "method": "POST",
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          },
                          {
                            "description": "Added as a part of security scheme: bearer",
                            "key": "Authorization",
                            "value": "Bearer <token>"
                          }
                        ],
                        "url": {
                          "raw": "{{baseUrl}}/v3/messages/download?query=<string>",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "v3",
                            "messages",
                            "download"
                          ],
                          "query": [
                            {
                              "description": "Uses a SQL like syntax to indicate which messages to include in the CSV",
                              "key": "query",
                              "value": "<string>"
                            }
                          ]
                        }
                      },
                      "status": "Too Many Requests",
                      "code": 429,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "cookie": [],
                      "responseTime": null,
                      "body": "{\n  \"errors\": [\n    {\n      \"message\": \"<string>\"\n    },\n    {\n      \"message\": \"<string>\"\n    }\n  ]\n}",
                      "createdAt": "2026-06-05T15:16:35.000Z",
                      "updatedAt": "2026-06-05T15:16:35.000Z",
                      "uid": "35240-fcb4019c-c1d7-46d1-bec4-7f2c5ec4878f"
                    },
                    {
                      "id": "1bd96f85-ba9f-4461-b132-c5cb5c487601",
                      "name": "response",
                      "originalRequest": {
                        "method": "POST",
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          },
                          {
                            "description": "Added as a part of security scheme: bearer",
                            "key": "Authorization",
                            "value": "Bearer <token>"
                          }
                        ],
                        "url": {
                          "raw": "{{baseUrl}}/v3/messages/download?query=<string>",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "v3",
                            "messages",
                            "download"
                          ],
                          "query": [
                            {
                              "description": "Uses a SQL like syntax to indicate which messages to include in the CSV",
                              "key": "query",
                              "value": "<string>"
                            }
                          ]
                        }
                      },
                      "status": "Internal Server Error",
                      "code": 500,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "cookie": [],
                      "responseTime": null,
                      "body": "{\n  \"errors\": [\n    {\n      \"message\": \"<string>\"\n    },\n    {\n      \"message\": \"<string>\"\n    }\n  ]\n}",
                      "createdAt": "2026-06-05T15:16:35.000Z",
                      "updatedAt": "2026-06-05T15:16:35.000Z",
                      "uid": "35240-1bd96f85-ba9f-4461-b132-c5cb5c487601"
                    }
                  ],
                  "createdAt": "2026-06-05T15:16:35.000Z",
                  "updatedAt": "2026-06-05T15:16:35.000Z",
                  "uid": "35240-341a58eb-19aa-4326-9c22-02703c884ffc"
                }
              ],
              "id": "e434b4db-dbe0-4746-88fd-0cd9094293ca",
              "createdAt": "2026-06-05T15:16:35.000Z",
              "updatedAt": "2026-06-05T15:16:35.000Z",
              "uid": "35240-e434b4db-dbe0-4746-88fd-0cd9094293ca"
            },
            {
              "name": "Filter all messages",
              "id": "70524c19-4947-4b42-9f63-4dd4074b584e",
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              },
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v3/messages?query=<string>&limit=10",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v3",
                    "messages"
                  ],
                  "query": [
                    {
                      "description": "(Required) Use the query syntax  to filter your email activity.",
                      "key": "query",
                      "value": "<string>"
                    },
                    {
                      "description": "The number of messages returned. This parameter must be greater than 0 and less than or equal to 1000",
                      "key": "limit",
                      "value": "10"
                    }
                  ]
                },
                "description": "Filter all messages to search your Email Activity. All queries must be [URL encoded](https://meyerweb.com/eric/tools/dencoder/), and use the following format:\n\n`query={query_type}=\"{query_content}\"`\n\n Once URL encoded, the previous query will look like this:\n\n`query=type%3D%22query_content%22`\n\nFor example, to filter by a specific email, use the following query:\n\n`query=to_email%3D%22example%40example.com%22`\n\nVisit our [Query Reference section](https://docs.sendgrid.com/for-developers/sending-email/getting-started-email-activity-api#query-reference) to see a full list of basic query types and examples."
              },
              "response": [
                {
                  "id": "fc3cf89f-94be-4ff9-ae0b-8a42abdb2513",
                  "name": "response",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/v3/messages?query=<string>&limit=10",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "v3",
                        "messages"
                      ],
                      "query": [
                        {
                          "description": "(Required) Use the query syntax  to filter your email activity.",
                          "key": "query",
                          "value": "<string>"
                        },
                        {
                          "description": "The number of messages returned. This parameter must be greater than 0 and less than or equal to 1000",
                          "key": "limit",
                          "value": "10"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"messages\": [\n    {\n      \"from_email\": \"<string>\",\n      \"msg_id\": \"<string>\",\n      \"subject\": \"<string>\",\n      \"to_email\": \"<string>\",\n      \"status\": \"not_delivered\",\n      \"opens_count\": \"<integer>\",\n      \"clicks_count\": \"<integer>\",\n      \"last_event_time\": \"<string>\"\n    },\n    {\n      \"from_email\": \"<string>\",\n      \"msg_id\": \"<string>\",\n      \"subject\": \"<string>\",\n      \"to_email\": \"<string>\",\n      \"status\": \"processed\",\n      \"opens_count\": \"<integer>\",\n      \"clicks_count\": \"<integer>\",\n      \"last_event_time\": \"<string>\"\n    }\n  ]\n}",
                  "createdAt": "2026-06-05T15:16:35.000Z",
                  "updatedAt": "2026-06-05T15:16:35.000Z",
                  "uid": "35240-fc3cf89f-94be-4ff9-ae0b-8a42abdb2513"
                },
                {
                  "id": "1e147055-fd1f-42fc-9c00-dc216c579b59",
                  "name": "response",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/v3/messages?query=<string>&limit=10",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "v3",
                        "messages"
                      ],
                      "query": [
                        {
                          "description": "(Required) Use the query syntax  to filter your email activity.",
                          "key": "query",
                          "value": "<string>"
                        },
                        {
                          "description": "The number of messages returned. This parameter must be greater than 0 and less than or equal to 1000",
                          "key": "limit",
                          "value": "10"
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"errors\": [\n    {\n      \"message\": \"<string>\"\n    },\n    {\n      \"message\": \"<string>\"\n    }\n  ]\n}",
                  "createdAt": "2026-06-05T15:16:35.000Z",
                  "updatedAt": "2026-06-05T15:16:35.000Z",
                  "uid": "35240-1e147055-fd1f-42fc-9c00-dc216c579b59"
                },
                {
                  "id": "51ada26e-7f06-44b0-9677-3fd1ef9cebad",
                  "name": "response",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/v3/messages?query=<string>&limit=10",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "v3",
                        "messages"
                      ],
                      "query": [
                        {
                          "description": "(Required) Use the query syntax  to filter your email activity.",
                          "key": "query",
                          "value": "<string>"
                        },
                        {
                          "description": "The number of messages returned. This parameter must be greater than 0 and less than or equal to 1000",
                          "key": "limit",
                          "value": "10"
                        }
                      ]
                    }
                  },
                  "status": "Too Many Requests",
                  "code": 429,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"errors\": [\n    {\n      \"message\": \"<string>\"\n    },\n    {\n      \"message\": \"<string>\"\n    }\n  ]\n}",
                  "createdAt": "2026-06-05T15:16:35.000Z",
                  "updatedAt": "2026-06-05T15:16:35.000Z",
                  "uid": "35240-51ada26e-7f06-44b0-9677-3fd1ef9cebad"
                }
              ],
              "createdAt": "2026-06-05T15:16:35.000Z",
              "updatedAt": "2026-06-05T15:16:35.000Z",
              "uid": "35240-70524c19-4947-4b42-9f63-4dd4074b584e"
            }
          ],
          "id": "a7d472bf-49b0-4717-bc41-db4a4d75d48b",
          "createdAt": "2026-06-05T15:16:35.000Z",
          "updatedAt": "2026-06-05T15:16:35.000Z",
          "uid": "35240-a7d472bf-49b0-4717-bc41-db4a4d75d48b"
        }
      ],
      "id": "5a390bea-be5e-425e-b3a9-854588d384e9",
      "createdAt": "2026-06-05T15:16:35.000Z",
      "updatedAt": "2026-06-05T15:16:35.000Z",
      "uid": "35240-5a390bea-be5e-425e-b3a9-854588d384e9"
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{bearerToken}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.sendgrid.com"
    }
  ]
}