Skip to main content

Get Company Custom Notification Flows

GET/companies/{id}/custom-notification-flows
Agency-scoped keys

This endpoint is not available for agency-scoped API keys.

Summary​

Returns a paginated list of custom notification flows for a company within the API key scope. Requires read:companies.

Includes enabled and disabled custom email flows. Excludes standard notification settings and webhooks. Email templates are returned as saved, without resolving dynamic tokens.

URL Parameters​

NameTypeRequiredDescription
idstringYesCompany ObjectId or reference

Query Parameters​

NameTypeRequiredDescription
pageintegerNoPage number (default 1)
limitintegerNoRecords per page (default 50, max 200)
querystringNoCase-insensitive search against flow name and trigger
sortBystringNoname, trigger, id; default name
sortOrderstringNoasc or desc; default asc
fieldsstringNoComma-separated response fields or nested dot paths

Request Example​

curl -X GET 'https://api.requidex.com/api/open/v1/companies/{id}/custom-notification-flows' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Accept: application/json'

Response Fields​

Each item in data contains the following fields. meta contains page, limit and total; the total counts matching records before pagination.

FieldTypeDescription
idstringFlow reference
companystringCompany ObjectId
namestringFlow name
enabledbooleanWhether the flow is enabled
triggerstringNotification trigger
conditionsobject[]
Show child attributes
  • id string - Condition reference
  • field string - Condition field
  • operator string - Comparison operator
  • value string - Stored condition value
recipientEmailstringConfigured recipient mailboxes
emailModestringAllowed values: standard, introduction, custom
emailBodystringSaved email editor content; dynamic tokens are not resolved
emailSubjectstringSaved subject template; empty uses the standard subject
offsetValuenumber or nullReminder offset amount, where configured
offsetUnitstring or nullReminder offset unit: days, weeks or months
scheduleobject or null
Show child attributes
  • frequency string - daily, weekly or monthly
  • daysOfWeek string[] - Lowercase weekday names
  • dayOfMonth integer or null - Day of month (1–31)
  • hourOfDay integer - Scheduled hour (0–23)
  • nextRun string or null - Next run timestamp
  • lastRun string or null - Last run timestamp

Response Example (200)​

{
"success": true,
"data": [
{
"id": "flowref001",
"company": "507f1f77bcf86cd799439011",
"name": "Assignment alerts",
"enabled": true,
"trigger": "assignment_created",
"conditions": [],
"recipientEmail": "operations@example.com",
"emailMode": "standard",
"emailBody": "",
"emailSubject": "",
"offsetValue": null,
"offsetUnit": null,
"schedule": null
}
],
"meta": {
"page": 1,
"limit": 50,
"total": 1
}
}

MCP Tool​

The MCP server exposes this operation as open_api_list_company_custom_notification_flows with inputs id, page, limit, query, sortBy, sortOrder and fields.

Errors​

HTTP StatusDescription
400Invalid filters or parameters
401Missing, invalid, revoked, or expired API key
403Missing scope, IP restriction, or agency-scoped key
404Company not found within the key scope
405Method not allowed on Open API routes
429Rate limit exceeded
500Failed to fetch company custom notification flows