---
title: "Get a user subscription"
method: GET
path: "/v6/users/{user_id}/subscriptions/{subscription_id}"
tags: ["User Subscriptions"]
---

# Get a user subscription

`GET /v6/users/{user_id}/subscriptions/{subscription_id}`

Returns the specified notification subscription for the given user. Returns `400 invalid_subscription_id` if the subscription does not exist.

## Path parameters

- `user_id` string, required
- `subscription_id` string, required

## Response `200`

User subscription.

- UserSubscriptionResponse
  - `channels` SubscriptionChannelResponse[], required
    - union
      - EmailSubscriptionChannelResponse
        - `id` string, required
        - `type` 'EMAIL', required
      - ExtoleClientSlackSubscriptionChannelResponse
        - `id` string, required
        - `type` 'EXTOLE_CLIENT_SLACK', required
      - SlackSubscriptionChannelResponse
        - `id` string, required
        - `type` 'SLACK', required
        - `webhook_url` string, required
      - ThirdPartyEmailSubscriptionChannelResponse
        - `id` string, required
        - `type` 'THIRD_PARTY_EMAIL', required
        - `recipient` string, required
      - WebhookSubscriptionChannelResponse
        - `id` string, required
        - `type` 'WEBHOOK', required
        - `webhook_id` string, required
  - `dedupe_duration_ms` integer, required
  - `filter_expression` union, required — The filter expression as configured: a literal value, or an expression (type:string) when defined dynamically.
    - boolean — Literal filter expression
    - string — Handlebars expression with [UserSubscriptionFilterContext](https://github.com/extole/extole-specification/blob/main/openapi/expression-context/com/extole/api/notification/subscription/UserSubscriptionFilterContext.d.ts).
    - string — Javascript expression with [UserSubscriptionFilterContext](https://github.com/extole/extole-specification/blob/main/openapi/expression-context/com/extole/api/notification/subscription/UserSubscriptionFilterContext.d.ts).
  - `filtering_level` 'ALL' | 'NONE' | 'NOTEWORTHY' | 'SOME', required
  - `having_all_tags` string[], required
  - `subscription_id` string, required

## Other responses

- `400` — Subscription was not found. The supplied id does not match any subscription for the given user.
- `401` — Unauthorized
- `402` — Payment Required
- `403` — Forbidden
- `415` — Unsupported Media Type
- `429` — Too Many Requests

---

[API](https://skmtc.net/extole/apis/integration-api-server-to-extole.md) · [All operations](https://skmtc.net/extole/apis/integration-api-server-to-extole/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/extole/integration-api-server-to-extole/revisions/c16e62e66755/schema)
