Leads
Push Lead
Add a prospect. A lead with the same phone is updated instead (answered 200).
POST
https://rassmi.com/api/v1/leads
Authorization
-
Authorizationheaderrequired
Bearer rsk_…: the store's API key, from API Key in your Rassmi dashboard.
Body
-
name string required
Up to 255 characters.
-
phone string required
Identifies the lead in the store.
-
email string
An email address.
-
wilaya string
Wilaya code or name.
-
commune string
Commune ID or name.
-
address string
Up to 500 characters.
-
notes string
Up to 1,000 characters.
Responses
| Status | Meaning |
|---|---|
201 | Success. The body is shown on the right. |
422 | Validation failed. |
401 | Missing, unknown, paused or expired API key. |
429 | More than 60 requests in a minute. See Rate limits. |