Hira Documentation
FR EN
Free trial

Launch your first campaign

From contact import to report, through the API.

This guide goes from a contact list to a report, through the API only. For the same without code, use the Campaigns page in the portal.

1. Import the contacts#

Terminal
curl -X POST https://hira.localtechstudio.com/api/v1/contacts/import \
  -H "Authorization: Bearer pk_live_..." \
  -H "Content-Type: application/json" \
  -d '{"companyId":"cmp_...","csv":"phone,name,tags,consent\n699123456,Awa,VIP,yes\n699765432,Paul,VIP,yes"}'

2. Prepare the draft#

Terminal
curl -X POST https://hira.localtechstudio.com/api/v1/campaigns \
  -H "Authorization: Bearer pk_live_..." \
  -H "Content-Type: application/json" \
  -d '{"connectionId":"con_...","template":{"name":"december_promo","language":"en"},"audience":{"tags":["VIP"]},"variableMap":[{"source":"name","default":"there"}]}'

Keep the returned id and look at skippedBy: if many numbers are set aside, understand why before going further.

3. Check#

Terminal
curl https://hira.localtechstudio.com/api/v1/campaigns/camp_.../preview -H "Authorization: Bearer pk_live_..."

Check the recipient count, the estimated duration, the number's tier and quality. Send yourself a test with POST /campaigns/{id}/test.

4. Launch#

Terminal
curl -X POST https://hira.localtechstudio.com/api/v1/campaigns/camp_.../launch -H "Authorization: Bearer pk_live_..."

To schedule the send, add {"scheduledAt":"2026-12-01T08:00:00Z"}.

5. Follow and follow up#

Terminal
curl https://hira.localtechstudio.com/api/v1/campaigns/camp_.../report -H "Authorization: Bearer pk_live_..."

You get delivery, reads, replies, clicks and STOP. A week later, POST /campaigns/{id}/retarget with {"mode":"not_read"} prepares a follow-up for those who did not read.