> For the complete documentation index, see [llms.txt](https://docs.podplay.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.podplay.app/api/configuration/webhooks.md).

# Webhooks

Incoming webhook endpoints for third-party integrations.

## POST /webhooks/users/current

>

```json
{"openapi":"3.0.0","info":{"title":"PodPlay Inc API","version":"2.0"},"tags":[{"name":"Webhooks","description":"Incoming webhook endpoints for third-party integrations."}],"servers":[{"url":"/apis/v2","description":"Current Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}}},"paths":{"/webhooks/users/current":{"post":{"operationId":"WebhooksController_createCurrentUser","parameters":[],"responses":{"204":{"description":"Successfully created user based on the Authorization header, and Firebase data."}},"tags":["Webhooks"]}}}}
```

## POST /webhooks/replays/on-premise/status

>

```json
{"openapi":"3.0.0","info":{"title":"PodPlay Inc API","version":"2.0"},"tags":[{"name":"Webhooks","description":"Incoming webhook endpoints for third-party integrations."}],"servers":[{"url":"/apis/v2","description":"Current Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}},"schemas":{"ReplayGenerationClientRequestDto":{"type":"object","properties":{"clipId":{"type":"string","writeOnly":true},"success":{"type":"boolean","writeOnly":true},"cameraId":{"type":"string","writeOnly":true},"url":{"type":"string","writeOnly":true},"hlsUrl":{"type":"string","writeOnly":true},"thumbnailSmallUrl":{"type":"string","writeOnly":true},"thumbnailMediumUrl":{"type":"string","writeOnly":true},"thumbnailLargeUrl":{"type":"string","writeOnly":true}},"required":["clipId","success","cameraId","url","hlsUrl","thumbnailSmallUrl","thumbnailMediumUrl","thumbnailLargeUrl"]}}},"paths":{"/webhooks/replays/on-premise/status":{"post":{"operationId":"WebhooksController_updateReplayOnPremiseStatus","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayGenerationClientRequestDto"}}}},"responses":{"200":{"description":"Successfully updated a replay status."}},"tags":["Webhooks"]}}}}
```

## POST /webhooks/replays/on-premise/cleanup

>

```json
{"openapi":"3.0.0","info":{"title":"PodPlay Inc API","version":"2.0"},"tags":[{"name":"Webhooks","description":"Incoming webhook endpoints for third-party integrations."}],"servers":[{"url":"/apis/v2","description":"Current Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}},"schemas":{"ReplayCleanupResponseDto":{"type":"object","properties":{"success":{"type":"boolean","writeOnly":true},"id":{"type":"string","writeOnly":true},"errors":{"writeOnly":true,"type":"array","items":{"type":"string"}}},"required":["success","id","errors"]}}},"paths":{"/webhooks/replays/on-premise/cleanup":{"post":{"operationId":"WebhooksController_handleReplayCleanupResponse","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayCleanupResponseDto"}}}},"responses":{"200":{"description":"Succesfully cleaned up replays."}},"tags":["Webhooks"]}}}}
```

## POST /webhooks/stripe

>

```json
{"openapi":"3.0.0","info":{"title":"PodPlay Inc API","version":"2.0"},"tags":[{"name":"Webhooks","description":"Incoming webhook endpoints for third-party integrations."}],"servers":[{"url":"/apis/v2","description":"Current Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}}},"paths":{"/webhooks/stripe":{"post":{"operationId":"WebhooksStripeController_handleStripeWebhook","parameters":[{"name":"stripe-signature","required":true,"in":"header","schema":{"type":"string"}}],"responses":{"204":{"description":"Successfully processed the Stripe request."}},"tags":["Webhooks"]}}}}
```

## POST /webhooks/stripe/connect

>

```json
{"openapi":"3.0.0","info":{"title":"PodPlay Inc API","version":"2.0"},"tags":[{"name":"Webhooks","description":"Incoming webhook endpoints for third-party integrations."}],"servers":[{"url":"/apis/v2","description":"Current Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}}},"paths":{"/webhooks/stripe/connect":{"post":{"operationId":"WebhooksStripeController_handleStripeConnectWebhook","parameters":[{"name":"stripe-signature","required":true,"in":"header","schema":{"type":"string"}}],"responses":{"204":{"description":"Successfully processed the Stripe request."}},"tags":["Webhooks"]}}}}
```

## POST /webhooks/discourse/notifications

>

```json
{"openapi":"3.0.0","info":{"title":"PodPlay Inc API","version":"2.0"},"tags":[{"name":"Webhooks","description":"Incoming webhook endpoints for third-party integrations."}],"servers":[{"url":"/apis/v2","description":"Current Server"}],"paths":{"/webhooks/discourse/notifications":{"post":{"operationId":"WebhooksDiscourseController_handleNotify","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscourseNotificationRequestDto"}}}},"responses":{"200":{"description":"Successfully processed the notifications request."},"400":{"description":"The provided request body could not be processed."},"422":{"description":"The provided information could not be processed, errors will be listed as part of the response."}},"tags":["Webhooks"]}}},"components":{"schemas":{"DiscourseNotificationRequestDto":{"type":"object","properties":{"data":{"type":"string","writeOnly":true},"aesKey":{"type":"string","writeOnly":true},"aesIv":{"type":"string","writeOnly":true}},"required":["data","aesKey","aesIv"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.podplay.app/api/configuration/webhooks.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
