×
Price list FAQ Contact us
 

API and Webhooks

For freely connecting Efi to your systems: an API key for reading and creating tasks, contacts and leads, and a webhook that notifies your system when something happens.

In this article

  • How to create a key
  • What you can do with the key
  • Webhooks: events, signature and retries
  • Limits and protections

API keys

In the Connections screen, in the Free integrations card (for owners and system administrators), you write a name (for example Zapier), choose read only or read and write and click Create key. The key is shown only once: you must copy it immediately. You can have up to 10 active keys, and each key belongs to one business. Only the beginning of the key is shown, and when it was last used. Revocation takes effect immediately.

What you can do

Calls are sent to the address https://asmade.co.il/efi/v1.php?r=/path with the header Authorization: Bearer efi_... (the key is not sent in the address).

PathWhat it doesKey
GET /meThe business identifier and the key's permissionRead
GET /membersWho is on the team (to assign a task)Read
GET /tasksA list of tasks (status, limit, offset)Read
POST /tasksCreating a task: title, description, assignedUserId, dueAt, priorityWrite
POST /tasks/123/completeClosing a taskWrite
GET /contacts, POST /contactsContacts: search with q, and create with name, phone, email, notes and linksRead, write
GET /leads, POST /leadsLeads: name, title, phone, email, source, estValue, note. The person handling the lead receives a WhatsApp message.Read, write

An example: curl -X POST -H "Authorization: Bearer efi_..." -H "Content-Type: application/json" -d '{"title":"Call the customer"}' "https://asmade.co.il/efi/v1.php?r=/tasks"

A write key operates according to the rules of a system administrator, and a read key according to the rules of a viewer. The module of the action must be active in the business (tasks, contacts or leads). An unknown field in a request is rejected. You can see all the paths on the help page as well.

Webhooks

In the card you add an https address that receives messages and choose events: new task, task updated, new contact, new lead, lead updated. The signing secret is shown once. Efi sends a POST with JSON, and only for what happened after the address was added. You can send a test, see the latest deliveries, turn off and delete.

  • Signature: the header X-Efi-Signature: t=<time>,v1=<signature>, where the signature is an HMAC-SHA256 of the text t + "." + message body with the secret. It is a good idea to verify it and to reject a message older than five minutes.
  • Retries: if the address does not answer with a 2xx code, the attempt is repeated after a minute, 5 minutes, half an hour, two hours and 12 hours, and then abandoned. An address that fails ten times in a row is turned off (you can turn it on again).

Limits and protections

  • Up to 120 calls per minute per key.
  • A business whose subscription has ended does not receive service through the API.
  • A webhook address must be public https: not an internal address (even if it resolves to an internal address), and not with a username and password. Efi does not follow redirects, does not read the reply, and waits up to 8 seconds. Up to 5 addresses per business.
  • The key's actions are recorded in the action log.

Leave us a message

Copyright 2019 - 2026