Skip to content

๐Ÿ”ง API ยท CLI ยท Server-to-Server Track โ€‹

Source: en/tracks/api.md ยท Live: https://docs.1pass.dev/en/tracks/api LLM-sanitized: internal links absolutized, VitePress containers โ†’ admonitions, line numbers in the Jump-to Index reference this rendered file (1-indexed).

๐Ÿ“ Jump-to Index โ€‹

  • L29-L77: ## Branching by pattern
    • L31-L41: ### 1. Machine โ†” machine (CLI / daemon / CI)
    • L42-L49: ### 2. AI agents / LLMs
    • L50-L59: ### 3. Backend โ†’ logi API
    • L60-L69: ### 4. logi โ†’ backend (webhook)
    • L70-L77: ### 5. Management API (Org / Team / App management)
  • L78-L88: ## Common reference
  • L89-L94: ## Hand the whole thing to an AI

๐Ÿ”ง API ยท CLI ยท Server-to-Server Track โ€‹

Every case where the user doesn't log in through a browser directly: CLI, daemons, CI/CD, AI agents, and webhook receivers.

๐Ÿ’ก Tip: Is this the right track?

  • โœ… Yes: backend-to-backend communication only, or a CLI tool calling logi on the user's behalf
  • โœ… Yes: an AI agent (Claude/Cursor/Codex) driving logi over MCP
  • โŒ Mobile app โ†’ ๐Ÿ“ฑ Mobile Track
  • โŒ User browser login โ†’ ๐ŸŒ Web Track

Branching by pattern โ€‹

1. Machine โ†” machine (CLI / daemon / CI) โ€‹

An environment where user interaction is possible but you can't open a browser.

2. AI agents / LLMs โ€‹

Claude Code, Cursor, and Codex driving logi in natural language.

3. Backend โ†’ logi API โ€‹

Verifying user tokens, looking up user info, and changing permissions.

  • API reference (OpenAPI) โ€” interactive Scalar viewer
  • Token Introspection & JWKS โ€” verify id_token / fetch public keys
  • Polling Events API โ€” pull-based delivery of user events (account deletion / disconnection)
  • POST /api/v1/me/anonymous_swap โ€” swap/merge an anonymous account into a canonical (email/SSO) account. For the full flow, see Anonymous โ†’ Canonical Account Swap.
  • GET/POST /developer/applications/:id/{redirect_uri_verifications,verify_redirect_uri} (session) ยท GET/POST /api/v1/admin/applications/:id/{redirect_uri_verifications,verify_redirect_uri} (admin) โ€” verify domain ownership of an RP redirect_uri (DNS TXT + .well-known, two-pronged). Redirect URI Verification.

4. logi โ†’ backend (webhook) โ€‹

logi pushes asynchronous events to the RP backend.

5. Management API (Org / Team / App management) โ€‹

Everything the logi console does, via the API.

  • API reference โ€” the complete set of management API endpoints

Common reference โ€‹


Hand the whole thing to an AI โ€‹

Paste @/llms-full.txt into an LLM and say:

"Connect the logi MCP server to Claude Code. Then make my CLI script obtain a token via device flow and call /api/v1/applications."

์ตœ์ข… ์ˆ˜์ •:

Identity๊ฐ€ ์ œํ’ˆ์˜ ์‹ ๋ขฐ๋ฅผ ๋งŒ๋“ญ๋‹ˆ๋‹ค.