Skip to content Kleinanzeigen Public API Gateway Documentation

This guide outlines the process of creating an ad using the system, based on the provided sequence diagram. Please pay close attention to the IDs you receive, as they are crucial for subsequent steps.

Prerequisites

You will need your Imprint UUID to begin. See how to create it in the Specification section.

  • Send a POST request to the /listing endpoint.
  • The API will return the Listing UUID. Store this UUID, as you will need it for future steps.
  • Send a POST request to the /media endpoint.
  • The API will respond with a unique Ticket UUID and a Presigned URL for uploading your image.
  • Note: This Ticket UUID has an expiration date; use it before it expires.
  • Use the Presigned URL to upload your image to the designated storage.
  • This is a direct upload from your system to the storage service; the API is not involved in the actual file transfer.
  • Send a PUT request to /listing/{listing_uuid}/media.
  • Include the Ticket UUID in the request payload.
  • A Ticket UUID can only be used once successfully.
  • Send a POST request to /listing/{listing_uuid}/publication.
  • Include the Imprint UUID and any necessary location details in the payload.
  • The API will acknowledge the request, initiate asynchronous ad creation, and return a Publication UUID.
Section titled “6. Check Publication Status (Optional but Recommended)”

Once the publication is validated, the ad will be visible on Kleinanzeigen. Use these endpoints to monitor progress:

  • Get Listing Information: GET /listing/{listing_uuid}.
  • Get All Publications: GET /listing/{listing_uuid}/publications (find statuses and associated imprints).
  • Get Specific Publication: GET /listing/{listing_uuid}/publication/{publication_uuid}.

Important Notes

  • ID Management: Keep track of your Listing UUID, Imprint UUID, and Publication UUIDs. The Listing UUID is essential for managing your ads.
  • Asynchronous Processing: Ad validation may occur after you receive the initial publication response. Use the status check steps to monitor progress.
  • API Details: This guide provides the general flow; refer to specific API documentation for request formats and required fields.