Create Hook

​

Body·

required
application/json
    • Bearer token

  • Authentication type

  • Target HTTPS API endpoint URL

  • Entity type this hook applies to

    values
    dealscompaniespeopleleads
  • Maps target API fields to source entity fields

    Properties: 1
  • Display name for the event hook

  • Optional description

  • Optional HTTP headers

    Properties: 1
  • HTTP method (currently only POST)

    values
    POST
  • Request timeout in seconds

  • Maps CRM field values to API values

    Properties: 1

Responses

  • application/json
  • application/json
Request Example for post/event_hooks/
curl https://crm.dreamhub.ai/api/v1/settings/event_hooks/ \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "name": "",
  "description": "",
  "entityType": "deals",
  "httpMethod": "POST",
  "endpointUrl": "",
  "timeoutSeconds": 10,
  "headers": {
    "additionalProperty": ""
  },
  "authType": "",
  "authConfig": {
    "token": ""
  },
  "fieldMappings": {
    "additionalProperty": ""
  },
  "valueMappings": {
    "additionalProperty": {
      "additionalProperty": ""
    }
  },
  "additionalProperty": "anything"
}'
{
  "id": "string"
}