Skip to main content
POST
/
v2
/
notifications
/
offset
/
list
List offset lifecycle event notification configurations
curl --request POST \
  --url https://api.metronome.com/v2/notifications/offset/list \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "limit": 20,
  "cursor": "d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc",
  "archive_filter": "NOT_ARCHIVED"
}'
{
  "data": [
    {
      "id": "d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc",
      "name": "+1 day after contract starts",
      "type": "OFFSET_LIFECYCLE_EVENT",
      "policy": {
        "type": "contract.start",
        "offset": "P1D"
      },
      "environment_type": "PRODUCTION",
      "created_at": "2024-01-15T10:30:00Z",
      "created_by": "Martins Seyi",
      "archived_at": null
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Optional pagination and filtering parameters

limit
number
cursor
string
archive_filter
enum<string>

Filter options for the notification configurations. If not provided, defaults to NOT_ARCHIVED.

Available options:
ARCHIVED,
NOT_ARCHIVED,
ALL

Response

200 - application/json

Success

data
object[]
required
cursor
string | null
I