Tradesync
Browse API reference
API reference

Create webhook

POSThttps://api.tradesync.com/webhooks

Create a webhook subscription.

Last updated

Request body

urlType: stringRequired: Yes
Receiving URLAccepted values / limits: HTTP or HTTPS URL
authenticationType: stringRequired: Yes
Authentication used when delivering webhooksAccepted values / limits: none, basic_auth, bearer_token, api_key
usernameType: stringRequired: Conditional
Required if authentication is basic_authAccepted values / limits: —
passwordType: stringRequired: Conditional
Required if authentication is basic_authAccepted values / limits: —
tokenType: stringRequired: Conditional
Required if authentication is bearer_tokenAccepted values / limits: —
keyType: stringRequired: Conditional
Header name; required if authentication is api_keyAccepted values / limits: —
valueType: stringRequired: Conditional
Header value; required if authentication is api_keyAccepted values / limits: —

Response example

See response field definitions for field types and conditional fields.

{
    "result": "success",
    "status": 200,
    "data": {
        "id": 189,
        "created_at": "2025-04-29T08:48:04Z",
        "updated_at": "2025-04-29T08:48:04Z",
        "url": "http://test.com",
        "authentication": "none"
    }
}

Errors

Code HTTP status Condition
too_many_webhooks 422 The user already has five webhooks.

See also common response codes.