# List channels

`GET /v1/projects/{project_id}/channels`

Requires role member or higher.

## Authentication

A session token: `Authorization: Bearer <session token>`, or the session cookie in the browser. Requires role `member` or higher.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `cursor` | query | string | no |  |
| `limit` | query | integer | no |  |
| `project_id` | path | string | yes |  |

## Responses

### 200

Channels, oldest first.

`application/json`

```json
{
  "additionalProperties": false,
  "description": "Channels, oldest first.",
  "properties": {
    "data": {
      "items": {
        "anyOf": [
          {
            "additionalProperties": false,
            "description": "A channel that emails one member.",
            "properties": {
              "created_at": {
                "format": "date-time",
                "type": "string"
              },
              "email": {
                "description": "The member's current address.",
                "type": "string"
              },
              "enabled": {
                "type": "boolean"
              },
              "health": {
                "anyOf": [
                  {
                    "enum": [
                      "ok"
                    ],
                    "type": "string"
                  },
                  {
                    "enum": [
                      "failing"
                    ],
                    "type": "string"
                  }
                ],
                "description": "failing after 3 consecutive failed deliveries, until one succeeds."
              },
              "id": {
                "pattern": "^chn_[0-7][0-9a-hjkmnp-tv-z]{25}$",
                "type": "string"
              },
              "member_id": {
                "pattern": "^mem_[0-7][0-9a-hjkmnp-tv-z]{25}$",
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "project_id": {
                "pattern": "^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$",
                "type": "string"
              },
              "type": {
                "enum": [
                  "email"
                ],
                "type": "string"
              },
              "updated_at": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "id",
              "project_id",
              "name",
              "enabled",
              "health",
              "created_at",
              "updated_at",
              "type",
              "member_id",
              "email"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "A channel that posts signed requests to a URL.",
            "properties": {
              "created_at": {
                "format": "date-time",
                "type": "string"
              },
              "enabled": {
                "type": "boolean"
              },
              "health": {
                "anyOf": [
                  {
                    "enum": [
                      "ok"
                    ],
                    "type": "string"
                  },
                  {
                    "enum": [
                      "failing"
                    ],
                    "type": "string"
                  }
                ],
                "description": "failing after 3 consecutive failed deliveries, until one succeeds."
              },
              "id": {
                "pattern": "^chn_[0-7][0-9a-hjkmnp-tv-z]{25}$",
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "project_id": {
                "pattern": "^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$",
                "type": "string"
              },
              "type": {
                "enum": [
                  "webhook"
                ],
                "type": "string"
              },
              "updated_at": {
                "format": "date-time",
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "project_id",
              "name",
              "enabled",
              "health",
              "created_at",
              "updated_at",
              "type",
              "url"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "A channel that posts to a Slack incoming webhook.",
            "properties": {
              "created_at": {
                "format": "date-time",
                "type": "string"
              },
              "enabled": {
                "type": "boolean"
              },
              "health": {
                "anyOf": [
                  {
                    "enum": [
                      "ok"
                    ],
                    "type": "string"
                  },
                  {
                    "enum": [
                      "failing"
                    ],
                    "type": "string"
                  }
                ],
                "description": "failing after 3 consecutive failed deliveries, until one succeeds."
              },
              "id": {
                "pattern": "^chn_[0-7][0-9a-hjkmnp-tv-z]{25}$",
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "project_id": {
                "pattern": "^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$",
                "type": "string"
              },
              "type": {
                "enum": [
                  "slack"
                ],
                "type": "string"
              },
              "updated_at": {
                "format": "date-time",
                "type": "string"
              },
              "url_hint": {
                "description": "Identifies the webhook without revealing it; the URL itself is never returned.",
                "type": "string"
              }
            },
            "required": [
              "id",
              "project_id",
              "name",
              "enabled",
              "health",
              "created_at",
              "updated_at",
              "type",
              "url_hint"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "description": "A channel that posts to a Discord channel webhook.",
            "properties": {
              "created_at": {
                "format": "date-time",
                "type": "string"
              },
              "enabled": {
                "type": "boolean"
              },
              "health": {
                "anyOf": [
                  {
                    "enum": [
                      "ok"
                    ],
                    "type": "string"
                  },
                  {
                    "enum": [
                      "failing"
                    ],
                    "type": "string"
                  }
                ],
                "description": "failing after 3 consecutive failed deliveries, until one succeeds."
              },
              "id": {
                "pattern": "^chn_[0-7][0-9a-hjkmnp-tv-z]{25}$",
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "project_id": {
                "pattern": "^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$",
                "type": "string"
              },
              "type": {
                "enum": [
                  "discord"
                ],
                "type": "string"
              },
              "updated_at": {
                "format": "date-time",
                "type": "string"
              },
              "url_hint": {
                "description": "Identifies the webhook without revealing it; the URL itself is never returned.",
                "type": "string"
              }
            },
            "required": [
              "id",
              "project_id",
              "name",
              "enabled",
              "health",
              "created_at",
              "updated_at",
              "type",
              "url_hint"
            ],
            "type": "object"
          }
        ],
        "description": "A notification channel."
      },
      "type": "array"
    },
    "next_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "data",
    "next_cursor"
  ],
  "type": "object"
}
```

### 401

unauthorized: no valid session, or the email is not verified.

Problem type: [unauthorized](https://docs.dlogify.com/errors/unauthorized.md).

### 404

not-found: the resource does not exist, or the caller is not a member of its organization.

Problem type: [not-found](https://docs.dlogify.com/errors/not-found.md).

### 422

validation-failed: the request does not match the schema.

Problem type: [validation-failed](https://docs.dlogify.com/errors/validation-failed.md).

### 429

rate-limited: per-user management request limit.

Problem type: [rate-limited](https://docs.dlogify.com/errors/rate-limited.md).

## Example

```bash
curl -X GET "https://api.dlogify.com/v1/projects/{project_id}/channels" \
  -H "Authorization: Bearer $DLOGIFY_SESSION"
```

Source: https://docs.dlogify.com/api/channels/listChannels
