Skip to content
Skip to Content
Coder Docs

List inbox notifications

GET
/api/v2/notifications/inbox

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Query Parameters

targets?string

Comma-separated list of target IDs to filter notifications

templates?string

Comma-separated list of template IDs to filter notifications

read_status?string

Filter notifications by read status. Possible values: read, unread, all

starting_before?string

ID of the last notification from the current page. Notifications returned will be older than the associated one

Formatuuid

Response Body

OK

application/json
  1. response
notifications?array<>
unread_count?integer

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X GET \	"$CODER_URL/api/v2/notifications/inbox" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "notifications": [    {      "actions": [        {          "label": "string",          "url": "string"        }      ],      "content": "string",      "created_at": "2019-08-24T14:15:22Z",      "icon": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "read_at": "string",      "targets": [        "b505793f-97f9-4cf3-a072-a44d2b068f87"      ],      "template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",      "title": "string",      "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"    }  ],  "unread_count": 0}