Quickstart
This guide creates an API key, lists the agents in your workspace, and creates an outreach campaign for one of them.
Create an API key
In the dashboard, open Settings → API Keys (https://app.jelliu.co/settings?tab=api-keys) and create a key.
- Only the workspace owner can create, list or revoke keys.
- Pick the permission. Creating and activating campaigns are admin operations, so for this guide choose full. See Authentication for what each scope can reach.
- Copy the key when it is shown. It looks like
jl_followed by 64 hexadecimal characters, and it is displayed only once.
Store it in an environment variable:
List your agents
Every campaign runs on an agent. Fetch the agents in your workspace and copy the id of the one you want to use.
The response is { "data": [ ... ] }, newest agents first. limit accepts 1 to 200 (default 50); see Pagination for paging and the search filter.
Campaign fields
The agent that runs the campaign. It must belong to your workspace.
1 to 200 characters.
What the campaign is about. 10 to 5000 characters.
Who you are contacting. 1 to 1000 characters.
timezone is an IANA time zone (for example America/Bogota). days is an array of { day, startHour, endHour, enabled }, where day is monday through sunday, startHour is 0 to 23, endHour is 1 to 24, and startHour must be lower than endHour on enabled days. At least one day must be enabled.
One of voice, whatsapp, webchat, email.
One of sales, support, scheduling, surveys, collections, retention, notifications, interview, language_assessment, general.
1 to 500.
0 to 10.
5 to 1440.
WhatsApp campaigns: the approved template used to reach out. Without it, a WhatsApp campaign only answers people who write in.
Email campaigns: 1 to 300 characters.
Email campaigns: 1 to 20000 characters.
Next steps
- Learn how scopes work in Authentication.
- Handle failures by
codewith Errors. - Get notified when calls finish with Webhooks.

