The prefix tells you what kind of resource the ID refers to, making debugging and logging much easier.
Common prefixes
Entity
Prefix
Example
Product
prod
prod_01h8z3y4x2w1v0u9t8s7r6q5p4
Departure
dept
dept_01h8z3y4x2w1v0u9t8s7r6q5p4
Booking
book
book_01h8z3y4x2w1v0u9t8s7r6q5p4
Booking Passenger
bkpx
bkpx_01h8z3y4x2w1v0u9t8s7r6q5p4
Person
ppl
ppl_01h8z3y4x2w1v0u9t8s7r6q5p4
Organization
org
org_01h8z3y4x2w1v0u9t8s7r6q5p4
Invoice
inv
inv_01h8z3y4x2w1v0u9t8s7r6q5p4
Payment
pay
pay_01h8z3y4x2w1v0u9t8s7r6q5p4
Itinerary
itin
itin_01h8z3y4x2w1v0u9t8s7r6q5p4
Collection
col
col_01h8z3y4x2w1v0u9t8s7r6q5p4
Tag
tag
tag_01h8z3y4x2w1v0u9t8s7r6q5p4
Quote
qte
qte_01h8z3y4x2w1v0u9t8s7r6q5p4
Webhook
hksub
hksub_01h8z3y4x2w1v0u9t8s7r6q5p4
Validation
The API validates that IDs have the correct prefix for each field:
// Valid - productId has prod_ prefix{ "productId": "prod_01h8z3y4x2w1v0u9t8s7r6q5p4", "departureId": "dept_01h9xm2n3p4q5r6s7t8v9w0x1y"}// Invalid - booking ID used where product ID expected{ "productId": "book_01h8z3y4x2w1v0u9t8s7r6q5p4", "departureId": "dept_01h9xm2n3p4q5r6s7t8v9w0x1y"}
Using an ID with the wrong prefix returns a 400 Bad Request error.
Properties
Globally unique: IDs never collide across workspaces or entity types
Time-sortable: IDs created later sort after earlier ones
Lowercase: Always use lowercase when storing or comparing IDs
Working with IDs
Store and transmit IDs as strings:
// Correctconst productId = "prod_01h8z3y4x2w1v0u9t8s7r6q5p4"// Validate the prefix if neededif (!productId.startsWith("prod_")) { throw new Error("Invalid product ID")}
Use the created_at field from API responses if you need creation timestamps - don’t try to extract them from the ID.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Voyant API","colors":{"primary":"#4671E8","light":"#4671E8","dark":"#4671E8"},"logo":{"light":"https://mintcdn.com/voyant/fEe4gpqk7GAkd-nW/logo/light.svg?fit=max\u0026auto=format\u0026n=fEe4gpqk7GAkd-nW\u0026q=85\u0026s=c12da075c791a5cbc856faa638067aa5","dark":"https://mintcdn.com/voyant/fEe4gpqk7GAkd-nW/logo/dark.svg?fit=max\u0026auto=format\u0026n=fEe4gpqk7GAkd-nW\u0026q=85\u0026s=094f86bbd81eb41d954f2ead2556a7ba"},"favicon":"/favicon.ico","navbar":{"links":[{"label":"Home","href":"https://voyantcloud.com"},{"label":"Support","href":"https://help.voyantcloud.com"},{"label":"Dashboard","href":"https://dash.voyantcloud.com"}]},"footer":{"socials":{}},"contextual":{"options":["copy","view","cursor","vscode"]},"navigation":{"global":{"anchors":[{"anchor":"Support","icon":"envelope","href":"mailto:help@voyantcloud.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"voyant","hasAudioNarration":false,"actualSubdomain":"voyant","customDomains":["docs.voyantcloud.com"],"gitSource":{"type":"github","owner":"voyant-travel","repo":"voyant","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":false,"mountPath":"","label":"","_id":"6b10bece9ffae5051c40428f"},"entitlements":{},"buildId":"6ae93fc4fafb49d47fd562de:success","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"API reference","count":240},{"language":"default","tag":"Communications","count":21},{"language":"default","tag":"Contracts","count":14},{"language":"default","tag":"Transport","count":13},{"language":"default","tag":"Bookings","count":12},{"language":"default","tag":"Gallery","count":12},{"language":"default","tag":"Documentation","count":11},{"language":"default","tag":"Forms","count":10},{"language":"default","tag":"Marketplace","count":10},{"language":"default","tag":"Promotions","count":10}]},"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":"rbac-expansion","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":"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":"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":"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":"turbopuffer-dual-write","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":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"concepts/identifiers","slug":"/concepts/identifiers","pageMetadata":{"title":"Identifiers","description":"Understanding resource identifiers in the Voyant API","href":"/concepts/identifiers"},"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: \"Understanding resource identifiers in the Voyant API\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`format`,children:`Format`}),`\n`,_jsxs(_components.p,{children:[`All resources in Voyant use `,_jsx(_components.strong,{children:`TypeIDs`}),` - prefixed identifiers that indicate the entity type:`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`4`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`prod_01h8z3y4x2w1v0u9t8s7r6q5p4`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`└──┘ └─────────────────────────┘`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`prefix suffix`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`The prefix tells you what kind of resource the ID refers to, making debugging and logging much easier.`}),`\n`,_jsx(Heading,{level:`2`,id:`common-prefixes`,children:`Common prefixes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Entity`}),_jsx(_components.th,{children:`Prefix`}),_jsx(_components.th,{children:`Example`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Product`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`prod`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`prod_01h8z3y4x2w1v0u9t8s7r6q5p4`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Departure`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`dept`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`dept_01h8z3y4x2w1v0u9t8s7r6q5p4`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Booking`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`book`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`book_01h8z3y4x2w1v0u9t8s7r6q5p4`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Booking Passenger`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`bkpx`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`bkpx_01h8z3y4x2w1v0u9t8s7r6q5p4`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Person`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`ppl`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`ppl_01h8z3y4x2w1v0u9t8s7r6q5p4`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Organization`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`org`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`org_01h8z3y4x2w1v0u9t8s7r6q5p4`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Invoice`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`inv`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`inv_01h8z3y4x2w1v0u9t8s7r6q5p4`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Payment`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`pay`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`pay_01h8z3y4x2w1v0u9t8s7r6q5p4`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Itinerary`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`itin`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`itin_01h8z3y4x2w1v0u9t8s7r6q5p4`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Collection`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`col`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`col_01h8z3y4x2w1v0u9t8s7r6q5p4`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Tag`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`tag`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`tag_01h8z3y4x2w1v0u9t8s7r6q5p4`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Quote`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`qte`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`qte_01h8z3y4x2w1v0u9t8s7r6q5p4`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Webhook`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`hksub`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`hksub_01h8z3y4x2w1v0u9t8s7r6q5p4`})})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`validation`,children:`Validation`}),`\n`,_jsx(_components.p,{children:`The API validates that IDs have the correct prefix for each field:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Valid - productId has prod_ prefix`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"productId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"prod_01h8z3y4x2w1v0u9t8s7r6q5p4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"departureId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dept_01h9xm2n3p4q5r6s7t8v9w0x1y\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Invalid - booking ID used where product ID expected`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"productId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"book_01h8z3y4x2w1v0u9t8s7r6q5p4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"departureId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dept_01h9xm2n3p4q5r6s7t8v9w0x1y\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Using an ID with the wrong prefix returns a `,_jsx(_components.code,{children:`400 Bad Request`}),` error.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`properties`,children:`Properties`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Globally unique`}),`: IDs never collide across workspaces or entity types`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Time-sortable`}),`: IDs created later sort after earlier ones`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Lowercase`}),`: Always use lowercase when storing or comparing IDs`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`working-with-ids`,children:`Working with IDs`}),`\n`,_jsx(_components.p,{children:`Store and transmit IDs as strings:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Correct`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` productId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prod_01h8z3y4x2w1v0u9t8s7r6q5p4\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Validate the prefix if needed`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`productId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`startsWith`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"prod_\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Invalid product ID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Use the `,_jsx(_components.code,{children:`created_at`}),` field from API responses if you need creation timestamps - don’t try to extract them from the ID.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Identifiers","description":"Understanding resource identifiers in the Voyant API","href":"/concepts/identifiers"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Format","slug":"format","depth":2,"children":[]},{"title":"Common prefixes","slug":"common-prefixes","depth":2,"children":[]},{"title":"Validation","slug":"validation","depth":2,"children":[]},{"title":"Properties","slug":"properties","depth":2,"children":[]},{"title":"Working with IDs","slug":"working-with-ids","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"voyant","siteName":"Voyant API","title":"Identifiers - Voyant API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"concepts/identifiers.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=\"Understanding resource identifiers in the Voyant API\">\u003cmeta data-mint-head name=\"application-name\" content=\"Voyant API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/voyant/15jIPJbt4S-Ew3-C/_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/voyant/15jIPJbt4S-Ew3-C/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/voyant/15jIPJbt4S-Ew3-C/_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/voyant/15jIPJbt4S-Ew3-C/_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/voyant/15jIPJbt4S-Ew3-C/_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/voyant/15jIPJbt4S-Ew3-C/_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/voyant/15jIPJbt4S-Ew3-C/_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/voyant/15jIPJbt4S-Ew3-C/_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/voyant/15jIPJbt4S-Ew3-C/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Identifiers - Voyant API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Understanding resource identifiers in the Voyant API\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Voyant API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.voyantcloud.com/concepts/identifiers\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://voyant.mintlify.site/_mintlify/api/og/v2?division=Core+concepts\u0026amp;title=Identifiers\u0026amp;description=Understanding+resource+identifiers+in+the+Voyant+API\u0026amp;theme=4b6d14141a5ae10ff9d433f5\u0026amp;signature=78387ff2a76d78e58e90f02930a961e94781249e1812b07543bcf4701bada418\">\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=\"Identifiers - Voyant API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Understanding resource identifiers in the Voyant API\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://voyant.mintlify.site/_mintlify/api/og/v2?division=Core+concepts\u0026amp;title=Identifiers\u0026amp;description=Understanding+resource+identifiers+in+the+Voyant+API\u0026amp;theme=4b6d14141a5ae10ff9d433f5\u0026amp;signature=78387ff2a76d78e58e90f02930a961e94781249e1812b07543bcf4701bada418\">\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/voyant/15jIPJbt4S-Ew3-C/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Voyant API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4671E8\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.voyantcloud.com/concepts/identifiers\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/concepts/identifiers.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.voyantcloud.com/#organization\",\"name\":\"Voyant API\",\"url\":\"https://docs.voyantcloud.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/voyant/fEe4gpqk7GAkd-nW/logo/light.svg?fit=max\u0026auto=format\u0026n=fEe4gpqk7GAkd-nW\u0026q=85\u0026s=c12da075c791a5cbc856faa638067aa5\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.voyantcloud.com#website\",\"name\":\"Voyant API\",\"url\":\"https://docs.voyantcloud.com\",\"publisher\":{\"@id\":\"https://docs.voyantcloud.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.voyantcloud.com/concepts/identifiers#webpage\",\"url\":\"https://docs.voyantcloud.com/concepts/identifiers\",\"name\":\"Identifiers\",\"description\":\"Understanding resource identifiers in the Voyant API\",\"isPartOf\":{\"@id\":\"https://docs.voyantcloud.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.voyantcloud.com/concepts/identifiers#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.voyantcloud.com/concepts/identifiers#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Core concepts\",\"item\":\"https://docs.voyantcloud.com/concepts/workspaces\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Identifiers\",\"item\":\"https://docs.voyantcloud.com/concepts/identifiers\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.voyantcloud.com/concepts/identifiers#article\",\"headline\":\"Identifiers\",\"name\":\"Identifiers\",\"description\":\"Understanding resource identifiers in the Voyant API\",\"url\":\"https://docs.voyantcloud.com/concepts/identifiers\",\"mainEntityOfPage\":{\"@id\":\"https://docs.voyantcloud.com/concepts/identifiers#webpage\"},\"publisher\":{\"@id\":\"https://docs.voyantcloud.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.voyantcloud.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Voyant API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Voyant API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/concepts/identifiers.md","siteName":"Voyant API","nav":{"global":{"anchors":[{"anchor":"Support","icon":"envelope","href":"mailto:help@voyantcloud.com"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Getting started","pages":[{"title":"Welcome to the Voyant API","href":""},{"title":"Quickstart","href":"/quickstart"},{"title":"Authentication","href":"/authentication"},{"title":"API tokens \u0026 scopes","href":"/api-tokens"}]},{"group":"Core concepts","pages":[{"title":"Workspaces","description":"Understanding workspaces and how they scope your API operations","href":"/concepts/workspaces"},{"title":"Identifiers","href":"/concepts/identifiers"},{"title":"Rate limits","description":"Understanding API rate limits","href":"/concepts/rate-limits"},{"title":"Webhooks","href":"/concepts/webhooks"},{"title":"Marketplace Provider Offers","href":"/concepts/marketplace-offers"}]},{"group":"CLI","pages":[{"title":"Voyant CLI","href":"/cli/overview"},{"title":"CLI Commands","href":"/cli/commands"}]}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/introduction"}]}]},"basePath":"","title":"Identifiers - Voyant API","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":[],"chunks":[]}