---
title: "Returns notification targets of the user"
method: GET
path: "/api/notifications/targets"
tags: ["Notification"]
---

# Returns notification targets of the user

`GET /api/notifications/targets`

## Request

- Base URL: `https://sky.coflnet.com` (the document declares no server; this is the origin it was published from)
- URL: `https://sky.coflnet.com/api/notifications/targets`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `GoogleToken`

## Response `200`

OK

- NotificationTarget[]
  - `id` integer, required: Primary Key for database
  - `target` string, nullable: The target to send the notification to Depends on the Coflnet.Sky.Api.Models.Notifications.NotificationTarget.Type When Type is WEBHOOK this is the url When Type is DISCORD this is the user id to be mentioned When Type is DISCORD_WEBHOOK this is the url When Type is FIREBASE this is the token When Type is EMAIL this is the email address
  - `type` 0 | 1 | 2 | 3 | 4 | 5 | 6, required: Defines the available target type values.
  - `when` 0 | 1 | 2, required: Defines the available notify when values.
  - `userId` string, nullable: Gets or sets the user id.
  - `name` string, nullable: User Given name of this target
  - `useCount` integer, required: Gets or sets the use count.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden

## Changes

- **2026-08-04** `41f7cdd4406b`: 16 info
  - the endpoint scheme security `Bearer` was added to the API
  - the endpoint scheme security `GoogleToken` was added to the API
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - …12 more
- **2024-02-22** `b0b46324e1f1`: 2 breaking, 30 warning, 30 info
  - the `items/type` response's property type changed from `string` to `integer`, and format from no format to `int32` for status `200` (media type: application/json)
  - the `items/when` response's property type changed from `string` to `integer`, and format from no format to `int32` for status `200` (media type: application/json)
  - added the new `0.00` enum value to the `items/type` response property for the response status `200` (media type: text/plain)
  - added the new `0.00` enum value to the `items/type` response property for the response status `200` (media type: application/json)
  - …58 more
- **2024-01-10** `64a743ab7c2a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/coflnet/apis/skyapi/changes/api/notifications/targets/get.md)

---

[API](https://skmtc.dev/coflnet/apis/skyapi.md) - [All operations](https://skmtc.dev/coflnet/apis/skyapi/llms.txt) - [OpenAPI document](https://skmtc.dev/coflnet/apis/skyapi/revisions/c787372dc7a2?raw)
