Wenmar Pro Attachments API

Photos on work orders and parts

GitHub OpenAPI
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).

Operations 16

GET /attachments/{id} Attachment show #
GET /attachments/{id}/files/{variant} Attachment file #
POST /attachments/{id}/finalize Attachment finalize #
PUT /attachments/{id}/upload Attachment upload #
GET /bills/{id}/attachments Bill attachment index #
GET /expenses/receipts Expense receipt index #
POST /expenses/receipts Expense receipt create #
GET /line_items/{id}/attachments Core line attachment index #
POST /line_items/{id}/attachments Core line attachment create #
GET /parts/{id}/attachments Part attachment index #
POST /parts/{id}/attachments Part attachment create #
GET /tire_sets/{id}/attachments Tire set attachment index #
POST /tire_sets/{id}/attachments Tire set attachment create #
POST /vendor_returns/{id}/attachments `POST /vendor_returns/{id}/attachments` (plan 3090): stages a photo of the… #
GET /work_orders/{id}/attachments Attachment index #
POST /work_orders/{id}/attachments Attachment create #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/wenmarpro-com:wenmarpro-com-attachments-api"
All apis
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.

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

wenmarpro-com-attachments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Photos on work orders and parts
  license:
    name: ''
  title: Wenmar Attachments API
  version: 0.1.0
tags:
- description: Photos on work orders and parts
  name: Attachments
paths:
  /attachments/{id}:
    get:
      operationId: attachment_show
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: attachment
        '401':
          description: unauthenticated
        '404':
          description: not found
      security:
      - bearer: []
      tags:
      - Attachments
      summary: Attachment show
      x-summary-source: derived
  /attachments/{id}/files/{variant}:
    get:
      operationId: attachment_file
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
      - in: path
        name: variant
        required: true
        schema:
          type: string
      responses:
        '200':
          description: file bytes
        '401':
          description: unauthenticated
        '404':
          description: not found
      security:
      - bearer: []
      tags:
      - Attachments
      summary: Attachment file
      x-summary-source: derived
  /attachments/{id}/finalize:
    post:
      operationId: attachment_finalize
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '202':
          content:
            application/json:
              schema:
                type: object
          description: queued for processing
        '401':
          description: unauthenticated
        '403':
          description: not authorized
        '404':
          description: not found
        '409':
          description: upload missing
        '422':
          description: invalid request
      security:
      - bearer: []
      tags:
      - Attachments
      summary: Attachment finalize
      x-summary-source: derived
  /attachments/{id}/upload:
    put:
      operationId: attachment_upload
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/octet-stream:
            schema:
              items:
                format: int32
                minimum: 0
                type: integer
              type: array
        required: true
      responses:
        '204':
          description: bytes stored
        '401':
          description: unauthenticated
        '403':
          description: not authorized
        '404':
          description: not found
        '409':
          description: not pending
        '413':
          description: too large
        '422':
          description: invalid request
      security:
      - bearer: []
      tags:
      - Attachments
      summary: Attachment upload
      x-summary-source: derived
  /bills/{id}/attachments:
    get:
      operationId: bill_attachment_index
      parameters:
      - in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: the bill's receipt photos, newest first
        '401':
          description: unauthenticated
        '403':
          description: needs ledger.manage
        '404':
          description: no such bill
      security:
      - bearer: []
      tags:
      - Attachments
      summary: Bill attachment index
      x-summary-source: derived
  /expenses/receipts:
    get:
      operationId: expense_receipt_index
      parameters:
      - description: the location; absent = the user's own
        in: query
        name: location_id
        required: false
        schema:
          format: int64
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: receipt photos not yet filed on a bill, newest first
        '401':
          description: unauthenticated
        '403':
          description: needs ledger.manage
        '404':
          description: no such location
      security:
      - bearer: []
      tags:
      - Attachments
      summary: Expense receipt index
      x-summary-source: derived
    post:
      operationId: expense_receipt_create
      parameters:
      - description: replays the first stage with this key
        in: header
        name: idempotency-key
        required: false
        schema:
          type:
          - string
          - 'null'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateExpenseReceiptBody'
        required: true
      responses:
        '200':
          description: replayed
        '201':
          content:
            application/json:
              schema:
                type: object
          description: 'a receipt photo staged: {attachment, upload}, as for a work order'
        '401':
          description: unauthenticated
        '403':
          description: needs ledger.manage
        '404':
          description: no such location
        '422':
          description: invalid request
      security:
      - bearer: []
      tags:
      - Attachments
      summary: Expense receipt create
      x-summary-source: derived
  /line_items/{id}/attachments:
    get:
      operationId: core_line_attachment_index
      parameters:
      - in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: the core line's photos, newest first
        '401':
          description: unauthenticated
        '404':
          description: line not found, or it has no core
      security:
      - bearer: []
      tags:
      - Attachments
      summary: Core line attachment index
      x-summary-source: derived
    post:
      operationId: core_line_attachment_create
      parameters:
      - description: replays the first stage with this key
        in: header
        name: idempotency-key
        required: false
        schema:
          type:
          - string
          - 'null'
      - in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAttachmentBody'
        required: true
      responses:
        '200':
          description: replayed
        '201':
          content:
            application/json:
              schema:
                type: object
          description: 'a photo of the core staged: {attachment, upload}, as for a work order'
        '401':
          description: unauthenticated
        '403':
          description: the line's work order is not writable
        '404':
          description: line not found, or it has no core
        '422':
          description: invalid request
      security:
      - bearer: []
      tags:
      - Attachments
      summary: Core line attachment create
      x-summary-source: derived
  /parts/{id}/attachments:
    get:
      operationId: part_attachment_index
      parameters:
      - in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: the part's photos, newest first
        '401':
          description: unauthenticated
        '404':
          description: part not found
      security:
      - bearer: []
      tags:
      - Attachments
      summary: Part attachment index
      x-summary-source: derived
    post:
      operationId: part_attachment_create
      parameters:
      - description: replays the first stage with this key
        in: header
        name: idempotency-key
        required: false
        schema:
          type:
          - string
          - 'null'
      - in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAttachmentBody'
        required: true
      responses:
        '200':
          description: replayed
        '201':
          content:
            application/json:
              schema:
                type: object
          description: 'a photo of the part staged: {attachment, upload}, as for a work order'
        '401':
          description: unauthenticated
        '403':
          description: needs catalog.write, inventory.count or work_orders.write
        '404':
          description: part not found
        '422':
          description: invalid request
      security:
      - bearer: []
      tags:
      - Attachments
      summary: Part attachment create
      x-summary-source: derived
  /tire_sets/{id}/attachments:
    get:
      operationId: tire_set_attachment_index
      parameters:
      - in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: the set's photos, newest first
        '401':
          description: unauthenticated
        '404':
          description: tire set not found
      security:
      - bearer: []
      tags:
      - Attachments
      summary: Tire set attachment index
      x-summary-source: derived
    post:
      operationId: tire_set_attachment_create
      parameters:
      - description: replays the first stage with this key
        in: header
        name: idempotency-key
        required: false
        schema:
          type:
          - string
          - 'null'
      - in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAttachmentBody'
        required: true
      responses:
        '200':
          description: replayed
        '201':
          content:
            application/json:
              schema:
                type: object
          description: 'a photo of the set staged: {attachment, upload}, as for a work order'
        '401':
          description: unauthenticated
        '403':
          description: needs work_orders.write or customers.write
        '404':
          description: tire set not found
        '422':
          description: invalid request
      security:
      - bearer: []
      tags:
      - Attachments
      summary: Tire set attachment create
      x-summary-source: derived
  /vendor_returns/{id}/attachments:
    post:
      operationId: vendor_return_attachment_create
      parameters:
      - description: the vendor return
        in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      - description: replays the first stage with this key
        in: header
        name: idempotency-key
        required: false
        schema:
          type:
          - string
          - 'null'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAttachmentBody'
        required: true
      responses:
        '200':
          description: replayed
        '201':
          content:
            application/json:
              schema:
                type: object
          description: 'a photo of the return staged: {attachment, upload}, as for a work order'
        '401':
          description: unauthenticated
        '403':
          description: needs inventory.count and costs.view
        '404':
          description: no such vendor return
        '422':
          description: invalid request
      security:
      - bearer: []
      summary: '`POST /vendor_returns/{id}/attachments` (plan 3090): stages a photo of the…'
      tags:
      - Attachments
  /work_orders/{id}/attachments:
    get:
      operationId: attachment_index
      parameters:
      - in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: attachments
        '401':
          description: unauthenticated
        '404':
          description: not found
      security:
      - bearer: []
      tags:
      - Attachments
      summary: Attachment index
      x-summary-source: derived
    post:
      operationId: attachment_create
      parameters:
      - in: path
        name: id
        required: true
        schema:
          format: int64
          type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAttachmentBody'
        required: true
      responses:
        '200':
          description: 'replayed: the same attachment, its upload target signed again; attachment.status tells whether the bytes already arrived'
        '201':
          content:
            application/json:
              schema:
                type: object
          description: attachment staged
        '401':
          description: unauthenticated
        '403':
          description: not authorized
        '404':
          description: not found
        '422':
          description: invalid request
      security:
      - bearer: []
      tags:
      - Attachments
      summary: Attachment create
      x-summary-source: derived
