Coveo Subscription API

The Subscription API from Coveo — 10 operation(s) for subscription.

Operations 16

GET /rest/organizations/{organizationId}/subscriptions/{subscriptionId} Show Subscription #
PUT /rest/organizations/{organizationId}/subscriptions/{subscriptionId} Update Subscription #
DELETE /rest/organizations/{organizationId}/subscriptions/{subscriptionId} Delete Subscription #
PUT /rest/organizations/{organizationId}/subscriptions/{subscriptionId}/enable Enable Subscription #
PUT /rest/organizations/{organizationId}/subscriptions/{subscriptionId}/disable Disable Subscription #
GET /rest/organizations/{organizationId}/subscriptions/me/{subscriptionId} Show Subscription for Current Member #
PUT /rest/organizations/{organizationId}/subscriptions/me/{subscriptionId} Update Subscription for Current Member #
DELETE /rest/organizations/{organizationId}/subscriptions/me/{subscriptionId} Delete Subscription for Current Member #
PUT /rest/organizations/{organizationId}/subscriptions/me/{subscriptionId}/enable Enable Subscription for Current Member #
PUT /rest/organizations/{organizationId}/subscriptions/me/{subscriptionId}/disable Disable Subscription for Current Member #
GET /rest/organizations/{organizationId}/subscriptions List Subscriptions #
POST /rest/organizations/{organizationId}/subscriptions Create Subscription #
POST /rest/organizations/{organizationId}/subscriptions/{subscriptionId}/test Test Subscription #
GET /rest/organizations/{organizationId}/subscriptions/me List Subscriptions for Current Member #
POST /rest/organizations/{organizationId}/subscriptions/me Create Subscription for Current Member #
POST /rest/organizations/{organizationId}/subscriptions/me/{subscriptionId}/test Test Subscription for Current Member #

Documentation

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-passagev3-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restfacetrequest-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restfacetresult-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restfacetresultvalue-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restgroupby-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restgroupbyresult-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restgroupbyvalue-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-resthighlightresponse-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restquerycorrection-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restqueryfunction-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restqueryparameters-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restqueryparentresult-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restqueryresponse-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restqueryresult-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-restrankingfunction-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-retrievepassagesrequestv3-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-schema/coveo-search-retrievepassagesresponsev3-schema.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-passagev3-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restfacetrequest-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restfacetresult-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restfacetresultvalue-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restgroupby-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restgroupbyresult-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restgroupbyvalue-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-resthighlightresponse-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restquerycorrection-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restqueryfunction-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restqueryparameters-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restqueryparentresult-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restqueryresponse-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restqueryresult-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-restrankingfunction-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-retrievepassagesrequestv3-structure.json
📊
JSONStructure
https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/json-structure/coveo-search-retrievepassagesresponsev3-structure.json

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/coveo-subscription-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

coveo-subscription-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Coveo Notification Subscription API
  description: API for Coveo Platform
  termsOfService: https://www.coveo.com/en/support/terms-agreements
  contact:
    name: Coveo
    url: https://connect.coveo.com/s/discussions
  version: 1.0.0
servers:
- url: https://platform.cloud.coveo.com
  description: Coveo public API endpoint
security:
- oauth2:
  - full
