API reference
Every operation in the HTTP contract, grouped by tag. The narrative is the API guide.
Cardsite Link Manager API 1.0.0: 244 operations on 166 paths, in 18 tags. Request and response schemas are in the contract itself.
auth 17
Registration, login, password reset, 2FA
| Method | Path | Summary |
|---|---|---|
| POST | /api/v1/auth/register | Register a new user account |
| POST | /api/v1/auth/login | Login and receive a JWT |
| POST | /api/v1/auth/login/2fa | Exchange an OAuth pending token and a second factor for a session |
| POST | /api/v1/auth/lost-password | Request a password-reset email |
| POST | /api/v1/auth/reset-password | Reset password using the emailed token |
| POST | /api/v1/auth/2fa/setup | Generate a 2FA provisioning URI (TOTP) |
| POST | /api/v1/auth/2fa/verify | Activate 2FA after scanning QR code |
| GET | /api/v1/auth/2fa/recovery-codes | How many unused 2FA recovery codes the account holds |
| POST | /api/v1/auth/2fa/recovery-codes | Replace every 2FA recovery code with a new set (shown once) |
| DELETE | /api/v1/auth/2fa | Delete auth 2fadeleteApiV1Auth2Fa |
| POST | /api/v1/auth/activate-user | Create auth activate userpostApiV1AuthActivateUser |
| GET | /api/v1/auth/captcha | Retrieve auth captchagetApiV1AuthCaptcha |
| GET | /api/v1/auth/legal | Retrieve auth legalgetApiV1AuthLegal |
| GET | /api/v1/auth/oauth/providers | Retrieve oauth providersgetApiV1AuthOauthProviders |
| POST | /api/v1/auth/oauth/{provider}/callback | Create oauth callbackpostApiV1AuthOauthProviderCallback |
| GET | /api/v1/auth/oauth/{provider}/initiate | Retrieve oauth initiategetApiV1AuthOauthProviderInitiate |
| POST | /api/v1/auth/resend-activation | Create auth resend activationpostApiV1AuthResendActivation |
account 47
User profile, password, API key, preferences, GDPR export
| Method | Path | Summary |
|---|---|---|
| GET | /api/v1/user | Get current user profile |
| PUT | /api/v1/account | Update profile fields |
| DELETE | /api/v1/account | Permanently delete account (requires password confirmation) |
| PUT | /api/v1/account/password | Change password |
| GET | /api/v1/account/plan | Get current plan and subscription details |
| POST | /api/v1/account/api-key | Regenerate API key (legacy full-scope credential; the new key is returned once — only its SHA-256 digest is stored) |
| GET | /api/v1/account/tokens | List scoped API tokens (ADR-0002) — revoked included, hashes never returned; also returns the grantable scope list |
| POST | /api/v1/account/tokens | Create a scoped API token — the plaintext secret appears only in this response |
| DELETE | /api/v1/account/tokens/{id} | Revoke a scoped API token (kept as an audit record; auth honors revocation immediately) |
| GET | /api/v1/account/preferences | Get user preferences |
| PUT | /api/v1/account/preferences | Replace user preferences |
| PATCH | /api/v1/account/preferences | Merge into user preferences |
| GET | /api/v1/account/export | GDPR data export — returns a ZIP archive of all user data |
| GET | /api/v1/data | Retrieve v1 datagetApiV1Data |
| GET | /api/v1/data/{id} | Retrieve v1 datagetApiV1DataId |
| DELETE | /api/v1/data/{id} | Delete v1 datadeleteApiV1DataId |
| GET | /api/v1/events | Retrieve v1 eventsgetApiV1Events |
| POST | /api/v1/events | Create v1 eventspostApiV1Events |
| GET | /api/v1/events/{id} | Retrieve v1 eventsgetApiV1EventsId |
| PUT | /api/v1/events/{id} | Update v1 eventsputApiV1EventsId |
| DELETE | /api/v1/events/{id} | Delete v1 eventsdeleteApiV1EventsId |
| GET | /api/v1/feature-flags/evaluate | List the feature flags enabled for the authenticated usergetApiV1FeatureFlagsEvaluate |
| GET | /api/v1/realtime | Server-Sent Events stream for the caller's user and active workspace channelsgetApiV1Realtime |
| GET | /api/v1/history | Retrieve v1 historygetApiV1History |
| GET | /api/v1/history/session | Undoable/redoable counts for a per-tab editor sessiongetApiV1HistorySession |
| POST | /api/v1/history/redo | Create history redopostApiV1HistoryRedo |
| POST | /api/v1/history/undo | Create history undopostApiV1HistoryUndo |
| GET | /api/v1/internal-notifications | Retrieve v1 internal notificationsgetApiV1InternalNotifications |
| POST | /api/v1/internal-notifications/read-all | Create internal notifications read allpostApiV1InternalNotificationsReadAll |
| GET | /api/v1/internal-notifications/unread | Retrieve internal notifications unreadgetApiV1InternalNotificationsUnread |
| POST | /api/v1/internal-notifications/{id}/read | Create internal notifications readpostApiV1InternalNotificationsIdRead |
| GET | /api/v1/logs | Retrieve v1 logsgetApiV1Logs |
| GET | /api/v1/notification-handlers | Retrieve v1 notification handlersgetApiV1NotificationHandlers |
| POST | /api/v1/notification-handlers | Create v1 notification handlerspostApiV1NotificationHandlers |
| GET | /api/v1/notification-handlers/{id} | Retrieve v1 notification handlersgetApiV1NotificationHandlersId |
| PUT | /api/v1/notification-handlers/{id} | Update v1 notification handlersputApiV1NotificationHandlersId |
| DELETE | /api/v1/notification-handlers/{id} | Delete v1 notification handlersdeleteApiV1NotificationHandlersId |
| GET | /api/v1/referrals/commissions | Retrieve referrals commissionsgetApiV1ReferralsCommissions |
| POST | /api/v1/referrals/key | Create referrals keypostApiV1ReferralsKey |
| GET | /api/v1/referrals/stats | Retrieve referrals statsgetApiV1ReferralsStats |
| POST | /api/v1/referrals/withdraw | Create referrals withdrawpostApiV1ReferralsWithdraw |
| GET | /api/v1/referrals/withdrawals | Retrieve referrals withdrawalsgetApiV1ReferralsWithdrawals |
| GET | /api/v1/signatures | Retrieve v1 signaturesgetApiV1Signatures |
| POST | /api/v1/signatures | Create v1 signaturespostApiV1Signatures |
| GET | /api/v1/signatures/{id} | Retrieve v1 signaturesgetApiV1SignaturesId |
| PUT | /api/v1/signatures/{id} | Update v1 signaturesputApiV1SignaturesId |
| DELETE | /api/v1/signatures/{id} | Delete v1 signaturesdeleteApiV1SignaturesId |
resources 14
Resources — the collection. A resource is any single addressable member of it (ADR-0012). Type-agnostic views across every registered link type live here, as do the per-product endpoints for types with no tag of their own; the other per-product tags below each list one type.
| Method | Path | Summary |
|---|---|---|
| GET | /api/v1/resources | List the workspace's resources, every kind |
| GET | /api/v1/resources/counts | Count the workspace's resources by kind |
| GET | /api/v1/resources/recent | List recently edited resources |
| GET | /api/v1/spotlight | Search the workspace's resources |
| GET | /api/v1/static | Retrieve v1 staticgetApiV1Static |
| POST | /api/v1/static | Create v1 staticpostApiV1Static |
| GET | /api/v1/static/{id} | Retrieve v1 staticgetApiV1StaticId |
| PUT | /api/v1/static/{id} | Update v1 staticputApiV1StaticId |
| DELETE | /api/v1/static/{id} | Delete v1 staticdeleteApiV1StaticId |
| GET | /api/v1/payment-links | Retrieve v1 payment linksgetApiV1PaymentLinks |
| POST | /api/v1/payment-links | Create v1 payment linkspostApiV1PaymentLinks |
| GET | /api/v1/payment-links/{id} | Retrieve v1 payment linksgetApiV1PaymentLinksId |
| PUT | /api/v1/payment-links/{id} | Update v1 payment linksputApiV1PaymentLinksId |
| DELETE | /api/v1/payment-links/{id} | Delete v1 payment linksdeleteApiV1PaymentLinksId |
links 6
Short links — the product, not the collection (ADR-0008). Create, update, delete, statistics. The tag id matches the route and the table, neither of which is user-facing.
| Method | Path | Summary |
|---|---|---|
| GET | /api/v1/links | List short links |
| POST | /api/v1/links | Create a short link |
| POST | /api/v1/links/{link_id}/duplicate | Make an exact copy of a resource at a new address |
| GET | /api/v1/links/{link_id} | Get a short link |
| PUT | /api/v1/links/{link_id} | Update a short link |
| DELETE | /api/v1/links/{link_id} | Delete a short link |
biolinks 31
Biolink pages and blocks
| Method | Path | Summary |
|---|---|---|
| GET | /api/v1/biolinks | List biolink pages |
| POST | /api/v1/biolinks | Create a biolink page |
| GET | /api/v1/biolinks/{link_id} | Get a biolink page |
| PUT | /api/v1/biolinks/{link_id} | Update biolink page settings |
| DELETE | /api/v1/biolinks/{link_id} | Delete a biolink page |
| GET | /api/v1/biolink-blocks/types | List all available block types with field schema |
| GET | /api/v1/biolink-blocks | Retrieve v1 biolink blocksgetApiV1BiolinkBlocks |
| POST | /api/v1/biolink-blocks | Create v1 biolink blockspostApiV1BiolinkBlocks |
| POST | /api/v1/biolink-blocks/order | Create biolink blocks orderpostApiV1BiolinkBlocksOrder |
| GET | /api/v1/biolink-blocks/{id} | Retrieve v1 biolink blocksgetApiV1BiolinkBlocksId |
| PUT | /api/v1/biolink-blocks/{id} | Update v1 biolink blocksputApiV1BiolinkBlocksId |
| DELETE | /api/v1/biolink-blocks/{id} | Delete v1 biolink blocksdeleteApiV1BiolinkBlocksId |
| GET | /api/v1/biolinks-templates | Retrieve v1 biolinks templatesgetApiV1BiolinksTemplates |
| GET | /api/v1/biolinks-themes | Retrieve v1 biolinks themesgetApiV1BiolinksThemes |
| GET | /api/v1/pwas | Retrieve v1 pwasgetApiV1Pwas |
| POST | /api/v1/pwas | Create v1 pwaspostApiV1Pwas |
| GET | /api/v1/pwas/{id} | Retrieve v1 pwasgetApiV1PwasId |
| PUT | /api/v1/pwas/{id} | Update v1 pwasputApiV1PwasId |
| DELETE | /api/v1/pwas/{id} | Delete v1 pwasdeleteApiV1PwasId |
| GET | /api/v1/pwas/{id}/manifest.json | Retrieve pwas manifest.jsongetApiV1PwasIdManifest.Json |
| GET | /api/v1/splash-pages | Retrieve v1 splash pagesgetApiV1SplashPages |
| POST | /api/v1/splash-pages | Create v1 splash pagespostApiV1SplashPages |
| GET | /api/v1/splash-pages/{id} | Retrieve v1 splash pagesgetApiV1SplashPagesId |
| PUT | /api/v1/splash-pages/{id} | Update v1 splash pagesputApiV1SplashPagesId |
| DELETE | /api/v1/splash-pages/{id} | Delete v1 splash pagesdeleteApiV1SplashPagesId |
| GET | /api/v1/vcards | Retrieve v1 vcardsgetApiV1Vcards |
| POST | /api/v1/vcards | Create v1 vcardspostApiV1Vcards |
| GET | /api/v1/vcards/{id} | Retrieve v1 vcardsgetApiV1VcardsId |
| PUT | /api/v1/vcards/{id} | Update v1 vcardsputApiV1VcardsId |
| DELETE | /api/v1/vcards/{id} | Delete v1 vcardsdeleteApiV1VcardsId |
| GET | /api/v1/vcards/{id}/download | Retrieve vcards downloadgetApiV1VcardsIdDownload |
qrcodes 7
QR code generation and management
| Method | Path | Summary |
|---|---|---|
| GET | /api/v1/qr-codes | List QR codes |
| POST | /api/v1/qr-codes | Create a QR code |
| GET | /api/v1/qr-codes/types | List available QR code types |
| POST | /api/v1/qr-codes/generate | Create qr codes generatepostApiV1QrCodesGenerate |
| GET | /api/v1/qr-codes/{id} | Retrieve v1 qr codesgetApiV1QrCodesId |
| PUT | /api/v1/qr-codes/{id} | Update v1 qr codesputApiV1QrCodesId |
| DELETE | /api/v1/qr-codes/{id} | Delete v1 qr codesdeleteApiV1QrCodesId |
projects 5
Organize resources into projects
| Method | Path | Summary |
|---|---|---|
| GET | /api/v1/projects | List projects |
| POST | /api/v1/projects | Create project |
| GET | /api/v1/projects/{id} | Retrieve v1 projectsgetApiV1ProjectsId |
| PUT | /api/v1/projects/{id} | Update v1 projectsputApiV1ProjectsId |
| DELETE | /api/v1/projects/{id} | Delete v1 projectsdeleteApiV1ProjectsId |
domains 6
Custom domains
| Method | Path | Summary |
|---|---|---|
| GET | /api/v1/domains | List custom domains |
| POST | /api/v1/domains | Add a custom domain |
| POST | /api/v1/domains/{domain_id}/verify | Trigger DNS verification for a domain |
| GET | /api/v1/domains/{id} | Retrieve v1 domainsgetApiV1DomainsId |
| PUT | /api/v1/domains/{id} | Update v1 domainsputApiV1DomainsId |
| DELETE | /api/v1/domains/{id} | Delete v1 domainsdeleteApiV1DomainsId |
pixels 6
Tracking pixel integrations
| Method | Path | Summary |
|---|---|---|
| GET | /api/v1/pixels | List tracking pixels |
| POST | /api/v1/pixels | Add a tracking pixel |
| GET | /api/v1/pixels/types | List available pixel provider types (24 providers) |
| GET | /api/v1/pixels/{id} | Retrieve v1 pixelsgetApiV1PixelsId |
| PUT | /api/v1/pixels/{id} | Update v1 pixelsputApiV1PixelsId |
| DELETE | /api/v1/pixels/{id} | Delete v1 pixelsdeleteApiV1PixelsId |
payments 15
Checkout, payment history, subscription management
| Method | Path | Summary |
|---|---|---|
| GET | /api/v1/payments | List payment history |
| POST | /api/v1/checkout | Initiate checkout for a plan |
| GET | /api/v1/payment-processors | List user payment processor configurations |
| POST | /api/v1/payment-processors | Add a payment processor |
| POST | /webhook/{gateway} | Payment gateway webhook receiver |
| POST | /api/v1/codes/redeem | Create codes redeempostApiV1CodesRedeem |
| POST | /api/v1/codes/validate | Create codes validatepostApiV1CodesValidate |
| GET | /api/v1/credit-notes/{id} | Retrieve v1 credit notesgetApiV1CreditNotesId |
| GET | /api/v1/invoices/{id} | Retrieve v1 invoicesgetApiV1InvoicesId |
| GET | /api/v1/payment-processors/{id} | Retrieve v1 payment processorsgetApiV1PaymentProcessorsId |
| PUT | /api/v1/payment-processors/{id} | Update v1 payment processorsputApiV1PaymentProcessorsId |
| DELETE | /api/v1/payment-processors/{id} | Delete v1 payment processorsdeleteApiV1PaymentProcessorsId |
| GET | /api/v1/payments/{id} | Retrieve v1 paymentsgetApiV1PaymentsId |
| GET | /api/v1/plans | Retrieve v1 plansgetApiV1Plans |
| POST | /api/v1/subscription/cancel | Create subscription cancelpostApiV1SubscriptionCancel |
teams 12
Team management and member access control
| Method | Path | Summary |
|---|---|---|
| GET | /api/v1/teams | List teams the current user owns |
| POST | /api/v1/teams | Create a team |
| GET | /api/v1/teams/{team_id}/members | List team members |
| POST | /api/v1/teams/{team_id}/members | Invite a member by email |
| GET | /api/v1/teams-member | Retrieve v1 teams membergetApiV1TeamsMember |
| PUT | /api/v1/teams-member/{id} | Update v1 teams memberputApiV1TeamsMemberId |
| DELETE | /api/v1/teams-member/{id} | Delete v1 teams memberdeleteApiV1TeamsMemberId |
| GET | /api/v1/teams/{id} | Retrieve v1 teamsgetApiV1TeamsId |
| PUT | /api/v1/teams/{id} | Update v1 teamsputApiV1TeamsId |
| DELETE | /api/v1/teams/{id} | Delete v1 teamsdeleteApiV1TeamsId |
| PUT | /api/v1/teams/{team_id}/members/{member_id} | Update teams membersputApiV1TeamsTeam_IdMembersMember_Id |
| DELETE | /api/v1/teams/{team_id}/members/{member_id} | Delete teams membersdeleteApiV1TeamsTeam_IdMembersMember_Id |
workspaces 14
Workspaces and their membership — the tenancy boundary (ADR-0006)
| Method | Path | Summary |
|---|---|---|
| GET | /api/v1/workspaces | List workspaces the current user belongs to, with role |
| POST | /api/v1/workspaces | Create a shared workspace (caller becomes owner; session-only) |
| PUT | /api/v1/workspaces/{id} | Rename a shared workspace (owner only) |
| DELETE | /api/v1/workspaces/{id} | Delete a shared workspace and everything in it (owner only) |
| GET | /api/v1/workspaces/{id}/members | List workspace members (any member) |
| POST | /api/v1/workspaces/{id}/members | Add an existing user by email (admin or owner) |
| PUT | /api/v1/workspaces/{id}/members/{user_id} | Change a member's role between member and admin (admin or owner) |
| DELETE | /api/v1/workspaces/{id}/members/{user_id} | Remove a member (admin or owner; the owner cannot be removed) |
| POST | /api/v1/workspaces/{id}/leave | Leave a workspace (owners cannot leave) |
| GET | /api/v1/comments | List the comment thread on a resourcegetApiV1Comments |
| POST | /api/v1/comments | Post a comment, or a reply to onepostApiV1Comments |
| DELETE | /api/v1/comments/{id} | Delete a commentdeleteApiV1CommentsId |
| GET | /api/v1/realtime/presence | Who is present in the workspacegetApiV1RealtimePresence |
| GET | /api/v1/workspaces/activity | Recent activity in the workspacegetApiV1WorkspacesActivity |
ai 18
AI tools — chat, images, text, TTS, transcription
| Method | Path | Summary |
|---|---|---|
| GET | /api/v1/ai/status | Whether the AI generators will work for this caller |
| GET | /api/v1/ai/chats | List AI chat conversations |
| POST | /api/v1/ai/chats | Create a new chat conversation |
| POST | /api/v1/ai/chats/{chat_id}/messages | Send a message and receive an AI reply |
| POST | /api/v1/ai/images | Generate an AI image |
| POST | /api/v1/ai/texts | Generate AI text |
| POST | /api/v1/ai/syntheses | Text-to-speech synthesis |
| POST | /api/v1/ai/transcriptions | Audio transcription (speech-to-text) |
| GET | /api/v1/ai/images | List the caller's generated imagesgetApiV1AiImages |
| GET | /api/v1/ai/texts | List the caller's generated textsgetApiV1AiTexts |
| GET | /api/v1/ai/syntheses | List the caller's speech syntheses (tts)getApiV1AiSyntheses |
| GET | /api/v1/ai/transcriptions | List the caller's transcriptions (stt)getApiV1AiTranscriptions |
| GET | /api/v1/ai/chats/{id} | Retrieve ai chatsgetApiV1AiChatsId |
| DELETE | /api/v1/ai/chats/{id} | Delete ai chatsdeleteApiV1AiChatsId |
| DELETE | /api/v1/ai/images/{id} | Delete ai imagesdeleteApiV1AiImagesId |
| DELETE | /api/v1/ai/syntheses/{id} | Delete ai synthesesdeleteApiV1AiSynthesesId |
| DELETE | /api/v1/ai/texts/{id} | Delete ai textsdeleteApiV1AiTextsId |
| DELETE | /api/v1/ai/transcriptions/{id} | Delete ai transcriptionsdeleteApiV1AiTranscriptionsId |
statistics 2
Resource and platform analytics
| Method | Path | Summary |
|---|---|---|
| GET | /api/v1/statistics | Get aggregated resource statistics for the current user |
| GET | /api/v1/statistics/{link_id} | Retrieve v1 statisticsgetApiV1StatisticsLink_Id |
uploads 8
File uploads
| Method | Path | Summary |
|---|---|---|
| GET | /api/v1/uploads | List the active workspace's uploads, newest first |
| POST | /api/v1/uploads | Upload a file (multipart) |
| GET | /api/v1/files | Retrieve v1 filesgetApiV1Files |
| POST | /api/v1/files | Create v1 filespostApiV1Files |
| GET | /api/v1/files/{id} | Retrieve v1 filesgetApiV1FilesId |
| PUT | /api/v1/files/{id} | Update v1 filesputApiV1FilesId |
| DELETE | /api/v1/files/{id} | Delete v1 filesdeleteApiV1FilesId |
| DELETE | /api/v1/uploads/{id} | Delete v1 uploadsdeleteApiV1UploadsId |
public 24
Public endpoints (redirect, biolink renderer, directory)
| Method | Path | Summary |
|---|---|---|
| GET | /l/{url} | Redirect a short link (tracks click) |
| GET | /b/{url} | Render public biolink page (HTML or JSON) |
| GET | /api/public/vcards/{url} | Public vCard contact-card data (allowlisted; gated cards return only the reason) |
| GET | /api/public/vcards/{url}/vcf | Downloadable .vcf for a public vCard (refused while its gate stands) |
| GET | /api/public/events/{url} | Public event page data (allowlisted; gated events return only the reason) |
| GET | /api/public/payments/{url} | Public payment page data (destination host derived server-side; gated links return only the reason) |
| GET | /api/public/cards/{url} | Summary card for any public resource — the payload @{url} serves. Fields are a projection of the type's own public payload (ADR-0105); a redirect-by-design type has no card, and a gated resource returns only the reason. |
| GET | /@{url} | The same card, at the address a person types (one handler, ADR-0105) |
| GET | /api/public/resolve/{url} | What a bare address is (card.site/{slug}), for the app's catch-all route |
| GET | /api/public/events/{url}/ics | Downloadable .ics for a public event (refused while its gate stands) |
| GET | /api/v1/directory | Browse public biolink directory |
| GET | /api/v1/blog | Retrieve v1 bloggetApiV1Blog |
| GET | /api/v1/blog/categories | Retrieve blog categoriesgetApiV1BlogCategories |
| GET | /api/v1/blog/{url} | Retrieve v1 bloggetApiV1BlogUrl |
| POST | /api/v1/cookie-consent | Create v1 cookie consentpostApiV1CookieConsent |
| POST | /api/v1/emails/bounce | Record a bounce or complaint reported by the ESPpostApiV1EmailsBounce |
| GET | /api/v1/languages | Retrieve v1 languagesgetApiV1Languages |
| GET | /api/v1/reference/targeting | Retrieve the vocabulary a display rule may namegetApiV1ReferenceTargeting |
| GET | /api/v1/og-images | Retrieve v1 og imagesgetApiV1OgImages |
| POST | /api/v1/og-images/webhook | Create og images webhookpostApiV1OgImagesWebhook |
| GET | /api/v1/pages | Retrieve v1 pagesgetApiV1Pages |
| GET | /api/v1/pages/{url} | Retrieve v1 pagesgetApiV1PagesUrl |
| POST | /api/v1/push-subscribers | Create v1 push subscriberspostApiV1PushSubscribers |
| POST | /api/v1/push-subscribers/unsubscribe | Create push subscribers unsubscribepostApiV1PushSubscribersUnsubscribe |
admin 9
Admin-only endpoints
| Method | Path | Summary |
|---|---|---|
| GET | /admin-api/v1/statistics | Platform-wide statistics |
| GET | /admin-api/v1/users | List all users |
| PUT | /admin-api/v1/users/{user_id} | Update user (status, plan, type) |
| DELETE | /admin-api/v1/users/{user_id} | Delete user |
| PUT | /admin-api/v1/users/{user_id}/plan-settings | Override per-user plan limits (26 numeric + 25 feature flags) |
| GET | /admin-api/v1/plans | List plans |
| POST | /admin-api/v1/plans | Create plan |
| GET | /admin-api/v1/settings/{category} | Get settings for a category |
| PUT | /admin-api/v1/settings/{category} | Update settings for a category |
observability 3
Health, readiness, metrics
| Method | Path | Summary |
|---|---|---|
| GET | /health | Liveness probe |
| GET | /ready | Readiness probe (checks DB connectivity) |
| GET | /metrics | Prometheus metrics |
Source: shared/contracts/openapi.yaml