Skip to content

Add email processors API spec#586

Merged
fscelliott merged 3 commits intov0from
email-api
May 4, 2026
Merged

Add email processors API spec#586
fscelliott merged 3 commits intov0from
email-api

Conversation

@fscelliott
Copy link
Copy Markdown
Collaborator

Summary

  • Adds reference/openapi_email.json — OpenAPI 3.0.3 spec for the email processors CRUD API
  • Covers 4 endpoints: list, get, upsert, and delete (/processors/email and /processors/email/{name})
  • Full request/response schemas including discriminated union attachment specs (doctype, classification, portfolio)
  • Also adds .claude/skills/sensible-api-spec/ — skill for generating API reference specs from backend PRs in future

Based on sensible-hq/sensible#3190, #3237, #3242, #3287.

Test plan

  • Upload openapi_email.json to readme.io and verify all 4 endpoints render correctly
  • Check request body schema for upsert-email-processor shows the discriminated union attachment specs
  • Verify 403 response description is accurate for accounts without active aliases

🤖 Generated with Claude Code

fscelliott and others added 3 commits April 15, 2026 13:47
New OpenAPI 3.0.3 spec for the email processors CRUD API (PRs sensible-hq/sensible#3237, #3242). Covers list, get, upsert, and delete endpoints with full request/response schemas including discriminated union attachment specs.

Also adds the sensible-api-spec skill for generating API reference specs from backend PRs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Fix ocrEngine enum to match backend OCR_ENGINE_TYPES (was fabricated)
- Replace broken oneOf on EmailProcessorInput with single flat schema
- Add enum constraint to segmentDocumentsWith (["llm", "fingerprints"])
- Remove incorrect application/json body from DELETE 200 response
- Clarify WebhookList ordering constraint and OAS 3.0.3 limitation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@fscelliott fscelliott merged commit fb738a1 into v0 May 4, 2026
0 of 2 checks passed
@fscelliott fscelliott deleted the email-api branch May 4, 2026 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant