---
updatedAt: 2025-05-15T21:03:14.000Z
agentTools:
  projectIndex: https://docs.youlend.com/llms.txt
---

# Returns a list of Webhook Subscriptions for the lending partner

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "YouLend Third Party Notification API",
    "description": "Through this API you can subscribe to events and get notified of these events via webhook",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://partners.staging-youlendapi.com/notification"
    }
  ],
  "paths": {
    "/WebhookSubscription": {
      "get": {
        "tags": [
          "WebhookSubscription"
        ],
        "summary": "Returns a list of Webhook Subscriptions for the lending partner",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of Webhook Subscriptions are returned",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetWebhookSubscriptionModel"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetWebhookSubscriptionModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Something went wrong!"
          },
          "401": {
            "description": "Unauthorized request"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "GetWebhookSubscriptionModel": {
        "type": "object",
        "properties": {
          "subscriptionId": {
            "type": "string",
            "description": "Gets or sets the SubscriptionId",
            "format": "uuid"
          },
          "webhookUrl": {
            "type": "string",
            "description": "Gets or sets the webhook URL",
            "nullable": true
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookSubscriptionEventDetailsModel"
            },
            "description": "Gets or sets the Events",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WebhookSubscriptionEventDetailsModel": {
        "type": "object",
        "properties": {
          "eventCode": {
            "type": "string",
            "description": "Gets or sets the Events Codes",
            "nullable": true
          },
          "eventName": {
            "type": "string",
            "description": "Gets or sets the Events Names",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Gets or sets the Event Description",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://youlend-stag.eu.auth0.com/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "oauth2": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```