Skip to main content
GET
/
webhooks
/
{webhookId}
Get webhook
curl --request GET \
  --url https://management.api.smartcar.com/v3/webhooks/{webhookId} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "type": "webhook",
    "attributes": {
      "name": "Charging Webhook",
      "callbackUri": "https://example.com/webhook",
      "isEnabled": true,
      "triggers": [
        {
          "group": "SignalGroup",
          "name": "SignalName",
          "code": "signalCode"
        }
      ],
      "data": [
        {
          "group": "SignalGroup",
          "name": "SignalName",
          "code": "signalCode"
        }
      ],
      "errorCallbackUri": "https://example.com/webhook/errors",
      "autoSubscribe": false
    },
    "links": {
      "self": "https://management.api.smartcar.com/v3/webhooks/4b4ddadf-3219-4a2e-9ed0-c4d0f6d4f7ca"
    },
    "meta": {
      "createdAt": "2023-11-07T05:31:56Z"
    }
  }
}

Authorizations

Authorization
string
header
required

The Authorization header must be provided with a valid bearer token. Example: Authorization: Bearer {token}

Path Parameters

webhookId
string<uuid>
required

The unique identifier of the webhook

Response

The webhook resource

data
object
required