Zum Inhalt

Entwicklerbereich

API-Dokumentation

Integrieren Sie Standardbriefe, Briefe mit Sendungsverfolgung und Einschreiben über unsere API in Ihre Anwendung.

API-Schlüssel
POSThttps://api.unjani-solutions.com/api/letters/send

Schnellstart

Ersten Brief senden

  1. Fügen Sie Ihrem Konto eine Zahlungskarte hinzu.
  2. Erstellen Sie einen API-Schlüssel auf der Seite API-Schlüssel.
  3. Kodieren Sie Ihr PDF als base64 und senden Sie es direkt in der Anfrage.
curl --request POST \
  --url https://api.unjani-solutions.com/api/letters/send \
  --header "Authorization: Bearer $LETTER_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "letter": {
      "mode": "tracked",
      "address": {
        "sender": {
          "type": "company",
          "company": "Acme SAS",
          "firstName": "Ada",
          "lastName": "Lovelace",
          "address": "1 rue de la Paix",
          "additionalAddress": "",
          "zipCode": "75001",
          "city": "Paris",
          "country": "France"
        },
        "recipient": {
          "type": "individual",
          "title": "Mr",
          "firstName": "Alan",
          "lastName": "Turing",
          "address": "2 avenue Victor Hugo",
          "additionalAddress": "",
          "zipCode": "69001",
          "city": "Lyon",
          "country": "France"
        }
      },
      "content": {
        "files": [
          {
            "name": "letter.pdf",
            "base64": "JVBERi0xLjQK..."
          }
        ]
      }
    }
  }'