# Send/Log An Event

[HTTPS API ](https://docs.blynk.io/en/~/revisions/ynmC8lZ6FPocTYWigjcO/blynk.cloud/device-https-api/broken-reference)-> Send/Log An Event

1. Check this [article](https://docs.blynk.io/en/~/revisions/ynmC8lZ6FPocTYWigjcO/getting-started/events-tutorial) on setting up an event
2. Use the GET call below to send event&#x20;

## Trigger the event by event code

<mark style="color:blue;">`GET`</mark> `https://{server_address}/external/api/logEvent?token={token}&code={event_code}&description={event_description}`

This endpoint allows you to trigger the event.<br>

**Example:**\
`https://blynk.cloud/external/api/logEvent?token=GVki9IC70vb3IqvsV0YD3el4y0OpneL1&code=firmware_update&description=test`

#### Path Parameters

| Name        | Type   | Description       |
| ----------- | ------ | ----------------- |
| description | string | Event description |
| code        | string | Event code        |
| token       | string | Device auth token |

{% tabs %}
{% tab title="200 Success" %}

```
```

{% endtab %}

{% tab title="400 Could not find a device token
or
Typo in code
or
Could not find event code" %}

```
{"error":{"message":"Invalid token."}}

or

{"error":{"message":"Event code is not provided."}}

or

{"error":{"message":"Can't find Event with this code in Product template"}}
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
You can get the **Device auth token** in [Device info](https://docs.blynk.io/en/~/revisions/ynmC8lZ6FPocTYWigjcO/getting-started/activating-devices/manual-device-activation#step-3-getting-auth-token).
{% endhint %}
