Rassmi Developers

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

StatusMeaning
201Success. The body is shown on the right.
422Validation failed.
401Missing, unknown, paused or expired API key.
429More than 60 requests in a minute. See Rate limits.