Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejson
{
    "name": "<webhook_configuration_name>",
    "description": "<webhook_configuration_description>",
    "eventIdevent_id": "<event_id>",
    "eventGuideIdevent_guide_id": "<event_guide_id>",
    "hooks": [
        {
            "type": "<webhook_type>",
            "method": "POST",
            "endpoint": "<external_endpoint_url>",
            "origin": {
                "method": "POST",
                "endpoint": "https://gql.doo.net",
                "body": "<graphql_query>"
            }
        }
    ],
    "authentication": {
        "grant_type": "client_credentials",
        "endpoint": "<external_oauth_endpoint_url>",
        "credentials": {
            "client_id": "doo",
            "client_secret": "<external_client_secret>"
        },
        "header_format": "Authorization",
        "header_value_format": "Bearer %ACCESS_TOKEN%"
    }
}

...