Skip to content

docs(api): make templates and teams pages envelope-first - #3138

Merged
dguyen merged 3 commits into
docs/first-api-call-fixesfrom
docs/templates-teams-envelope
Aug 25, 2026
Merged

dguyen merged 3 commits into
docs/first-api-call-fixesfrom
docs/templates-teams-envelope

Conversation

@ephraimduncan

@ephraimduncan ephraimduncan commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Description

The templates page was built entirely on deprecated /template/* endpoints without mentioning the replacement, and the teams page advertised REST endpoints that are not exposed.

Changes Made

  • Templates: leads with the envelope-based flow — POST /envelope/use (verified request/response, including recipients[].signingUrl) and POST /envelope/distribute; every legacy /template/* section is labeled deprecated and points to the migration guide.
  • Corrected the legacy /template/use response: it returns a document object without signingUrl (docs previously invented one).
  • Teams: reframed as team-scoped API access — all /team/* OpenAPI declarations are commented out in the router, so no REST endpoints exist; documented token-derived team context instead; added the envelope deprecation banner; migrated template examples to envelope equivalents.
  • API index: replaced the false "manage teams and team members" card.
  • Fixed fabricated pagination wrappers on both pages to the real flat shape.

Testing Performed

Docs-only change. Verified against template-router/router.ts (deprecated flags), use-envelope.types.ts/use-envelope.ts, distribute-envelope.types.ts, and team-router.

@vercel

vercel Bot commented Jul 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
stg-docs Ready Ready Preview Aug 25, 2026 1:44am
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
prd-docs Ignored Ignored Aug 25, 2026 1:44am
prd-openpage-api Ignored Ignored Aug 25, 2026 1:44am

Request Review

@coderabbitai

coderabbitai Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • coderabbit

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 74575697-379c-4c6e-9cea-ab662e7f9a61

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the type: documentation Improvements or additions to documentation label Jul 30, 2026
@ephraimduncan
ephraimduncan marked this pull request as ready for review July 30, 2026 21:43
- lead templates page with POST /envelope/use and /envelope/distribute; label /template/* deprecated
- legacy /template/use returns no signingUrl; document the real responses
- teams page: /team/* REST endpoints are not exposed; reframe around team-scoped tokens
- fix fabricated pagination wrappers; replace false Teams API card on the index page
GET /envelope without type returns templates as well as documents; add type=DOCUMENT
to every document-list example so counts and results match the prose
@dguyen
dguyen merged commit d056cf5 into docs/first-api-call-fixes Aug 25, 2026
7 of 8 checks passed
@dguyen
dguyen deleted the docs/templates-teams-envelope branch August 25, 2026 01:41

This branch was successfully deployed

1 active deployment
Preview – stg-docs — e18fe5b2 Deployed Aug 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants