Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
description: ''
license:
name: ''
title: Wenmar Labour API
version: 0.1.0
tags:
- name: Labour
paths:
/labor_contributions:
get:
operationId: labor_contribution_index
responses:
'200':
content:
application/json:
schema:
type: object
description: the account's contributions, newest first
'401':
description: unauthenticated
security:
- bearer: []
tags:
- Labour
summary: Labor contribution index
x-summary-source: derived
post:
operationId: labor_contribution_create
parameters:
- description: replays the first send with this key
in: header
name: idempotency-key
required: false
schema:
type:
- string
- 'null'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateContributionBody'
required: true
responses:
'200':
description: 'replayed: the same contribution and attachment'
'201':
content:
application/json:
schema:
type: object
description: 'the contribution and its staged file: {contribution, attachment}'
'401':
description: unauthenticated
'403':
description: only the account's owner can send a labour history
'409':
description: idempotency key reused with a different body
'422':
description: the file's name or size is not a contribution
security:
- bearer: []
tags:
- Labour
summary: Labor contribution create
x-summary-source: derived
components:
schemas:
CreateContributionBody:
properties:
byte_size:
description: 'The file''s size in bytes, when the client knows it: over the contribution limit the
stage is refused with 422 `too_large` before anything is written.'
format: int64
type:
- integer
- 'null'
content_type:
description: 'The file''s content type; absent = `application/octet-stream` (the kind is checked on
the name).'
type:
- string
- 'null'
file_name:
description: 'The file''s name as the shop knows it: 1 to 255 characters, a CSV, Excel, ZIP, PDF,
text or DBF file.'
type: string
note:
description: The shop's own note.
type:
- string
- 'null'
system:
description: The shop's program, as the shop chose it.
type: string
required:
- file_name
type: object
securitySchemes:
bearer:
scheme: bearer
type: http