Local testing

Exercise HTTP requests, response parsing and error handling before you get access.

On this page

Choose your environment

The local simulator returns synthetic fixtures for every operation. Use it to check your HTTP client, headers, formats and parsers. An authorized Motano test installation is where you verify business behavior.

Make a read and a write

Start the simulator from Tools. Set MOTANO_API_ORIGIN to http://127.0.0.1:3201 and use the motano-docs-demo key. Creating a draft returns a fixed response without persisting listings.

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"
}'

Exercise failure paths

Set X-Motano-Mock-Scenario to rate-limit for 429 or unavailable for 503. Wait before retrying when the response includes Retry-After. The response identifies the local simulator with X-Motano-Mock.