---
title: "Get a pipeline's email subscription"
method: GET
path: "/api/v1/pipelines/{pipelineId}/email-subscriptions/{subscriptionId}"
tags: ["Pipelines"]
---

# Get a pipeline's email subscription

`GET /api/v1/pipelines/{pipelineId}/email-subscriptions/{subscriptionId}`

## Request

- Base URL: `https://app.khotan.com`
- URL: `https://app.khotan.com/api/v1/pipelines/{pipelineId}/email-subscriptions/{subscriptionId}`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

## Path parameters

- `pipelineId` string, required
- `subscriptionId` string, required

## Response `200`

The subscription.

- object
  - `id` string, required
  - `emailIntegrationId` string, required
  - `provider` 'google' | 'microsoft', required
  - `target` object, required
    - `type` 'app' | 'pipeline', required
    - `id` string, required
  - `deliveryUrl` string, required
  - `status` 'pending' | 'active' | 'failed' | 'disabled', required
  - `expiresAt` string, nullable, required
  - `failure` object, nullable, required
    - `code` string, required
    - `message` string, required
  - `createdAt` string, required
  - `updatedAt` string, required

## Other responses

- `401`: Authentication is missing or invalid.
- `404`: The resource was not found.
- `429`: Too many requests; retry after the indicated delay.

---

[API](https://skmtc.dev/khotan/apis/khotan-api.md) - [All operations](https://skmtc.dev/khotan/apis/khotan-api/llms.txt) - [OpenAPI document](https://skmtc.dev/khotan/apis/khotan-api/revisions/90b512a53e42?raw)
