Internal Functions/Filter

Get emails with filter

Editar páginaReportar problema

Retrieve a list of emails based on multiple criteria.

GET
/emails/filter
AuthorizationBearer <token>

API Token for authentication

In: header

Query Parameters

typestring
Value in"PROD" | "STAGE" | "TEST" | "DEV"
kindstring & array<string>
source?string & array<string>
asc?string
Default"true"
Value in"true" | "false"
studentCourse?string & array<string>
ingressYear?array<integer>

Response Body

curl -X GET "https://mi-boletim-internal-functions.maisinformaufcrussas.workers.dev/emails/filter?type=PROD&kind=STUD&source=UNKNOWN&asc=true&studentCourse=ES&ingressYear=0"
{
  "count": 0,
  "result": [
    {
      "id": 1,
      "email": "doc@example.com",
      "kind": "STUD",
      "type": "PROD",
      "source": "UNKNOWN"
    }
  ]
}