---
agentTools:
  projectIndex: https://docs.xkit.co/llms.txt
---

# Enabled

The `connection.enabled` event is fired when a user successfully connects a connector, including authorizing your app to access the 3rd party API.

### Event Type

`connection.enabled`

### Payload

[block:parameters]
{
  "data": {
    "h-0": "Property",
    "h-1": "Type",
    "0-1": "[Connector](https://docs.xkit.co/reference/webhook-connector)",
    "0-0": "`connector`",
    "1-0": "`context`",
    "1-1": "[User](https://docs.xkit.co/reference/webhook-context)"
  },
  "cols": 2,
  "rows": 2
}
[/block]

[block:code]
{
  "codes": [
    {
      "code": "POST /your/webhook/url HTTP/1.1\nAccept: application/json\nHost: your-domain.com\nContent-Type: application/json\n\n{\n  \"event_type\": \"connection.enabled\",\n  \"payload\": {\n    \"connector\": {\n      \"slug\": \"github-oauth\"\n    },\n    \"context\": {\n      \"external_id\": \"jFGlE7LIClQ30kdcFXb5epTDetC2\"\n    }\n  }\n}",
      "language": "http"
    }
  ],
  "sidebar": true
}
[/block]