tags:
- name: Subscription
paths:
  /rest/organizations/{organizationId}/subscriptions/{subscriptionId}:
    get:
      tags:
      - Subscription
      summary: Show Subscription
      description: 'Shows a [subscription](https://docs.coveo.com/en/248/) in a [Coveo organization](https://docs.coveo.com/en/185/).<br /><br /><details><summary>Privilege required</summary>

        ```

        {"owner":"PLATFORM","targetDomain":"SUBSCRIPTION","type":"VIEW","targetId":"*"}

        ```

        </details>'
      operationId: getSubscriptionById
      parameters:
      - name: organizationId
        in: path
        description: The unique identifier of the target [organization](https://docs.coveo.com/en/185/).
        required: true
        schema:
          type: string
        example: mycoveocloudv2organizationg8tp8wu3
      - name: subscriptionId
        in: path
        description: The unique identifier of the subscription to show.
        required: true
        schema:
          type: string
        example: z5zoxmpor75utkwavbyms2ngla
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/SubscriptionModel'
      x-pretty-name: getSubscriptionById
      x-required-privilege:
        owner: PLATFORM
        targetDomain: SUBSCRIPTION
        type: VIEW
        targetId: '*'
      x-required-privileges:
      - owner: PLATFORM
        targetDomain: SUBSCRIPTION
        type: VIEW
        targetId: '*'
      x-ui-operation-id: /rest/organizations/paramId/subscriptions/paramId_get
    put:
      tags:
      - Subscription
      summary: Update Subscription
      description: 'Updates a [subscription](https://docs.coveo.com/en/248/) in a [Coveo organization](https://docs.coveo.com/en/185/).<br /><br /><details><summary>Privilege required</summary>

        ```

        {"owner":"PLATFORM","targetDomain":"SUBSCRIPTION","type":"EDIT","targetId":"{subscriptionId}"}

        ```

        </details>'
      operationId: editSubscription
      parameters:
      - name: organizationId
        in: path
        description: The unique identifier of the target [organization](https://docs.coveo.com/en/185/).
        required: true
        schema:
          type: string
        example: mycoveocloudv2organizationg8tp8wu3
      - name: subscriptionId
        in: path
        description: The unique identifier of the subscription to update.
        required: true
        schema:
          type: string
        example: z5zoxmpor75utkwavbyms2ngla
      requestBody:
        description: The JSON configuration to update the target subscription to.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EditSubscriptionModel'
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/SubscriptionModel'
      x-pretty-name: editSubscription
      x-required-privilege:
        owner: PLATFORM
        targetDomain: SUBSCRIPTION
        type: EDIT
        targetId: '{subscriptionId}'
      x-required-privileges:
      - owner: PLATFORM
        targetDomain: SUBSCRIPTION
        type: EDIT
        targetId: '{subscriptionId}'
      x-ui-operation-id: /rest/organizations/paramId/subscriptions/paramId_put
    delete:
      tags:
      - Subscription
      summary: Delete Subscription
      description: 'Deletes a [subscription](https://docs.coveo.com/en/248/) in a [Coveo organization](https://docs.coveo.com/en/185/).<br /><br /><details><summary>Privilege required</summary>

        ```

        {"owner":"PLATFORM","targetDomain":"SUBSCRIPTION","type":"EDIT","targetId":"{subscriptionId}"}

        ```

        </details>'
      externalDocs:
        description: Deleting a Subscription
        url: https://docs.coveo.com/en/21/
      operationId: deleteSubscriptionById
      parameters:
      - name: organizationId
        in: path
        description: The unique identifier of the target [organization](https://docs.coveo.com/en/185/).
        required: true
        schema:
          type: string
        example: mycoveocloudv2organizationg8tp8wu3
      - name: subscriptionId
        in: path
        description: The unique identifier of the user subscription to delete.
        required: true
        schema:
          type: string
        example: z5zoxmpor75utkwavbyms2ngla
      responses:
        '204':
          description: No Content
      x-pretty-name: deleteSubscriptionById
      x-required-privilege:
        owner: PLATFORM
        targetDomain: SUBSCRIPTION
        type: EDIT
        targetId: '{subscriptionId}'
      x-required-privileges:
      - owner: PLATFORM
        targetDomain: SUBSCRIPTION
        type: EDIT
        targetId: '{subscriptionId}'
      x-ui-operation-id: /rest/organizations/paramId/subscriptions/paramId_delete
  /rest/organizations/{organizationId}/subscriptions/{subscriptionId}/enable:
    put:
      tags:
      - Subscription
      summary: Enable Subscription
      description: 'Enables a [subscription](https://docs.coveo.com/en/248/) to send [notifications](https://docs.coveo.com/en/221/) in a [Coveo organization](https://docs.coveo.com/en/185/).<br /><br /><details><summary>Privilege required</summary>

        ```

        {"owner":"PLATFORM","targetDomain":"SUBSCRIPTION","type":"EDIT","targetId":"{subscriptionId}"}

        ```

        </details>'
      operationId: enableSubscriptionById
      parameters:
      - name: organizationId
        in: path
        description: The unique identifier of the target [organization](https://docs.coveo.com/en/185/).
        required: true
        schema:
          type: string
        example: mycoveocloudv2organizationg8tp8wu3
      - name: subscriptionId
        in: path
        description: The unique identifier of the subscription to enable.
        required: true
        schema:
          type: string
        example: z5zoxmpor75utkwavbyms2ngla
      responses:
        '204':
          description: No Content
      x-pretty-name: enableSubscriptionById
      x-required-privilege:
        owner: PLATFORM
        targetDomain: SUBSCRIPTION
        type: EDIT
        targetId: '{subscriptionId}'
      x-required-privileges:
      - owner: PLATFORM
        targetDomain: SUBSCRIPTION
        type: EDIT
        targetId: '{subscriptionId}'
      x-ui-operation-id: /rest/organizations/paramId/subscriptions/paramId/enable_put
  /rest/organizations/{organizationId}/subscriptions/{subscriptionId}/disable:
    put:
      tags:
      - Subscription
      summary: Disable Subscription
      description: 'Disables a [subscription](https://docs.coveo.com/en/248/) from sending [notifications](https://docs.coveo.com/en/221/) in a [Coveo organization](https://docs.coveo.com/en/185/).<br /><br /><details><summary>Privilege required</summary>

        ```

        {"owner":"PLATFORM","targetDomain":"SUBSCRIPTION","type":"EDIT","targetId":"{subscriptionId}"}

        ```

        </details>'
      operationId: disableSubscriptionById
      parameters:
      - name: organizationId
        in: path
        description: The unique identifier of the target [organization](https://docs.coveo.com/en/185/).
        required: true
        schema:
          type: string
        example: mycoveocloudv2organizationg8tp8wu3
      - name: subscriptionId
        in: path
        description: The unique identifier of the subscription to disable.
        required: true
        schema:
          type: string
        example: z5zoxmpor75utkwavbyms2ngla
      responses:
        '204':
          description: No Content
      x-pretty-name: disableSubscriptionById
      x-required-privilege:
        owner: PLATFORM
        targetDomain: SUBSCRIPTION
        type: EDIT
        targetId: '{subscriptionId}'
      x-required-privileges:
      - owner: PLATFORM
        targetDomain: SUBSCRIPTION
        type: EDIT
        targetId: '{subscriptionId}'
      x-ui-operation-id: /rest/organizations/paramId/subscriptions/paramId/disable_put
  /rest/organizations/{organizationId}/subscriptions/me/{subscriptionId}:
    get:
      tags:
      - Subscription
      summary: Show Subscription for Current Member
      description: 'Shows a [subscription](https://docs.coveo.com/en/248/)</br>**Note:** Only OAuth2 token authentication works when working with user [notifications](https://docs.coveo.com/en/221/). Using API keys will not work as they cannot be traced back to an individual member.<br /><br /><details><summary>Privilege required</summary>

        ```

        {"owner":"PLATFORM","targetDomain":"ORGANIZATION","type":"VIEW","targetId":"*"}

        ```

        </details>'
      externalDocs:
        description: Manage User Notifications
        url: https://docs.coveo.com/en/1911/
      operationId: getCurrentUserSubscriptionById
      parameters:
      - name: organizationId
        in: path
        description: The unique identifier of the target [organization](https://docs.coveo.com/en/185/).
        required: true
        schema:
          type: string
        example: mycoveocloudv2organizationg8tp8wu3
      - name: subscriptionId
        in: path
        description: The unique identifier of the subscription to show.
        required: true
        schema:
          type: string
        example: z5zoxmpor75utkwavbyms2ngla
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/SubscriptionModel'
      x-pretty-name: getCurrentUserSubscriptionById
      x-required-privilege:
        owner: PLATFORM
        targetDomain: ORGANIZATION
        type: VIEW
        targetId: '*'
      x-required-privileges:
      - owner: PLATFORM
        targetDomain: ORGANIZATION
        type: VIEW
        targetId: '*'
      x-ui-operation-id: /rest/organizations/paramId/subscriptions/me/paramId_get
    put:
      tags:
      - Subscription
      summary: Update Subscription for Current Member
      description: 'Updates a [subscription](https://docs.coveo.com/en/248/) for the current [member](https://docs.coveo.com/en/2869/).</br>**Note:** Only OAuth2 token authentication works when working with user [notifications](https://docs.coveo.com/en/221/). Using API keys will not work as they cannot be traced back to an individual member.<br /><br /><details><summary>Privilege required</summary>

        ```

        {"owner":"PLATFORM","targetDomain":"ACTIVITIES","type":"VIEW","targetId":"*"}

        ```

        </details>'
      externalDocs:
        description: Manage User Notifications
        url: https://docs.coveo.com/en/1911/
      operationId: editSubscriptionForCurrentUser
      parameters:
      - name: organizationId
        in: path
        description: The unique identifier of the target [organization](https://docs.coveo.com/en/185/).
        required: true
        schema:
          type: string
        example: mycoveocloudv2organizationg8tp8wu3
      - name: subscriptionId
        in: path
        description: The unique identifier of the subscription to update.
        required: true
        schema:
          type: string
        example: z5zoxmpor75utkwavbyms2ngla
      requestBody:
        description: The JSON configuration to update the target subscription to.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EditSubscriptionModel'
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/SubscriptionModel'
      x-pretty-name: editSubscriptionForCurrentUser
      x-required-privilege:
        owner: PLATFORM
        targetDomain: ACTIVITIES
        type: VIEW
        targetId: '*'
      x-required-privileges:
      - owner: PLATFORM
        targetDomain: ACTIVITIES
        type: VIEW
        targetId: '*'
      x-ui-operation-id: /rest/organizations/paramId/subscriptions/me/paramId_put
    delete:
      tags:
      - Subscription
      summary: Delete Subscription for Current Member
      description: 'Deletes a [subscription](https://docs.coveo.com/en/248/) for the current [member](https://docs.coveo.com/en/2869/)</br>**Note:** Only OAuth2 token authentication works when working with user [notifications](https://docs.coveo.com/en/221/). Using API keys will not work as they cannot be traced back to an individual member.<br /><br /><details><summary>Privilege required</summary>

        ```

        {"owner":"PLATFORM","targetDomain":"ACTIVITIES","type":"VIEW","targetId":"*"}

        ```

        </details>'
      externalDocs:
        description: Deleting a Subscription
        url: https://docs.coveo.com/en/21/
      operationId: deleteCurrentUserSubscriptionById
      parameters:
      - name: organizationId
        in: path
        description: The unique identifier of the target [organization](https://docs.coveo.com/en/185/).
        required: true
        schema:
          type: string
        example: mycoveocloudv2organizationg8tp8wu3
      - name: subscriptionId
        in: path
        description: The unique identifier of the user subscription to delete.
        required: true
        schema:
          type: string
        example: z5zoxmpor75utkwavbyms2ngla
      responses:
        '204':
          description: No Content
      x-pretty-name: deleteCurrentUserSubscriptionById
      x-required-privilege:
        owner: PLATFORM
        targetDomain: ACTIVITIES
        type: VIEW
        targetId: '*'
      x-required-privileges:
      - owner: PLATFORM
        targetDomain: ACTIVITIES
        type: VIEW
        targetId: '*'
      x-ui-operation-id: /rest/organizations/paramId/subscriptions/me/paramId_delete
  /rest/organizations/{organizationId}/subscriptions/me/{subscriptionId}/enable:
    put:
      tags:
      - Subscription
      summary: Enable Subscription for Current Member
      description: 'Enables a [subscription](https://docs.coveo.com/en/248/) to send [notifications](https://docs.coveo.com/en/221/) for the current [member](https://docs.coveo.com/en/2869/)</br>**Note:** Only OAuth2 token authentication works when working with user [notifications](https://docs.coveo.com/en/221/). Using API keys will not work as they cannot be traced back to an individual member.<br /><br /><details><summary>Privilege required</summary>

        ```

        {"owner":"PLATFORM","targetDomain":"ACTIVITIES","type":"VIEW","targetId":"*"}

        ```

        </details>'
      externalDocs:
        description: Disable or enable a user notification
        url: https://docs.coveo.com/en/1911/manage-an-organization/manage-user-notifications#disable-a-user-notification
      operationId: enableUserSubscriptionById
      parameters:
      - name: organizationId
        in: path
        description: The unique identifier of the target [organization](https://docs.coveo.com/en/185/).
        required: true
        schema:
          type: string
        example: mycoveocloudv2organizationg8tp8wu3
      - name: subscriptionId
        in: path
        description: The unique identifier of the subscription to enable.
        required: true
        schema:
          type: string
        example: z5zoxmpor75utkwavbyms2ngla
      responses:
        '204':
          description: No Content
      x-pretty-name: enableUserSubscriptionById
      x-required-privilege:
        owner: PLATFORM
        targetDomain: ACTIVITIES
        type: VIEW
        targetId: '*'
      x-required-privileges:
      - owner: PLATFORM
        targetDomain: ACTIVITIES
        type: VIEW
        targetId: '*'
      x-ui-operation-id: /rest/organizations/paramId/subscriptions/me/paramId/enable_put
  /rest/organizations/{organizationId}/subscriptions/me/{subscriptionId}/disable:
    put:
      tags:
      - Subscription
      summary: Disable Subscription for Current Member
      description: 'Disables a [subscription](https://docs.coveo.com/en/248/) from sending [notifications](https://docs.coveo.com/en/221/) for the current [member](https://docs.coveo.com/en/2869/)</br>**Note:** Only OAuth2 token authentication works when working with user [notifications](https://docs.coveo.com/en/221/). Using API keys will not work as they cannot be traced back to an individual member.<br /><br /><details><summary>Privilege required</summary>

        ```

        {"owner":"PLATFORM","targetDomain":"ACTIVITIES","type":"VIEW","targetId":"*"}

        ```

        </details>'
      externalDocs:
        description: Disable a user notification
        url: https://docs.coveo.com/en/1911/manage-an-organization/manage-user-notifications#disable-a-user-notification
      operationId: disableUserSubscriptionById
      parameters:
      - name: organizationId
        in: path
        description: The unique identifier of the target [organization](https://docs.coveo.com/en/185/).
        required: true
        schema:
          type: string
        example: mycoveocloudv2organizationg8tp8wu3
      - name: subscriptionId
        in: path
        description: The unique identifier of the subscription to disable.
        required: true
        schema:
          type: string
        example: z5zoxmpor75utkwavbyms2ngla
      responses:
        '204':
          description: No Content
      x-pretty-name: disableUserSubscriptionById
      x-required-privilege:
        owner: PLATFORM
        targetDomain: ACTIVITIES
        type: VIEW
        targetId: '*'
      x-required-privileges:
      - owner: PLATFORM
        targetDomain: ACTIVITIES
        type: VIEW
        targetId: '*'
      x-ui-operation-id: /rest/organizations/paramId/subscriptions/me/paramId/disable_put
  /rest/organizations/{organizationId}/subscriptions:
    get:
      tags:
      - Subscription
      summary: List Subscriptions
      description: 'Lists all [subscriptions](https://docs.coveo.com/en/248/) in a [Coveo organization](https://docs.coveo.com/en/185/).<br /><br /><details><summary>Privilege required</summary>

        ```

        {"owner":"PLATFORM","targetDomain":"SUBSCRIPTION","type":"VIEW","targetId":"*"}

        ```

        </details>'
      operationId: getSubscriptions
      parameters:
      - name: organizationId
        in: path
        description: The unique identifier of the target [organization](https://docs.coveo.com/en/185/).
        required: true
        schema:
          type: string
        example: mycoveocloudv2organizationg8tp8wu3
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SubscriptionModel'
      x-pretty-name: getSubscriptions
      x-required-privilege:
        owner: PLATFORM
        targetDomain: SUBSCRIPTION
        type: VIEW
        targetId: '*'
      x-required-privileges:
      - owner: PLATFORM
        targetDomain: SUBSCRIPTION
        type: VIEW
        targetId: '*'
      x-ui-operation-id: /rest/organizations/paramId/subscriptions_get
    post:
      tags:
      - Subscription
      summary: Create Subscription
      description: 'Creates a [subscription](https://docs.coveo.com/en/248/)<br /><br /><details><summary>Privilege required</summary>

        ```

        {"owner":"PLATFORM","targetDomain":"SUBSCRIPTION","type":"CREATE","targetId":"*"}

        ```

        </details>'
      externalDocs:
        description: Create a Subscription with the API
        url: https://docs.coveo.com/en/36/
      operationId: createSubscription
      parameters:
      - name: organizationId
        in: path
        description: The unique identifier of the target [organization](https://docs.coveo.com/en/185/).
        required: true
        schema:
          type: string
        example: mycoveocloudv2organizationg8tp8wu3
      requestBody:
        description: The JSON configuration to use for the new [subscription](https://docs.coveo.com/en/248/).
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EditSubscriptionModel'
        required: true
      responses:
        '201':
          description: Created
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/SubscriptionModel'
      x-pretty-name: createSubscription
      x-required-privilege:
        owner: PLATFORM
        targetDomain: SUBSCRIPTION
        type: CREATE
        targetId: '*'
      x-required-privileges:
      - owner: PLATFORM
        targetDomain: SUBSCRIPTION
        type: CREATE
        targetId: '*'
      x-ui-operation-id: /rest/organizations/paramId/subscriptions_post
  /rest/organizations/{organizationId}/subscriptions/{subscriptionId}/test:
    post:
      tags:
      - Subscription
      summary: Test Subscription
      description: 'Tests a [subscription](https://docs.coveo.com/en/248/) in a [Coveo organization](https://docs.coveo.com/en/185/).<br /><br /><details><summary>Privilege required</summary>

        ```

        {"owner":"PLATFORM","targetDomain":"SUBSCRIPTION","type":"EDIT","targetId":"{subscriptionId}"}

        ```

        </details>'
      externalDocs:
        description: Testing a Subscription
        url: https://docs.coveo.com/en/44/
      operationId: testSubscription
      parameters:
      - name: organizationId
        in: path
        description: The unique identifier of the target [organization](https://docs.coveo.com/en/185/).
        required: true
        schema:
          type: string
        example: mycoveocloudv2organizationg8tp8wu3
      - name: subscriptionId
        in: path
        description: The unique identifier of the subscription to test.
        required: true
        schema:
          type: string
        example: z5zoxmpor75utkwavbyms2ngla
      responses:
        '204':
          description: No Content
      x-pretty-name: testSubscription
      x-required-privilege:
        owner: PLATFORM
        targetDomain: SUBSCRIPTION
        type: EDIT
        targetId: '{subscriptionId}'
      x-required-privileges:
      - owner: PLATFORM
        targetDomain: SUBSCRIPTION
        type: EDIT
        targetId: '{subscriptionId}'
      x-ui-operation-id: /rest/organizations/paramId/subscriptions/paramId/test_post
  /rest/organizations/{organizationId}/subscriptions/me:
    get:
      tags:
      - Subscription
      summary: List Subscriptions for Current Member
      description: 'Lists all [subscriptions](https://docs.coveo.com/en/248/) of the current [member](https://docs.coveo.com/en/2869/).</br>**Note:** Only OAuth2 token authentication works when working with user [notifications](https://docs.coveo.com/en/221/). Using API keys will not work as they cannot be traced back to an individual member.<br /><br /><details><summary>Privilege required</summary>

        ```

        {"owner":"PLATFORM","targetDomain":"ORGANIZATION","type":"VIEW","targetId":"*"}

        ```

        </details>'
      externalDocs:
        description: Manage User Notifications
        url: https://docs.coveo.com/en/1911/
      operationId: getCurrentUserSubscriptions
      parameters:
      - name: organizationId
        in: path
        description: The unique identifier of the target [organization](https://docs.coveo.com/en/185/).
        required: true
        schema:
          type: string
        example: mycoveocloudv2organizationg8tp8wu3
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SubscriptionModel'
      x-pretty-name: getCurrentUserSubscriptions
      x-required-privilege:
        owner: PLATFORM
        targetDomain: ORGANIZATION
        type: VIEW
        targetId: '*'
      x-required-privileges:
      - owner: PLATFORM
        targetDomain: ORGANIZATION
        type: VIEW
        targetId: '*'
      x-ui-operation-id: /rest/organizations/paramId/subscriptions/me_get
    post:
      tags:
      - Subscription
      summary: Create Subscription for Current Member
      description: 'Creates a [subscription](https://docs.coveo.com/en/248/) for the current [member](https://docs.coveo.com/en/2869/)</br>**Note:** Only OAuth2 token authentication works when working with user [notifications](https://docs.coveo.com/en/221/). Using API keys will not work as they cannot be traced back to an individual member.<br /><br /><details><summary>Privilege required</summary>

        ```

        {"owner":"PLATFORM","targetDomain":"ACTIVITIES","type":"VIEW","targetId":"*"}

        ```

        </details>'
      externalDocs:
        description: Creating a Subscription
        url: https://docs.coveo.com/en/36/
      operationId: createSubscriptionForCurrentUser
      parameters:
      - name: organizationId
        in: path
        description: The unique identifier of the target [organization](https://docs.coveo.com/en/185/).
        required: true
        schema:
          type: string
        example: mycoveocloudv2organizationg8tp8wu3
      requestBody:
        description: The JSON configuration to use for the new subscription.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EditSubscriptionModel'
        required: true
      responses:
        '201':
          description: Created
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/SubscriptionModel'
      x-pretty-name: createSubscriptionForCurrentUser
      x-required-privilege:
        owner: PLATFORM
        targetDomain: ACTIVITIES
        type: VIEW
        targetId: '*'
      x-required-privileges:
      - owner: PLATFORM
        targetDomain: ACTIVITIES
        type: VIEW
        targetId: '*'
      x-ui-operation-id: /rest/organizations/paramId/subscriptions/me_post
  /rest/organizations/{organizationId}/subscriptions/me/{subscriptionId}/test:
    post:
      tags:
      - Subscription
      summary: Test Subscription for Current Member
      description: 'Tests a [subscription](https://docs.coveo.com/en/248/) for the current [member](https://docs.coveo.com/en/2869/)</br>**Note:** Only OAuth2 token authentication works when working with user [notifications](https://docs.coveo.com/en/221/). Using API keys will not work as they cannot be traced back to an individual member.<br /><br /><details><summary>Privilege required</summary>

        ```

        {"owner":"PLATFORM","targetDomain":"ACTIVITIES","type":"VIEW","targetId":"*"}

        ```

        </details>'
      externalDocs:
        description: Testing a Subscription
        url: https://docs.coveo.com/en/44/
      operationId: testSubscriptionForCurrentUser
      parameters:
      - name: organizationId
        in: path
        description: The unique identifier of the target [organization](https://docs.coveo.com/en/185/).
        required: true
        schema:
          type: string
        example: mycoveocloudv2organizationg8tp8wu3
      - name: subscriptionId
        in: path
        description: The unique identifier of the subscription to test.
        required: true
        schema:
          type: string
        example: z5zoxmpor75utkwavbyms2ngla
      responses:
        '204':
          description: No Content
      x-pretty-name: testSubscriptionForCurrentUser
      x-required-privilege:
        owner: PLATFORM
        targetDomain: ACTIVITIES
        type: VIEW
        targetId: '*'
      x-required-privileges:
      - owner: PLATFORM
        targetDomain: ACTIVITIES
        type: VIEW
        targetId: '*'
      x-ui-operation-id: /rest/organizations/paramId/subscriptions/me/paramId/test_post
components:
  schemas:
    EditSubscriptionModel:
      type: object
      properties:
        enabled:
          type: boolean
          description: Whether the subscription can send [notifications](https://docs.coveo.com/en/221/).
        name:
          type: string
          description: The display name for the subscription.
          example: Refresh Notifications
        description:
          type: string
          description: A brief description for the subscription.
          example: Sends a POST HTTP request to http://www.example.com/myendpoint when a refresh operation fails on a specific source.
        pattern:
          $ref: '#/components/schemas/SubscriptionPatternModel'
        type:
          type: string
          description: 'The way the [subscription](https://docs.coveo.com/en/248/) sends notifications.</br>**Allowed values:**</br>- `EMAIL`: Send user-friendly, HTML formatted emails whose content includes only the most vital activity event information.</br>- `EMAIL_JSON`: Send un-formatted emails whose content includes the entire activity event data.</br>- `WEB_HOOK`: Send HTTP POST requests to the URL you specify as the `serviceUrl` property value of the `parameters` object.'
          enum:
          - EMAIL
          - EMAIL_JSON
          - WEB_HOOK
          - HOME_PAGE
        frequency:
          type: string
          description: 'The frequency at which the [subscription](https://docs.coveo.com/en/248/) sends notifications.</br>**Allowed values:**</br>- `LIVE`: Send notifications as soon as possible when a matching activity event occurs.</br>- `HOURLY`: Send periodical notifications including all matching activity events that occurred within the hour.</br>- `DAILY`: Send periodical notifications including all matching activity events that occurred within the day.</br>- `WEEKLY`: Send periodical notifications including all matching activity events that occurred within the week.'
          enum:
          - LIVE
          - HOURLY
          - DAILY
          - WEEKLY
        parameters:
          $ref: '#/components/schemas/SubscriptionParametersModel'
      description: The new configuration to update the [subscription](https://docs.coveo.com/en/248/) to.
    SubscriptionStatusModel:
      type: object
      properties:
        healthIndicator:
          type: string
          description: 'A general indication of how well the subscription is doing</br>**Allowed values:**</br>- `GOOD`: A very low percentage (i.e., less than 5%) of the notifications triggered by the subscription are failures, errors, or cancellations.</br>- `WARNING`: A relatively low, but still significant percentage (i.e., between 5% and 20%) of the notifications triggered by the subscription are failures, errors, or cancellations.</br>- `PROBLEMATIC`: A relatively high percentage (i.e., 20% or more) of the notifications triggered by the subscription are failures, errors, or cancellations.</br>- `UNKNOWN`: No statistics are available for the subscription.'
          enum:
          - GOOD
          - WARNING
          - PROBLEMATIC
          - UNKNOWN
        statistics:
          $ref: '#/components/schemas/SubscriptionStatisticsModel'
        latestResponseMessage:
          type: string
          description: The response message from the most recent service request.
          example: '`200 OK`'
      description: The [status of the subscription](https://docs.coveo.com/en/1583/manage-an-organization/manage-organization-notifications#subscription-status).</br>See [Review the usage statistics of an organization notification](https://docs.coveo.com/en/1583/manage-an-organization/manage-organization-notifications#review-the-usage-statistics-of-an-organization-notification).
    SubscriptionStatisticsModel:
      type: object
      properties:
        numberOfSuccess:
          type: integer
          description: The number of times today that the notification was successfully processed and sent to the expected email addresses or service URLs.
          format: int32
        numberOfFailures:
          type: integer
          description: The number of times today that the email or webhook server to which the notification was sent returned an error or could not be reached.
          format: int32
        numberOfErrors:
          type: integer
          description: The number

# --- truncated at 32 KB (41 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/coveo/refs/heads/main/openapi/coveo-subscription-api-openapi.yml