Integration tools

Download the contract and examples, then exercise your HTTP client against the local simulator.

Downloads

OpenAPI specification

OpenAPI 3.1.0 · 37 operations

Postman collection

Operations grouped by area. The collection targets the local simulator by default.

Local API simulator

Example responses for the contract operations. To run the simulator, use Node.js 18 or later.

Download simulator ↓

The simulator returns fixed data. Verify photo uploads, moderation, payments, CEPiK, invoice issuance and database writes in an authorized Motano test environment.

Start the server

Node.js
node motano-mock.mjs

Set the origin and synthetic key

Shell
export MOTANO_API_ORIGIN=http://127.0.0.1:3201
export MOTANO_API_KEY=motano-docs-demo

First read

curl --fail-with-body --request GET \
  --url "${MOTANO_API_ORIGIN}/api/v1/listings?limit=25" \
  --header "Authorization: Bearer ${MOTANO_API_KEY}"

Exercise retries

Set X-Motano-Mock-Scenario to rate-limit or unavailable. The simulator returns 429 or 503 with Retry-After.

429 · Retry-After
curl -i \
  --header "X-Motano-Mock-Scenario: rate-limit" \
  --header "Authorization: Bearer ${MOTANO_API_KEY}" \
  --url "${MOTANO_API_ORIGIN}/api/v1/listings"
Testing guide ↗

Sample clients

Standalone files to list your own listings. Download a format and set the environment variables shown above.

Contract version 1.0.0

The REST path version is /api/v1. Track the schema version and changes in the downloadable specification.

Go-live checklist ↗