v51

latestSwagger 2.0Mozilla Public License 2.0raw.githubusercontent.com2026-08-0167151358.9 KB
Sources

Create a source

This endpoint creates a source

post/v1/projects/{projectID}/sources

Path parameters

projectIDstring required

Project ID

Request body

body_functionstring

Function is a javascript function used to mutate the payload immediately after ingesting an event

event_type_locationstring

EventTypeLocation is used to specify where Convoy should read the event type from an incoming webhook request.

header_functionstring

Function is a javascript function used to mutate the headers immediately after ingesting an event

idempotency_keysstring[]

IdempotencyKeys are used to specify parts of a webhook request to uniquely identify the event in an incoming webhooks project.

namestring

Source name.

provider'github' | 'twitter' | 'shopify' | ''
type'http' | 'rest_api' | 'pub_sub' | 'db_change_stream' | ''

Response

Created

messagestring
statusboolean