components:
  schemas:
    CreateAttachmentBody:
      properties:
        byte_size:
          description: 'The file''s size in bytes, when the client knows it (plan 1426): over the upload limit

            the stage is refused with 422 `too_large`. Optional: released clients do not send it.'
          format: int64
          type:
          - integer
          - 'null'
        concern_key:
          description: 'The concern this file is the media of (plan 3124): the client''s key for the concern,

            matching its create `Idempotency-Key`. Work orders only; a request with it on another

            parent is refused with 422 `unsupported_attachable`. Optional: released clients do not

            send it.'
          type:
          - string
          - 'null'
        content_type:
          type: string
        inspection_item_id:
          description: 'The inspection item this photo shows (plan 1211): an item of an inspection on this

            work order.'
          format: int64
          type:
          - integer
          - 'null'
        public_id:
          description: 'The client''s own id for this attachment (plan 1441): a second call with it answers the

            same row.'
          type:
          - string
          - 'null'
      required:
      - content_type
      type: object
    CreateExpenseReceiptBody:
      description: 'A receipt photo staged against a location, before a quick expense files it (plan 1543):

        `CreateAttachmentBody` has no location, so this route has its own body.'
      properties:
        content_type:
          type: string
        location_id:
          format: int64
          type:
          - integer
          - 'null'
      required:
      - content_type
      type: object
  securitySchemes:
    bearer:
      scheme: bearer
      type: http