Outvexa

API reference

Notifications

6 endpoints. All paths are relative to your installation, for example https://app.example.com.

get/api/v1/w/{workspaceId}/notifications

My notifications

Workspace member or API keyRole viewer or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
Request
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/notifications" \
  -H "Authorization: Bearer $EMN_API_KEY"

post/api/v1/w/{workspaceId}/notifications/read

Mark notifications read (all if ids omitted)

Workspace member or API keyRole viewer or higherSuccess: 200

Path parameters

workspaceIdrequiredstring

Request body (JSON)

idsstring (uuid)[]
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/notifications/read" \
  -H "Authorization: Bearer $EMN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": [
      "00000000-0000-4000-8000-000000000000"
    ]
  }'

get/api/v1/w/{workspaceId}/notification-channels

Slack / email notification channels (secrets never returned)

Workspace member or API keyRole admin or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
Request
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/notification-channels" \
  -H "Authorization: Bearer $EMN_API_KEY"

post/api/v1/w/{workspaceId}/notification-channels

Add a Slack incoming webhook or email channel

Workspace member or API keyRole admin or higherSuccess: 201

Path parameters

workspaceIdrequiredstring
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/notification-channels" \
  -H "Authorization: Bearer $EMN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "SLACK",
    "name": "string",
    "webhookUrl": "https://example.com",
    "events": [
      "string"
    ]
  }'

delete/api/v1/w/{workspaceId}/notification-channels/{id}

Remove a channel

Workspace member or API keyRole admin or higherSuccess: 204

Path parameters

workspaceIdrequiredstring
idrequiredstring
Request
curl -X DELETE "https://app.example.com/api/v1/w/$WORKSPACE_ID/notification-channels/$ID" \
  -H "Authorization: Bearer $EMN_API_KEY"

post/api/v1/w/{workspaceId}/notification-channels/test

Send a test notification to all channels

Workspace member or API keyRole admin or higher10 requests / 10 min per workspaceSuccess: 200

Path parameters

workspaceIdrequiredstring
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/notification-channels/test" \
  -H "Authorization: Bearer $EMN_API_KEY"