Pin a committed snapshot from a branch or tag in the same collection as an immutable tag. A tag source pins the same snapshot, not a chain of tags. Alias sources are not allowed, and source.asOf is valid only for a branch source. Omit source to use main. An empty head or unavailable asOf history returns 400; verify committed data before tagging.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"LambdaDB Documentation","colors":{"primary":"#0D9373","light":"#07C983","dark":"#0D9373"},"logo":{"light":"https://mintcdn.com/lambdadb/fejsT7T9UaNPB1nX/logo/light.svg?fit=max\u0026auto=format\u0026n=fejsT7T9UaNPB1nX\u0026q=85\u0026s=3984578842930966eb2d9d05766af2cd","dark":"https://mintcdn.com/lambdadb/fejsT7T9UaNPB1nX/logo/dark.svg?fit=max\u0026auto=format\u0026n=fejsT7T9UaNPB1nX\u0026q=85\u0026s=10cbbc30f3e3f19c3783678ec4c4138f"},"favicon":"https://mintcdn.com/lambdadb/fejsT7T9UaNPB1nX/favicon.svg?fit=max\u0026auto=format\u0026n=fejsT7T9UaNPB1nX\u0026q=85\u0026s=6f7e3b6dbe311b4da3a87224c799b276","api":{"playground":{"display":"simple"}},"navbar":{"links":[{"href":"mailto:support@lambdadb.ai","label":"Support"}]},"footer":{"socials":{"github":"https://github.com/lambdadb","linkedin":"https://www.linkedin.com/company/lambdadb","x":"https://x.com/lambdadbai","reddit":"https://www.reddit.com/r/vectorlake","slack":"https://lambdadbcommunity.slack.com/join/shared_invite/zt-3sg7565zm-sCTW3odRkEQt~auWUVVsTw"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"lambdadb","hasAudioNarration":false,"actualSubdomain":"lambdadb","customDomains":["docs.lambdadb.ai"],"gitSource":{"type":"github","owner":"lambdadb","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae6343f06a77d479c55b4db","collectionId":"9b2ff86e-7e46-4f1b-8e0d-638c54edbc37","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae6343f06a77d479c55b4db"},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{},"buildId":"6ae6fac23e428d6b587dcccd","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"Guides","count":38},{"language":"default","tag":"Reference","count":26},{"language":"default","tag":"APIs","count":25},{"language":"default","tag":"Documents","count":14},{"language":"default","tag":"Collections","count":11},{"language":"default","tag":"Search","count":11},{"language":"default","tag":"Branches, tags \u0026 aliases","count":10},{"language":"default","tag":"Get started","count":7},{"language":"default","tag":"Migrations","count":6},{"language":"default","tag":"Query","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"reference/api/endpoint/tag-create","slug":"/reference/api/endpoint/tag-create","pageMetadata":{"title":"Create a tag","openapi":"post /collections/{collectionName}/tags","description":"Pin a committed snapshot from a branch or tag in the same collection as an immutable tag. A tag source pins the same snapshot, not a chain of tags. Alias sources are not allowed, and source.asOf is valid only for a branch source. Omit source to use main. An empty head or unavailable asOf history returns 400; verify committed data before tagging.","href":"/reference/api/endpoint/tag-create"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Pin a committed snapshot from a branch or tag in the same collection as an immutable tag. A tag source pins the same snapshot, not a chain of tags. Alias sources are not allowed, and source.asOf is valid only for a branch source. Omit source to use main. An empty head or unavailable asOf history returns 400; verify committed data before tagging.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a tag","openapi":"post /collections/{collectionName}/tags","description":"Pin a committed snapshot from a branch or tag in the same collection as an immutable tag. A tag source pins the same snapshot, not a chain of tags. Alias sources are not allowed, and source.asOf is valid only for a branch source. Omit source to use main. An empty head or unavailable asOf history returns 400; verify committed data before tagging.","href":"/reference/api/endpoint/tag-create"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["versioning"],"operationId":"createTag","description":"Pin a committed snapshot from a branch or tag in the same collection as an immutable tag. A tag source pins the same snapshot, not a chain of tags. Alias sources are not allowed, and source.asOf is valid only for a branch source. Omit source to use main. An empty head or unavailable asOf history returns 400; verify committed data before tagging.","security":["6fd19277-0885-4fe9-a753-787718a2da0f"],"parameters":["5031ef01-f7e4-4f5d-a19c-63a783eaf72a"],"requestBody":"fa84a04d-655c-4dd0-9e8c-02f8bf6ce3df","responses":{"201":"e0b24da4-98dd-4438-aa2c-6249629da30f","400":"1594e494-a454-4137-9430-fb588d0f8eae","401":"b0046960-88f2-4e95-b271-af7f10b1b4e8","404":"60ed9bd9-642f-4cd3-b2ed-fea44c3455a6","409":"54608f4f-5762-406c-8861-1bd9956ee567","413":"61764620-330b-4def-89d0-4f82b7c7cf11","429":"894f0e0c-9f15-437e-a9f9-9b6fc112ac85","500":"5e671161-81ac-4cca-aa8c-178149994f60","502":"a1fbf0e4-dca3-4db5-ae0c-606b959554df","503":"bd997fbc-f6ff-4612-805d-acfbb9b60594","504":"72f23c40-a0d9-49b3-a446-1e5ab21ef3fe"},"summary":"Create a Tag","method":"post","type":"path","servers":["0a729800-b165-4e25-bcc0-62d2e09a14d0"],"path":"/collections/{collectionName}/tags","baseUrlOptions":["https://{projectHost}"],"title":"Create a Tag","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"5031ef01-f7e4-4f5d-a19c-63a783eaf72a":{"in":"path","name":"collectionName","description":"Collection name.","required":true,"schema":{"type":"string","isRequired":true,"description":"Collection name.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"tagName":{"type":"string","minLength":3,"maxLength":52,"pattern":"^[a-zA-Z0-9_-]{3,52}$","isRequired":true,"uniqueKey":"tagName","typeLabel":"string"},"source":{"oneOf":[{"type":"object","title":"Branch source","required":["kind","name"],"properties":{"kind":{"type":"string","enum":["branch"],"isRequired":true,"uniqueKey":"source.oneOf.0.kind","typeLabel":"enum\u003cstring>"},"name":{"type":"string","minLength":3,"maxLength":52,"pattern":"^[a-zA-Z0-9_-]{3,52}$","isRequired":true,"uniqueKey":"source.oneOf.0.name","typeLabel":"string"},"asOf":{"type":"integer","format":"int64","description":"Latest committed snapshot cutoff as Unix epoch milliseconds.","uniqueKey":"source.oneOf.0.asOf","typeLabel":"integer\u003cint64>"}},"additionalProperties":false,"uniqueKey":"source.oneOf.0","typeLabel":"Branch source · object"},{"type":"object","title":"Tag source","required":["kind","name"],"properties":{"kind":{"type":"string","enum":["tag"],"isRequired":true,"uniqueKey":"source.oneOf.1.kind","typeLabel":"enum\u003cstring>"},"name":{"type":"string","minLength":3,"maxLength":52,"pattern":"^[a-zA-Z0-9_-]{3,52}$","isRequired":true,"uniqueKey":"source.oneOf.1.name","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"source.oneOf.1","typeLabel":"Tag source · object"}],"uniqueKey":"source","typeLabel":"Branch source · object | Tag source · object"}},"required":["tagName"],"uniqueKey":"","typeLabel":"object"},"examples":{"example":{"title":"example","value":{"tagName":"validated-2026-09","source":{"kind":"branch","name":"candidate"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"e0b24da4-98dd-4438-aa2c-6249629da30f":{"description":"Tag created.","content":{"application/json":{"schema":{"type":"object","properties":{"tag":{"title":"TagDetails","type":"object","properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"tag.name","typeLabel":"string"},"snapshotId":{"type":"string","description":"Immutable snapshot pinned by the tag. A tag cannot pin an empty head.","isRequired":true,"uniqueKey":"tag.snapshotId","typeLabel":"string"},"snapshotCommittedAt":{"type":"integer","format":"int64","description":"Pinned snapshot commit time as Unix epoch milliseconds.","isRequired":true,"uniqueKey":"tag.snapshotCommittedAt","typeLabel":"integer\u003cint64>"},"createdAt":{"type":"integer","format":"int64","description":"Tag creation time as Unix epoch milliseconds, independent of the pinned snapshot commit time.","isRequired":true,"uniqueKey":"tag.createdAt","typeLabel":"integer\u003cint64>"}},"required":["name","snapshotId","snapshotCommittedAt","createdAt"],"isRequired":true,"uniqueKey":"tag","typeLabel":"TagDetails · object"}},"required":["tag"],"uniqueKey":"","typeLabel":"object"},"examples":{"example":{"title":"example","value":{"tag":{"name":"validated-2026-09","snapshotId":"snapshot-id","createdAt":1788336000000,"snapshotCommittedAt":1788335940000}}}},"exampleType":"examples"}},"exampleType":"examples"},"1594e494-a454-4137-9430-fb588d0f8eae":{"description":"Bad request","content":{"application/json":{"schema":{"title":"BadRequest","type":"object","properties":{"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"BadRequest · object"},"examples":{"example":{"title":"example","value":{"message":"Invalid request"}}},"exampleType":"examples"}},"exampleType":"examples"},"b0046960-88f2-4e95-b271-af7f10b1b4e8":{"description":"Unauthenticated","content":{"application/json":{"schema":{"title":"Unauthenticated","type":"object","properties":{"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"Unauthenticated · object"},"examples":{"example":{"title":"example","value":{"message":"Authentication failed"}}},"exampleType":"examples"}},"exampleType":"examples"},"60ed9bd9-642f-4cd3-b2ed-fea44c3455a6":{"description":"Resource not found","content":{"application/json":{"schema":{"title":"ResourceNotFound","type":"object","properties":{"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"ResourceNotFound · object"},"examples":{"example":{"title":"example","value":{"message":"Resource not found"}}},"exampleType":"examples"}},"exampleType":"examples"},"54608f4f-5762-406c-8861-1bd9956ee567":{"description":"Resource already exists","content":{"application/json":{"schema":{"title":"ResourceAlreadyExists","type":"object","properties":{"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"ResourceAlreadyExists · object"},"examples":{"example":{"title":"example","value":{"message":"Resource already exists"}}},"exampleType":"examples"}},"exampleType":"examples"},"61764620-330b-4def-89d0-4f82b7c7cf11":{"description":"Request exceeds the Gateway transport limit. Reduce the request size or use bulk upsert when supported.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"894f0e0c-9f15-437e-a9f9-9b6fc112ac85":{"description":"Too many requests","content":{"application/json":{"schema":{"title":"TooManyRequests","type":"object","properties":{"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"TooManyRequests · object"},"examples":{"example":{"title":"example","value":{"message":"Too many requests"}}},"exampleType":"examples"}},"headers":{"Retry-After":{"description":"Optional retry delay in seconds. Not present on every 429 response.","schema":{"type":"string"}}},"exampleType":"examples"},"5e671161-81ac-4cca-aa8c-178149994f60":{"description":"Internal server error","content":{"application/json":{"schema":{"title":"InternalServerError","type":"object","properties":{"message":{"type":"string","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"InternalServerError · object"},"examples":{"example":{"title":"example","value":{"message":"Internal server error"}}},"exampleType":"examples"}},"exampleType":"examples"},"a1fbf0e4-dca3-4db5-ae0c-606b959554df":{"description":"Unexpected downstream failure. A failed write response may leave its outcome uncertain.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"bd997fbc-f6ff-4612-805d-acfbb9b60594":{"description":"Transient catalog or storage dependency failure. Use bounded retries where the operation permits.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"72f23c40-a0d9-49b3-a446-1e5ab21ef3fe":{"description":"Gateway request deadline exceeded. A write may have been applied; verify its outcome before retrying.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"6fd19277-0885-4fe9-a753-787718a2da0f":{"ProjectApiKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"Project API Key.","x-speakeasy-example":"\u003cYOUR_PROJECT_API_KEY>","scopes":[],"schemeName":"ProjectApiKey"}}},"servers":{"0a729800-b165-4e25-bcc0-62d2e09a14d0":{"url":"https://{projectHost}","description":"LambdaDB API endpoints","variables":{"projectHost":{"description":"The project-scoped URL of the API","default":"api.lambdadb.ai/projects/example-project"}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"Project API Key.","x-speakeasy-example":"\u003cYOUR_PROJECT_API_KEY>","scopes":[],"schemeName":"ProjectApiKey"},"schema":{"title":"x-api-key","type":"string","description":"Project API Key.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ProjectApiKey","name":"x-api-key"}],"title":"ProjectApiKey"}]},"originalFileLocation":"reference/api/openapi.json"},"subdomain":"lambdadb","siteName":"LambdaDB Documentation","title":"Create a tag - LambdaDB Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-16T16:43:25.483Z","originalFileLocation":"reference/api/endpoint/tag-create.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Pin a committed snapshot from a branch or tag in the same collection as an immutable tag. A tag source pins the same snapshot, not a chain of tags. Alias sources are not allowed, and source.asOf is valid only for a branch source. Omit source to use main. An empty head or unavailable asOf history returns 400; verify committed data before tagging.\">\u003cmeta data-mint-head name=\"application-name\" content=\"LambdaDB Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lambdadb/HRGCecHRqLCJVNdR/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/lambdadb/HRGCecHRqLCJVNdR/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lambdadb/HRGCecHRqLCJVNdR/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lambdadb/HRGCecHRqLCJVNdR/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lambdadb/HRGCecHRqLCJVNdR/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lambdadb/HRGCecHRqLCJVNdR/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lambdadb/HRGCecHRqLCJVNdR/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lambdadb/HRGCecHRqLCJVNdR/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lambdadb/HRGCecHRqLCJVNdR/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a tag - LambdaDB Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Pin a committed snapshot from a branch or tag in the same collection as an immutable tag. A tag source pins the same snapshot, not a chain of tags. Alias sources are not allowed, and source.asOf is valid only for a branch source. Omit source to use main. An empty head or unavailable asOf history returns 400; verify committed data before tagging.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"LambdaDB Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.lambdadb.ai/reference/api/endpoint/tag-create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://lambdadb.mintlify.app/_mintlify/api/og/v2?division=Branches%2C+tags+%26+aliases\u0026amp;title=Create+a+tag\u0026amp;description=Pin+a+committed+snapshot+from+a+branch+or+tag+in+the+same+collection+as+an+immutable+tag.+A+tag+source+pins+the+same+snapshot%2C+not+a+chain+of+tags.+Alias+source\u0026amp;theme=d3f6cd916d075e4fde43281c\u0026amp;signature=871b90952462ec2c3da29c31fb53dd5e6a949e40b2980ce061634e54ddb62276\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a tag - LambdaDB Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Pin a committed snapshot from a branch or tag in the same collection as an immutable tag. A tag source pins the same snapshot, not a chain of tags. Alias sources are not allowed, and source.asOf is valid only for a branch source. Omit source to use main. An empty head or unavailable asOf history returns 400; verify committed data before tagging.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://lambdadb.mintlify.app/_mintlify/api/og/v2?division=Branches%2C+tags+%26+aliases\u0026amp;title=Create+a+tag\u0026amp;description=Pin+a+committed+snapshot+from+a+branch+or+tag+in+the+same+collection+as+an+immutable+tag.+A+tag+source+pins+the+same+snapshot%2C+not+a+chain+of+tags.+Alias+source\u0026amp;theme=d3f6cd916d075e4fde43281c\u0026amp;signature=871b90952462ec2c3da29c31fb53dd5e6a949e40b2980ce061634e54ddb62276\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/lambdadb/HRGCecHRqLCJVNdR/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"LambdaDB Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.lambdadb.ai/reference/api/endpoint/tag-create\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/reference/api/endpoint/tag-create.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.lambdadb.ai/#organization\",\"name\":\"LambdaDB Documentation\",\"url\":\"https://docs.lambdadb.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/lambdadb/fejsT7T9UaNPB1nX/logo/light.svg?fit=max\u0026auto=format\u0026n=fejsT7T9UaNPB1nX\u0026q=85\u0026s=3984578842930966eb2d9d05766af2cd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.lambdadb.ai#website\",\"name\":\"LambdaDB Documentation\",\"url\":\"https://docs.lambdadb.ai\",\"publisher\":{\"@id\":\"https://docs.lambdadb.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.lambdadb.ai/reference/api/endpoint/tag-create#webpage\",\"url\":\"https://docs.lambdadb.ai/reference/api/endpoint/tag-create\",\"name\":\"Create a tag\",\"description\":\"Pin a committed snapshot from a branch or tag in the same collection as an immutable tag. A tag source pins the same snapshot, not a chain of tags. Alias sources are not allowed, and source.asOf is valid only for a branch source. Omit source to use main. An empty head or unavailable asOf history returns 400; verify committed data before tagging.\",\"dateModified\":\"2026-09-16T16:43:25.483Z\",\"isPartOf\":{\"@id\":\"https://docs.lambdadb.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.lambdadb.ai/reference/api/endpoint/tag-create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.lambdadb.ai/reference/api/endpoint/tag-create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"APIs\",\"item\":\"https://docs.lambdadb.ai/reference/api/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Branches, tags \u0026 aliases\",\"item\":\"https://docs.lambdadb.ai/reference/api/endpoint/branch-create\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create a tag\",\"item\":\"https://docs.lambdadb.ai/reference/api/endpoint/tag-create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.lambdadb.ai/reference/api/endpoint/tag-create#apireference\",\"headline\":\"Create a tag\",\"name\":\"Create a tag\",\"description\":\"Pin a committed snapshot from a branch or tag in the same collection as an immutable tag. A tag source pins the same snapshot, not a chain of tags. Alias sources are not allowed, and source.asOf is valid only for a branch source. Omit source to use main. An empty head or unavailable asOf history returns 400; verify committed data before tagging.\",\"url\":\"https://docs.lambdadb.ai/reference/api/endpoint/tag-create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.lambdadb.ai/reference/api/endpoint/tag-create#webpage\"},\"dateModified\":\"2026-09-16T16:43:25.483Z\",\"publisher\":{\"@id\":\"https://docs.lambdadb.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.lambdadb.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"LambdaDB Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"LambdaDB Documentation","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/get-started/overview"}]},{"tab":"Reference","groups":[{"group":"APIs","pages":[{"title":"API reference","href":"/reference/api/introduction"},{"group":"Collections","pages":[{"title":"List collections","openapi":"get /collections","href":"/reference/api/endpoint/collection-list"},{"title":"Create a collection","openapi":"post /collections","href":"/reference/api/endpoint/collection-create"},{"title":"Describe a collection","openapi":"get /collections/{collectionName}","href":"/reference/api/endpoint/collection-describe"},{"title":"Delete a collection","openapi":"delete /collections/{collectionName}","href":"/reference/api/endpoint/collection-delete"},{"title":"Configure a collection","openapi":"patch /collections/{collectionName}","href":"/reference/api/endpoint/collection-configure"}]},{"group":"Branches, tags \u0026 aliases","pages":[{"title":"Create a branch","openapi":"post /collections/{collectionName}/branches","href":"/reference/api/endpoint/branch-create"},{"title":"List branches","openapi":"get /collections/{collectionName}/branches","href":"/reference/api/endpoint/branch-list"},{"title":"Delete a branch","openapi":"delete /collections/{collectionName}/branches/{branchName}","description":"Delete a branch. Deleting the default main branch returns 400. Deleting another branch returns 409 while any alias references it. Delete or retarget all referencing aliases first.","href":"/reference/api/endpoint/branch-delete"},{"title":"Create a tag","openapi":"post /collections/{collectionName}/tags","href":"/reference/api/endpoint/tag-create"},{"title":"List tags","openapi":"get /collections/{collectionName}/tags","description":"List tags in a collection.","href":"/reference/api/endpoint/tag-list"},{"title":"Delete a tag","openapi":"delete /collections/{collectionName}/tags/{tagName}","href":"/reference/api/endpoint/tag-delete"},{"title":"Create an alias","openapi":"post /collections/{collectionName}/aliases","href":"/reference/api/endpoint/alias-create"},{"title":"List aliases","openapi":"get /collections/{collectionName}/aliases","href":"/reference/api/endpoint/alias-list"},{"title":"Retarget an alias","openapi":"patch /collections/{collectionName}/aliases/{aliasName}","href":"/reference/api/endpoint/alias-retarget"},{"title":"Delete an alias","openapi":"delete /collections/{collectionName}/aliases/{aliasName}","href":"/reference/api/endpoint/alias-delete"}]},{"group":"Documents","pages":[{"title":"Upsert documents","openapi":"post /collections/{collectionName}/docs/upsert","href":"/reference/api/endpoint/document-upsert"},{"title":"Get bulk upsert URL","openapi":"get /collections/{collectionName}/docs/bulk-upsert","href":"/reference/api/endpoint/document-get-bulk-upsert-url"},{"title":"Bulk upsert documents","openapi":"post /collections/{collectionName}/docs/bulk-upsert","href":"/reference/api/endpoint/document-bulk-upsert"},{"title":"Update documents","openapi":"post /collections/{collectionName}/docs/update","href":"/reference/api/endpoint/document-update"},{"title":"Fetch documents","openapi":"post /collections/{collectionName}/docs/fetch","href":"/reference/api/endpoint/document-fetch"},{"title":"List documents","openapi":"get /collections/{collectionName}/docs","href":"/reference/api/endpoint/document-list"},{"title":"List documents extended","openapi":"post /collections/{collectionName}/docs/list","href":"/reference/api/endpoint/document-list-extended"},{"title":"Delete documents","openapi":"post /collections/{collectionName}/docs/delete","href":"/reference/api/endpoint/document-delete"}]},{"group":"Search","pages":[{"title":"Query a collection","openapi":"post /collections/{collectionName}/query","href":"/reference/api/endpoint/document-query"}]}]},{"group":"SDKs and tools","pages":[{"title":"Overview","href":"/reference/sdk/introduction"}]}]}]},"basePath":"","title":"Create a tag - LambdaDB Documentation","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}