POST
/
v1
/
organizations
/
webhooks
/
Create Webhook
curl --request POST \
  --url https://api.mixpeek.com/v1/organizations/webhooks/ \
  --header 'Content-Type: application/json' \
  --data '{
  "webhook_id": "<string>",
  "webhook_name": "<string>",
  "internal_id": "<string>",
  "event_types": [
    "object.created"
  ],
  "channels": [
    {
      "channel": "email",
      "configs": {
        "to_addresses": [
          "<string>"
        ],
        "subject_template": "<string>",
        "body_template": "<string>",
        "content_type": "html",
        "cc_addresses": [
          "<string>"
        ],
        "bcc_addresses": [
          "<string>"
        ]
      }
    }
  ],
  "is_active": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}'
{
  "webhook_id": "<string>",
  "webhook_name": "<string>",
  "event_types": [
    "object.created"
  ],
  "channels": [
    {
      "channel": "email",
      "configs": {
        "to_addresses": [
          "<string>"
        ],
        "subject_template": "<string>",
        "body_template": "<string>",
        "content_type": "html",
        "cc_addresses": [
          "<string>"
        ],
        "bcc_addresses": [
          "<string>"
        ]
      }
    }
  ],
  "is_active": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Headers

Authorization
string | null

Bearer token authentication using your API key. Format: 'Bearer your_api_key'. To get an API key, create an account at mixpeek.com/start and generate a key in your account settings. Example: 'Bearer sk_1234567890abcdef'

Body

application/json

Represents a configured webhook for an organization.

Response

201
application/json

Successful Response

Represents a configured webhook for an organization.