# API reference

> Every endpoint, with parameters, answers, examples and a console.

Every endpoint, grouped as in the sidebar. Each page has its parameters, answers, examples in cURL, JavaScript and Python, and a console to try it. The whole API is also [an OpenAPI 3.1 spec](https://dev.siteswap.pro/api/v1/openapi.json).

## Listings

- [GET /marketplaces](/developers/api-reference/listings/list-marketplaces): List marketplaces
- [GET /listings](/developers/api-reference/listings/search-listings): Search listings
- [POST /listings](/developers/api-reference/listings/post-a-listing): Post a listing
- [GET /listings/{id}](/developers/api-reference/listings/get-a-listing): Get a listing
- [PUT /listings/{id}](/developers/api-reference/listings/change-a-listing): Change a listing
- [POST /listings/{id}/status](/developers/api-reference/listings/pause-reopen-or-close-a-listing): Pause, reopen or close a listing
- [POST /listings/{id}/photos](/developers/api-reference/listings/add-photos-by-address): Add photos by address
- [POST /listings/stock](/developers/api-reference/listings/update-stock-in-bulk): Update stock in bulk

## Offers

- [GET /offers](/developers/api-reference/offers/list-offers): List offers
- [POST /offers](/developers/api-reference/offers/send-an-offer): Send an offer
- [GET /offers/{id}](/developers/api-reference/offers/get-an-offer): Get an offer
- [POST /offers/{id}/counter](/developers/api-reference/offers/counter-an-offer): Counter an offer
- [POST /offers/{id}/accept](/developers/api-reference/offers/accept-an-offer): Accept an offer
- [POST /offers/{id}/decline](/developers/api-reference/offers/decline-an-offer): Decline an offer
- [POST /offers/{id}/withdraw](/developers/api-reference/offers/withdraw-an-offer): Withdraw an offer

## Companies

- [GET /company](/developers/api-reference/companies/get-your-company): Get your company
- [GET /companies/{slug}](/developers/api-reference/companies/get-a-company-profile): Get a company profile

## Catalog

- [GET /catalog/categories](/developers/api-reference/catalog/list-categories): List categories
- [GET /catalog/categories/{id}](/developers/api-reference/catalog/get-a-category): Get a category
- [GET /catalog/makers](/developers/api-reference/catalog/list-makers): List makers
- [GET /catalog/models](/developers/api-reference/catalog/list-models): List models
- [GET /catalog/lookup](/developers/api-reference/catalog/look-up-a-model-number-or-barcode): Look up a model number or barcode

## Alerts

- [GET /saved-searches](/developers/api-reference/alerts/list-saved-searches): List saved searches
- [POST /saved-searches](/developers/api-reference/alerts/save-a-search): Save a search
- [PATCH /saved-searches/{id}](/developers/api-reference/alerts/change-a-saved-search): Change a saved search
- [DEL /saved-searches/{id}](/developers/api-reference/alerts/delete-a-saved-search): Delete a saved search
- [GET /notifications](/developers/api-reference/alerts/list-notifications): List notifications
- [POST /notifications/{id}/read](/developers/api-reference/alerts/mark-a-notification-read): Mark a notification read
- [POST /notifications/read-all](/developers/api-reference/alerts/mark-all-notifications-read): Mark all notifications read

## Keys

- [GET /keys](/developers/api-reference/keys/list-keys): List keys
- [POST /keys](/developers/api-reference/keys/ask-for-a-key): Ask for a key
- [DEL /keys/{id}](/developers/api-reference/keys/revoke-a-key): Revoke a key
- [DEL /keys/self](/developers/api-reference/keys/revoke-the-key-you-send): Revoke the key you send

## Sign-in tokens

- [POST /auth/session](/developers/api-reference/sign-in-tokens/sign-in-beta): Sign in (beta)
- [DEL /auth/session](/developers/api-reference/sign-in-tokens/sign-out-beta): Sign out (beta)

## Meta

- [GET /openapi.json](/developers/api-reference/meta/get-the-openapi-spec): Get the OpenAPI spec
