wcway Submissions API
The Submissions API from wcway — 1 operation(s) for submissions.
The Submissions API from wcway — 1 operation(s) for submissions.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/wcway-com:wcway-com-submissions-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: wcway Submissions API
version: 1.0.0
summary: Find the nearest public toilet.
description: 'Free, no account. Every response with toilet data carries an attribution object: © OpenStreetMap contributors, ODbL-1.0. Errors use RFC 9457 application/problem+json. Each IP gets 60 requests per minute, and 300 for listToiletsInArea. Responses carry RateLimit headers. The version is part of the path. A change that breaks clients gets a new path. Before an operation goes away, it is marked deprecated here and its answers carry the Deprecation and Sunset headers. No operation is deprecated today.'
servers:
- url: https://wcway.com
security: []
tags:
- name: Submissions
paths:
/api/v1/submissions:
post:
operationId: submitToilet
summary: Propose a new toilet
description: For the web page of this site only. It needs a Turnstile token unless an account is signed in. A moderator reviews the proposal before it goes live.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- lat
- lon
properties:
name:
type: string
maxLength: 120
lat:
type: number
minimum: -90
maximum: 90
lon:
type: number
minimum: -180
maximum: 180
access:
type: string
enum:
- public
- customers
- permissive
- unknown
fee:
type: string
enum:
- free
- fee
- unknown
opening_hours:
type: string
maxLength: 200
description: OpenStreetMap opening_hours syntax.
wheelchair:
type: string
enum:
- 'yes'
- limited
- 'no'
- unknown
changing_table:
type: string
enum:
- 'yes'
- 'no'
- unknown
note:
type: string
maxLength: 500
turnstile_token:
type: string
maxLength: 2048
description: Cloudflare Turnstile token from the page of this site. A signed-in account needs none.
responses:
'201':
description: The proposal is saved and waits for a moderator.
content:
application/json:
schema:
type: object
'400':
description: The body is invalid.
headers:
RateLimit-Limit:
$ref: '#/components/headers/RateLimit-Limit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimit-Remaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimit-Reset'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'403':
description: The request came from another origin, or the Turnstile check failed.
headers:
RateLimit-Limit:
$ref: '#/components/headers/RateLimit-Limit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimit-Remaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimit-Reset'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'429':
description: Rate limit reached. Wait Retry-After seconds.
headers:
RateLimit-Limit:
$ref: '#/components/headers/RateLimit-Limit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimit-Remaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimit-Reset'
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
Retry-After:
$ref: '#/components/headers/Retry-After'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'503':
description: Contributions are off.
headers:
RateLimit-Limit:
$ref: '#/components/headers/RateLimit-Limit'
RateLimit-Remaining:
$ref: '#/components/headers/RateLimit-Remaining'
RateLimit-Reset:
$ref: '#/components/headers/RateLimit-Reset'
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
tags:
- Submissions
components:
headers:
RateLimit-Reset:
description: Seconds until the window resets.
schema:
type: integer
Retry-After:
description: Seconds to wait.
schema:
type: integer
RateLimit-Policy:
description: Quota and window in seconds.
schema:
type: string
RateLimit-Remaining:
description: Requests left in the window.
schema:
type: integer
RateLimit-Limit:
description: Requests allowed in the window.
schema:
type: integer
RateLimit:
description: 'Structured form: remaining and reset.'
schema:
type: string
schemas:
Problem:
type: object
required:
- type
- title
- status
- detail
properties:
type:
type: string
format: uri
title:
type: string
status:
type: integer
detail:
type: string
description: How to fix the request.
invalid_params:
type: array
items:
type: object
required:
- name
- reason
properties:
name:
type: string
reason:
type: string
retry_after_seconds:
type: integer
securitySchemes:
session:
type: apiKey
in: cookie
name: __Host-wcway_session
description: Set after a passkey sign-in on the web page of this site.
stripeSignature:
type: apiKey
in: header
name: Stripe-Signature
description: Stripe signs the raw body with the endpoint secret.
externalDocs:
description: 'Developer guide: quickstart, limits, errors and versioning.'
url: https://wcway.com/developers