Quickstart
Read your own listings and create your first draft from your application server.
On this page
1. Prepare access
In an authorized environment, issue a key under Settings → API integrations in Motano. Select listings:read and listings:write.
Set MOTANO_API_ORIGIN to your authorized test environment, such as http://localhost:3001. Store the key as MOTANO_API_KEY in your server’s secret store.
2. Read your listings
An empty account returns an empty items array. Use nextCursor to fetch the next page.
curl --fail-with-body --request GET \
--url "${MOTANO_API_ORIGIN}/api/v1/listings?limit=25" \
--header "Authorization: Bearer ${MOTANO_API_KEY}"3. Create a draft
Assign a unique UUID to each new operation. Keep the draft ID and response ETag so you can safely complete the listing.
curl --fail-with-body --request POST \
--url "${MOTANO_API_ORIGIN}/api/v1/listings/drafts" \
--header "Authorization: Bearer ${MOTANO_API_KEY}" \
--header "Idempotency-Key: ${MOTANO_IDEMPOTENCY_KEY}" \
--header "Content-Type: application/json" \
--dump-header - \
--data '{
"listingTypeValue": "osobowe"
}'4. Prepare to publish
Read listing-types for the requirements, prepare photos and complete the draft. After submission, check status and publicationState. For paid flows, direct the owner to their signed-in Motano account.