Create a subscription

View as MarkdownOpen in Claude
Create a subscription for an event type. When an event is triggered in the Prolific system, the hook will automatically notify the specified target URL. Before creating a subscription, you must ensure that you have created a secret for your workspace.

Authentication

AuthorizationToken

Header authentication of the form Token <token>

Request

This endpoint expects an object.
event_typestringRequired
The name of the event type associated to the subscription.
target_urlstringRequired
The URL that the subscription will notify when your event type is triggered.
workspace_idstringRequired
The ID of the workspace we will create the subscription in.
is_enabledbooleanOptional
Whether the subscription is enabled or not.

Response

Created
resultslist of objects
List of all subscriptions.

Errors