> For the complete documentation index, see [llms.txt](https://evntaly.gitbook.io/evntaly/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://evntaly.gitbook.io/evntaly/sdks/curl.md).

# cURL

The Evntaly Web SDK allows developers to seamlessly track user events, identify users, and manage analytics through simple HTTP API calls.

## Track Event API

**Endpoint:** `POST https://evntaly.com/prod/api/v1/register/event`

**Description:** Sends a custom event to Evntaly for tracking.

```json
  curl -X POST https://evntaly.com/prod/api/v1/register/event \
  -H 'Content-Type: application/json' \
  -H 'secret: YOUR_DEVELOPER_SECRET' \
  -H 'pat: YOUR_API_TOKEN' \
  -d '{
      "title": "Account License Upgraded",
      "description": "User upgraded their license to Pro",
      "message": "take care.",
      "data": {
          "user_id": "67890",
          "timestamp": "2025-01-08T09:30:00Z",
          "referrer": "social_media",
          "email_verified": false
      },
      "tags": [],
      "notify": true,
      "icon": "⤴️",
      "apply_rule_only": false,
      "user": {
          "id": "0f6934fd-99c0-41ca-84f4"
      },
      "type": "Page View",
      "sessionID": "20750ebc-dabf-4fd4-9498-443bf30d6095_bsd",
      "feature": "Backend API",
      "topic": "@api"
  }'
```

#### Example Response

```json
{
    "status": "success",
    "message": "Event tracked successfully."
}
```

## Identify User API

**Endpoint:** `POST https://evntaly.com/prod/api/v1/identify/user`

**Description:** Associates user information with analytics events.

```json
curl -X POST https://evntaly.com/prod/api/v1/identify/user \
-H 'Content-Type: application/json' \
-H 'X-Project-Token: YOUR_API_TOKEN' \
-d '{
    "id": "0f6934fd-99c0-41ca-3333",
    "email": "Mayan@me.com",
    "full_name": "Mayan Alameer Ashraf",
    "organization": "Home",
    "data": {
        "id": "Mayan",
        "email": "Mayan@Decaud.com",
        "Location": "Egypt",
        "salary": 1233312,
        "timezone": "Africa/Cairo"
    }
}'
```

#### Example Response

```json
{
    "status": "success",
    "message": "User identified successfully."
}
```

## Tips for Using cURL

* **Use Verbose Mode:** Add `-v` to see detailed request and response headers.
* **Debug JSON Payloads:** Test JSON with tools like [jsonlint.com](https://jsonlint.com/) to avoid syntax errors.

## Support

For additional help, contact support at **<support@evntaly.com>**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://evntaly.gitbook.io/evntaly/sdks/curl.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
