Skip to content

List the notifications a rule can configure

GET
/notification-rules/sources
Code sample: Shell / cURL
curl --request GET \
--url https://example.com/api/v1/notification-rules/sources \
--header 'Authorization: Bearer <token>'

The catalog: every notification Chelsea can send to a chat channel, with its label, whether it is scheduled or event-driven, the scopes it accepts, how finely it can be timed, how many channels and which platforms it posts to, whether it mentions members, the keys of its options and what it does without a saved rule. Requires the settings.manage permission.

The notification catalog.

Media typeapplication/json
object
data
required
Array<object>

One notification Chelsea can send to a chat channel, and what a rule of it may carry.

object
cascade
required

Whether a record without a rule of its own takes the next wider scope’s channel.

boolean
defaultRule
required

What it does when no rule is saved; null when it is off until one is.

Any of:
object
days
required
Array<integer>
enabled
required
boolean
options
required
object
key
additional properties
times
required
Array<string>
description
required
string
destinations
required
object
max
required
integer
>= -9007199254740991 <= 9007199254740991
providers
required

The chat platforms it can post to; null when it is built for any of them.

Any of:
Array<string>
Allowed values: discord slack generic
kind
required

Whether it is sent at times of day or when something happens.

string
Allowed values: SCHEDULED EVENT
label
required
string
mentions
required

Null when the message mentions nobody.

Any of:
object
max
required
integer
>= -9007199254740991 <= 9007199254740991
optionKeys
required

The keys options accepts for this source.

Array<string>
schedule
required

Null for an event source, which has no times or days.

Any of:
object
defaultDays
required
Array<integer>
defaultTimes
required
Array<string>
maxTimes
required
integer
>= -9007199254740991 <= 9007199254740991
resolution
required
string
Allowed values: HOUR MINUTE
scopes
required

The scopes a rule of this source can have, most specific first.

Array<string>
Allowed values: WORKSPACE TEAM CLIENT PROJECT
source
required

Which notification a rule configures. GET /notification-rules/sources lists what each one accepts.

string
Allowed values: PM_DIGEST COMPLIANCE_DIGEST COMPLIANCE_VIOLATION TIME_OFF_DIGEST TIME_OFF_EVENT TEAM_TIMESHEET_REPORT TEAM_MISSING_HOURS ASANA_ALERT TICKET_CREATED TICKET_SLA_BREACHED COMMISSION_ISSUE
meta
required

Pagination metadata for list responses.

object
page
required
integer
>= -9007199254740991 <= 9007199254740991
perPage
required
integer
>= -9007199254740991 <= 9007199254740991
total
required
integer
>= -9007199254740991 <= 9007199254740991
totalPages
required
integer
>= -9007199254740991 <= 9007199254740991

Example

{
"data": [
{
"destinations": {
"providers": [
"discord"
]
},
"kind": "SCHEDULED",
"schedule": {
"resolution": "HOUR"
},
"scopes": [
"WORKSPACE"
],
"source": "PM_DIGEST"
}
]
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.