Revenue

Create a new revenue integration. Response contains the generated webhook path that the user must paste into their provider's dashboard.

post/projects/{project_id}/revenue/integrations

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/projects/{project_id}/revenue/integrations
  • Auth: HTTP bearer

Path parameters

project_idinteger required

Request body

providerstring required

Registered provider name, e.g. "stripe".

signing_secretstring required

Signing secret from the provider's dashboard.

Response

created_atstring date-time required
has_secretboolean required
idinteger required
last_event_atstring date-time nullable
project_idinteger required
providerstring required
statusstring required
webhook_pathstring required

Relative path the UI can display and copy. The frontend builds the full URL by prefixing its own origin.

webhook_path_tokenstring required

Unguessable token embedded in the public webhook URL. The full URL is {api_origin}/webhooks/revenue/{provider}/{webhook_path_token}.

Changes

No recorded changes to this operation across all 50 revisions of this API.