> ## Documentation Index
> Fetch the complete documentation index at: https://docs.famulor.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Lead erstellen

> Erstelle einen neuen Lead im Famulor-System per API. Übermittle Kontaktdaten, Custom Variables und triggere KI-Telefonassistenten-Anrufe.

Dieser Endpunkt ermöglicht es dir, einen neuen Lead im Famulor-System zu erstellen.

### Anfrage-Body

<ParamField body="phone_number" type="string" required>
  Die Telefonnummer des Leads im E.164-Format (z.B. +1234567890)
</ParamField>

<ParamField body="campaign_id" type="integer" required>
  Die ID der Kampagne, für die der Lead erstellt werden soll
</ParamField>

<ParamField body="variables" type="array">
  Die Variablen, die an den Lead weitergegeben werden sollen
</ParamField>

<ParamField body="allow_dupplicate" type="boolean">
  Ob doppelte Leads in einer Kampagne erlaubt sind.
</ParamField>

### Antwort-Felder

<ResponseField name="message" type="string">
  Die Nachricht der Antwort
</ResponseField>

<ResponseField name="data" type="object">
  Die Daten der Antwort
</ResponseField>

<ResponseField name="data.id" type="string">
  Die ID des Leads
</ResponseField>

<ResponseExample>
  ```json 200 Response theme={null}
  {
    "message": "Lead erfolgreich erstellt",
    "data": {
      "id": "1234569"
    }
  }
  ```
</ResponseExample>

<Tip>
  Passende Seiten: [Introduction](/de/api-reference/introduction) und [Authentication Guide](/de/developers/authentication-guide) und [API Integration Examples](/de/developers/api-integration-examples).
</Tip>
