---
title: "API Documentation | Zylar"
description: "Zylar REST API reference: campaigns, leads, inboxes, replies and webhooks."
url: https://zylar.io/api-docs
---

# The Zylar API.

A REST API for leads, sequences, inboxes and stats, plus webhooks for every event. JSON in, JSON out. Available on Growth and Agency plans.

## Authentication

Create a key in Settings → API. Send it as a bearer token on every request. Keys are scoped to one workspace.

```
curl https://api.zylar.io/v1/sequences \
  -H "Authorization: Bearer zy_live_..."
```

## Rate limits & errors

10 requests per second per key. Over the limit returns 429 with a Retry-After header. Errors use standard HTTP codes and a JSON body.

A field is missing or invalid. See error.field.

The resource does not exist in this workspace.

Slow down and retry after the header value.

## Leads

List leads, newest first. Paginated with a cursor.

Only leads in this sequence.

active, replied, interested, bounced, unsubscribed, completed.

From the previous response’s next_cursor.

```
curl "https://api.zylar.io/v1/leads?status=interested&limit=25" \
  -H "Authorization: Bearer zy_live_..."

# 200 OK
{
  "data": [{ "id": "ld_8f2k", "email": "jordan@northbound.io", "status": "interested" }],
  "next_cursor": "c_91x"
}
```

Add up to 1,000 leads to a sequence. Duplicates and blocklisted addresses are skipped and reported.

Objects with email (required), first_name, last_name, company and any custom fields.

```
curl -X POST https://api.zylar.io/v1/leads \
  -H "Authorization: Bearer zy_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "sequence_id": "sq_q4_agencies",
    "leads": [{ "email": "dana@leadwell.co", "first_name": "Dana", "company": "Leadwell" }]
  }'

# 201 Created
{ "added": 1, "skipped": [] }
```

Remove a lead from all sequences. Their reply history is kept.

## Sequences

List sequences with status and step count.

Pause or resume a sequence.

```
curl -X PATCH https://api.zylar.io/v1/sequences/sq_q4_agencies \
  -H "Authorization: Bearer zy_live_..." \
  -d '{ "status": "paused" }'
```

## Inboxes

List connected inboxes with health score (0–100), daily limit and status (active, warming, resting).

## Stats

Sends, replies, positive replies and meetings, grouped by sequence, step, variant or inbox.

sequence, step, variant, inbox. Default sequence.

ISO dates. Default last 30 days.

## Webhooks

Subscribe an HTTPS endpoint to one or more events. Payloads are signed with X-Zylar-Signature (HMAC-SHA256 of the body with your webhook secret). Failed deliveries retry 5 times over 24 hours.

Create a subscription.

lead.replied, reply.interested, reply.ooo, lead.bounced, lead.unsubscribed, sequence.completed, domain.paused.

```
curl -X POST https://api.zylar.io/v1/webhooks \
  -H "Authorization: Bearer zy_live_..." \
  -d '{
    "url": "https://your-app.com/hooks/zylar",
    "events": ["reply.interested", "domain.paused"]
  }'

# 201 Created
{ "id": "wh_3n7", "secret": "whsec_..." }
```

The same events work in Zapier and Make.
