# API & webhooks

Bring contacts and events in programmatically: the Instasent Ingest API and the webhook platforms. What the panel sets up for you — the source, its credentials and the stream log — and where the technical contract lives in the Developers zone.

**Language:** en
**Audience:** platform
**Translation key:** platform.data-sources.api-webhooks
**Search keywords:** api, ingest api, webhook, webhooks, stream, secret token, project uid, data source id, contacts endpoint, events endpoint, real time, push data, Make, Zapier, programmatic import
**Related pages:** /platform/es/data-sources/api-webhooks, /platform/en/data-sources, /platform/en/data-sources/connectors, /platform/en/data-sources/connectors/make, /platform/en/data-sources/connectors/zapier
**Docs index (every page):** https://docs.instasent.com/llms.txt
**This zone's index:** https://docs.instasent.com/platform/en/llms.txt
**This page:** https://docs.instasent.com/platform/en/data-sources/api-webhooks/ (HTML) · https://docs.instasent.com/platform/en/data-sources/api-webhooks.md (Markdown)
**Other language (es):** https://docs.instasent.com/platform/es/data-sources/api-webhooks.md

When you want contacts and events to flow in **programmatically and in real time**,
you use the Instasent **Ingest API** or one of the webhook platforms. This page
explains what the panel does for you — it creates the source, shows its credentials,
and streams a log of what arrives — and where the full technical contract lives.

## The Instasent Ingest API

The Ingest API imports contacts and events using Instasent's own format. Creating it
as a data source gives you a setup screen with everything you need to send data:

- `Contacts endpoint` — `url`
  `/v1/project/{uid}/datasource/{id}/stream/contacts` — where you post contacts.
- `Events endpoint` — `url`
  `/v1/project/{uid}/datasource/{id}/stream/events` — where you post events.
- `Project UID` — `string`
  Your project's identifier, part of every endpoint URL.
- `Data source ID` — `string`
  This source's identifier — each source has its own.
- `Secret token` — `string`
  The token that authenticates calls to this source. Each source has its own.

The setup screen also lists the **accepted attributes** and **accepted events**, and
shows a **stream log** of the incoming data so you can confirm it's arriving.

![The Ingest API source setup screen with the contacts and events endpoints, Project UID, Data source ID and Secret token](/platform/en/data-sources/images/api-webhooks--1-ingest-credentials.png)
*The Setup instructions screen: the contacts and events endpoints, the Project UID, Data source ID and Secret token, plus the accepted attributes and events.*

## Payload shape

Each source receives data keyed by **contact**. Every contact carries a `_user_id`, your
own identifier for that person, and sending the same `_user_id` again updates the
contact instead of creating a new one. An event names that contact with the same
`_user_id` and adds its own fields:

```json
[
  {
    "_user_id": "CUSTOMER-123",
    "_first_name": "Grace",
    "_phone_mobile": "+34600000000"
  }
]
```

```json
[
  {
    "_user_id": "CUSTOMER-123",
    "_event_id": "PAY-987",
    "_event_type": "payment",
    "_event_date": "2026-11-12T17:42:00+01:00",
    "_event_parameters": {
      "payment-id": "PAY-987",
      "payment-is-paid": true,
      "payment-amount": 49.90,
      "payment-currency": "EUR"
    }
  }
]
```

- `_event_id` is your identifier for this event; `_event_type` is one of the event types
  the source lists as **accepted events**, such as `payment` or `meeting_registered`.
- `_event_date` is when the event happened, with its time and time zone. Leave it out
  and the event takes the moment it arrives.
- `_event_parameters` holds the event's details; each event type accepts its own.

How to send events so flows and segments can use them (dates, identifiers, values) is
explained in [Best practices for sending events](/platform/en/data-sources/event-best-practices).

Every webhook and Ingest API source has **its own data source ID and secret token**,
so you can revoke or rotate one source without affecting the others.

## Webhook platforms

The webhook platforms — **Make**, **Zapier** and the rest — are the no-code way to
reach the same ingest stream. They use the **same per-source credentials as the Ingest
API** above: on the connector's page, press **Install {connector}** and Instasent
creates the source and shows you its **Project UID**, **Secret token** and **Data source
ID** under **Setup instructions** — these are the credentials you take to the platform. (This is what the connectors guide calls a
[webhook platform](/platform/en/data-sources/connectors#webhook-platforms-we-give-you-the-credentials).)
You build a scenario or zap in the platform that posts to your source's stream endpoint,
so you can wire Instasent up to tools that don't have a native connector. Each has its
own connector page with the exact steps:

- [Make](/platform/en/data-sources/connectors/make) - Send data from a Make scenario into the ingest stream.
- [Zapier](/platform/en/data-sources/connectors/zapier) - Send data from a Zap into the ingest stream.

## Where the panel ends and Developers begins

This page is about the **panel** side: creating the source, reading its credentials
and payload shape, and watching the stream log. The **full technical contract** —
the request and response schemas, every accepted field, error handling — lives in
the Developers zone:

- [Ingest API guide](https://docs.instasent.com/platform-api/ingest-api/guide) - The complete Ingest API reference and Swagger for high-volume contacts and events.

When you need to integrate at the code level, follow the Developers guide; come back
here to create the source and read its credentials.

---

This is one page of the Instasent documentation. For the complete machine-readable index of every guide and API reference, fetch https://docs.instasent.com/llms.txt — start there for full context.
