API Overview

Cueflow provides a REST API for server-to-server integration. Use it to sync contacts, track events, and manage user data from your backend.

When to Use the API

Use API
Use Embed Script

Backend/server-side operations

Frontend/browser operations

Webhook handlers

User-initiated actions

Batch operations

Real-time user tracking

Database sync

Displaying messages

Base URL

https://app.cueflow.so/api/v1

Authentication

All API requests require authentication via API key.

Getting an API Key

  1. Go to Settings > API Keys in the dashboard

  2. Click Create API Key

  3. Copy the key (shown only once)

Using Your Key

Include the API key in the Authorization header:

Example Request

Response Format

Success Response

Error Response

HTTP Status Codes

Code
Description

200

Success

201

Created

400

Bad Request - Invalid input

401

Unauthorized - Invalid or missing API key

404

Not Found - Resource doesn't exist

409

Conflict - Resource already exists

429

Rate Limited - Too many requests

500

Server Error

Rate Limiting

API requests are rate limited to protect service stability.

Limit
Value

Requests per minute

100

Per API key

Yes

Rate Limit Headers

Every response includes rate limit information:

Handling Rate Limits

If you exceed the limit, you'll receive a 429 response:

Best practices:

  • Add delays between batch operations

  • Implement exponential backoff

  • Cache responses when possible

Endpoints

Contacts

Method
Endpoint
Description

POST

/contacts

Create or update a contact

GET

/contacts/:externalId

Get a contact

PATCH

/contacts/:externalId

Update a contact

DELETE

/contacts/:externalId

Delete a contact

Events

Method
Endpoint
Description

POST

/events

Track an event

Quick Start

1. Create a Contact

2. Track an Event

3. Update a Contact

SDKs & Libraries

Currently, we provide a REST API. Official SDKs are coming soon.

For now, use any HTTP client:

  • Node.js: axios, node-fetch

  • Python: requests, httpx

  • Ruby: httparty, faraday

  • Go: net/http

  • PHP: Guzzle

Next Steps

Last updated