Pinhere/createAttachment

Online calls unavailable · details below

PinherePinhere issue collaboration API

POST/attachments

Upload screenshot

Uploads a PNG, JPEG, or WebP up to 2 MiB to private storage.

Pinhere APIs for projects, origins, issues, private screenshots, webhooks, PATs, and Chrome-extension OAuth. The fixed PontxSpec covers all 34 Endpoints. Hub provides documentation and a local SDK/CLI only; it proxies no request.

Request

operationId
createAttachment
Server
https://pinhere-jasonhzqs-projects.vercel.app/api/v1
Authentication
pinherePat, websiteSession, extensionOAuth

Request parameters

Idempotency-Key

headerstring

Retained for 24 hours per account and endpoint; reuse with a different request returns 409.

example-idempotency-key

Request body

AttachmentInputrequired

Content-Type: application/json

Properties: fileNamecontentTypebase64

Responses

201

objectapplication/json

Screenshot stored privately.

Properties: data

413

ErrorResponseapplication/json

Screenshot exceeds 2 MiB.

Properties: error

default

ErrorResponseapplication/json

Standard error response.

Properties: error

{
  "data": {
    "id": "att_example",
    "fileName": "checkout.webp",
    "contentType": "image/webp",
    "byteSize": 128000
  }
}