Identify upserts a profile: it creates it the first time a userId is seen and updates its traits after that. Send it when a person signs up, signs in or changes their details.
This call names a userId, so in required mode, the default, it also needs the Maqetin-Identity-Token header. See Identity verification.
Headers
string
required
Bearer mq_live_…, your public key. A secret key is refused here: send events with a secret key to /v1/batch.
string
A token your server signed for this userId. Needed in required mode. See Identity token.
Body
The body is at most 32 KiB. Any other top-level field is a 400.
string
required
Your own id for the person, 1 to 256 characters.
object
required
What you know about the person. Send {} when you have nothing to add. Trait names cannot hold the NUL character. Any trait not listed here can hold any JSON value.
Show traits with a type
string
A valid email address.
string
A string.
string
A string.
string
A string.
string
A string.
string
A string.
string
An ISO 8601 date-time. Maqetin stores it in UTC.
string
required
Where the call came from: web, ios, android, node, python, go or rest. Use rest for your own HTTP calls.
string
The id the person had before they signed in, at most 256 characters. Their earlier anonymous events join the profile.
string
1 to 64 characters. A retry with the same id is stored once. See Send an event once.
string
When it happened, as an ISO 8601 date-time. Used only together with sentAt. See Event time.
string
When your client sent the request, as an ISO 8601 date-time.
string
The id of the session, at most 256 characters.
string
The version of the SDK that made the call.
object
Where the call was made. The SDK fills it for you. Keys not listed here can hold any JSON value.
Show context fields with a rule
string
An IANA time zone, at most 64 characters.
string
At most 35 characters.
string
At most 64 characters.
string
At most 512 characters.
object
name and version, both strings, both required.
object
name, version and build, all strings.
object
name and version, both strings.
object
model and manufacturer, both strings.
object
url (at most 768 characters), path (256), referrer (512) and title (200). No other key.
object
source, medium, name, term and content (each at most 100 characters), clickIds (an object of known ad click ids, each 1 to 256 characters) and capturedAt (an ISO 8601 date-time). No other key.
object
analytics (required), adStorage, adUserData, adPersonalization and push, each granted, denied or unset; gpc and childDirected, booleans; att, one of notDetermined, restricted, denied or authorized; v, a whole number; ts, an ISO 8601 date-time. No other key.
object
brands (at most 10 of { brand, version }), mobile (a boolean) and platform (at most 64 characters). No other key.
Response
number
required
The number of events taken: 1.
A 202 means the call is stored. A refusal has error and, for a body problem, at. See Errors.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Maqetin Docs","description":"Documentation for Maqetin: send events from your product and message your users when they act or stall.","colors":{"primary":"#17171A","light":"#FFCB2E","dark":"#17171A"},"logo":{"light":"https://mintcdn.com/maqetin/r_6ywoDe-dLwZMPE/logo/light.svg?fit=max\u0026auto=format\u0026n=r_6ywoDe-dLwZMPE\u0026q=85\u0026s=166440aae0e00301cf052794b22b0be2","dark":"https://mintcdn.com/maqetin/r_6ywoDe-dLwZMPE/logo/dark.svg?fit=max\u0026auto=format\u0026n=r_6ywoDe-dLwZMPE\u0026q=85\u0026s=bbb529902c48812a52b66fce4918f737"},"favicon":"https://mintcdn.com/maqetin/r_6ywoDe-dLwZMPE/favicon.svg?fit=max\u0026auto=format\u0026n=r_6ywoDe-dLwZMPE\u0026q=85\u0026s=b57c24b3e6534dec12078245d6269856","api":{"playground":{"display":"simple"}},"background":{"color":{"light":"#F2F2EC","dark":"#17171A"}},"navbar":{"links":[{"href":"mailto:support@maqetin.com","label":"Support"},{"href":"https://github.com/Maqetin/maqetin-js","type":"github"}]},"footer":{"socials":{"github":"https://github.com/Maqetin"}},"seo":{"metatags":{"og:site_name":"Maqetin Docs"}},"fonts":{"family":"Familjen Grotesk"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://maqetin.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"maqetin","hasAudioNarration":false,"actualSubdomain":"maqetin","customDomains":["docs.maqetin.com"],"gitSource":{"type":"github","owner":"maqetin","repo":"maqetin-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b11786f5a390cdfc61d202b"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b118855514e7ad9e6d4b13a","clientVersion":"0.0.4428","searchFilterCounts":[{"language":"default","tag":"Guides","count":18},{"language":"default","tag":"API reference","count":7},{"language":"default","tag":"Messaging","count":7},{"language":"default","tag":"Data","count":5},{"language":"default","tag":"SDKs","count":5},{"language":"default","tag":"Get started","count":4},{"language":"default","tag":"Workspace","count":4},{"language":"default","tag":"Events","count":3},{"language":"default","tag":"JavaScript","count":3},{"language":"default","tag":"Messages and contacts","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":true},"customCss":[{"filePath":"style.css","content":":root{--signal: #ffcb2e;--on-signal: #17171a}::selection{background:var(--signal);color:var(--on-signal)}#navigation-items a[aria-current=\"page\"]{background:var(--signal);color:var(--on-signal)}#navbar a.nav-tabs-item[data-active=\"true\"]>div.absolute{height:3px;background:var(--signal)}#table-of-contents a[data-active=\"true\"]{color:inherit;font-weight:600;text-decoration:underline;text-decoration-color:var(--signal);text-decoration-thickness:2px;text-underline-offset:4px}[data-component-part=\"step-indicator\"]{background:var(--signal);color:var(--on-signal)}#content-area p a:not([data-component-part]),#content-area li a:not([data-component-part]){text-decoration-color:var(--signal);text-decoration-thickness:2px;text-underline-offset:3px}#content-area p a:not([data-component-part]):hover,#content-area li a:not([data-component-part]):hover{background:var(--signal);color:var(--on-signal)}.callout[data-callout-type=\"note\"],.callout[data-callout-type=\"info\"],.callout[data-callout-type=\"tip\"],.callout[data-callout-type=\"check\"]{background:rgb(23 23 26 / 0.04);border-color:rgb(23 23 26 / 0.12);box-shadow:inset 4px 0 0 var(--signal)}.callout[data-callout-type=\"note\"] svg,.callout[data-callout-type=\"info\"] svg,.callout[data-callout-type=\"tip\"] svg,.callout[data-callout-type=\"check\"] svg,.callout[data-callout-type=\"note\"] [data-component-part=\"callout-content\"],.callout[data-callout-type=\"info\"] [data-component-part=\"callout-content\"],.callout[data-callout-type=\"tip\"] [data-component-part=\"callout-content\"],.callout[data-callout-type=\"check\"] [data-component-part=\"callout-content\"]{color:#17171a}html.dark .callout[data-callout-type=\"note\"],html.dark .callout[data-callout-type=\"info\"],html.dark .callout[data-callout-type=\"tip\"],html.dark .callout[data-callout-type=\"check\"]{background:rgb(242 242 236 / 0.06);border-color:rgb(242 242 236 / 0.14)}html.dark .callout[data-callout-type=\"note\"] svg,html.dark .callout[data-callout-type=\"info\"] svg,html.dark .callout[data-callout-type=\"tip\"] svg,html.dark .callout[data-callout-type=\"check\"] svg,html.dark .callout[data-callout-type=\"note\"] [data-component-part=\"callout-content\"],html.dark .callout[data-callout-type=\"info\"] [data-component-part=\"callout-content\"],html.dark .callout[data-callout-type=\"tip\"] [data-component-part=\"callout-content\"],html.dark .callout[data-callout-type=\"check\"] [data-component-part=\"callout-content\"]{color:#f2f2ec}"}]}
{"page":{"pagePath":"api-reference/identify","slug":"/api-reference/identify","pageMetadata":{"title":"Identify","description":"Create or update the profile of a person, with their traits.","api":"POST https://in.maqetin.com/v1/identify","authMethod":"bearer","href":"/api-reference/identify"},"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: \"Create or update the profile of a person, with their traits.\"\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={a:`a`,code:`code`,p:`p`,..._provideComponents(),...props.components},{Expandable,Heading,Note,ParamField,ResponseField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Identify upserts a profile: it creates it the first time a `,_jsx(_components.code,{children:`userId`}),` is seen and updates its traits after that. Send it when a person signs up, signs in or changes their details.`]}),`\n`,_jsxs(Note,{children:[`This call names a `,_jsx(_components.code,{children:`userId`}),`, so in `,_jsx(_components.code,{children:`required`}),` mode, the default, it also needs the `,_jsx(_components.code,{children:`Maqetin-Identity-Token`}),` header. See `,_jsx(_components.a,{href:`/data/identity-verification`,children:`Identity verification`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`headers`,children:`Headers`}),`\n`,_jsxs(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:[_jsx(_components.code,{children:`Bearer mq_live_…`}),`, your public key. A secret key is refused here: send events with a secret key to `,_jsx(_components.a,{href:`/api-reference/batch`,children:_jsx(_components.code,{children:`/v1/batch`})}),`.`]}),`\n`,_jsxs(ParamField,{header:`Maqetin-Identity-Token`,type:`string`,id:`param-maqetin-identity-token`,children:[`A token your server signed for this `,_jsx(_components.code,{children:`userId`}),`. Needed in `,_jsx(_components.code,{children:`required`}),` mode. See `,_jsx(_components.a,{href:`/api-reference/introduction#identity-token`,children:`Identity token`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`body`,children:`Body`}),`\n`,_jsxs(_components.p,{children:[`The body is at most 32 KiB. Any other top-level field is a `,_jsx(_components.code,{children:`400`}),`.`]}),`\n`,_jsx(ParamField,{body:`userId`,type:`string`,required:true,id:`param-user-id`,children:`Your own id for the person, 1 to 256 characters.`}),`\n`,_jsxs(ParamField,{body:`traits`,type:`object`,required:true,id:`param-traits`,children:[_jsxs(_components.p,{children:[`What you know about the person. Send `,_jsx(_components.code,{children:`{}`}),` when you have nothing to add. Trait names cannot hold the NUL character. Any trait not listed here can hold any JSON value.`]}),_jsxs(Expandable,{title:`traits with a type`,children:[_jsx(ParamField,{body:`email`,type:`string`,id:`param-email`,children:`A valid email address.`}),_jsx(ParamField,{body:`phone`,type:`string`,id:`param-phone`,children:`A string.`}),_jsx(ParamField,{body:`firstName`,type:`string`,id:`param-first-name`,children:`A string.`}),_jsx(ParamField,{body:`lastName`,type:`string`,id:`param-last-name`,children:`A string.`}),_jsx(ParamField,{body:`plan`,type:`string`,id:`param-plan`,children:`A string.`}),_jsx(ParamField,{body:`country`,type:`string`,id:`param-country`,children:`A string.`}),_jsx(ParamField,{body:`createdAt`,type:`string`,id:`param-created-at`,children:`An ISO 8601 date-time. Maqetin stores it in UTC.`})]})]}),`\n`,_jsxs(ParamField,{body:`channel`,type:`string`,required:true,id:`param-channel`,children:[`Where the call came from: `,_jsx(_components.code,{children:`web`}),`, `,_jsx(_components.code,{children:`ios`}),`, `,_jsx(_components.code,{children:`android`}),`, `,_jsx(_components.code,{children:`node`}),`, `,_jsx(_components.code,{children:`python`}),`, `,_jsx(_components.code,{children:`go`}),` or `,_jsx(_components.code,{children:`rest`}),`. Use `,_jsx(_components.code,{children:`rest`}),` for your own HTTP calls.`]}),`\n`,_jsx(ParamField,{body:`anonymousId`,type:`string`,id:`param-anonymous-id`,children:`The id the person had before they signed in, at most 256 characters. Their earlier anonymous events join the profile.`}),`\n`,_jsxs(ParamField,{body:`messageId`,type:`string`,id:`param-message-id`,children:[`1 to 64 characters. A retry with the same id is stored once. See `,_jsx(_components.a,{href:`/api-reference/introduction#send-an-event-once`,children:`Send an event once`}),`.`]}),`\n`,_jsxs(ParamField,{body:`timestamp`,type:`string`,id:`param-timestamp`,children:[`When it happened, as an ISO 8601 date-time. Used only together with `,_jsx(_components.code,{children:`sentAt`}),`. See `,_jsx(_components.a,{href:`/api-reference/introduction#event-time`,children:`Event time`}),`.`]}),`\n`,_jsx(ParamField,{body:`sentAt`,type:`string`,id:`param-sent-at`,children:`When your client sent the request, as an ISO 8601 date-time.`}),`\n`,_jsx(ParamField,{body:`sessionId`,type:`string`,id:`param-session-id`,children:`The id of the session, at most 256 characters.`}),`\n`,_jsx(ParamField,{body:`sdkVersion`,type:`string`,id:`param-sdk-version`,children:`The version of the SDK that made the call.`}),`\n`,_jsxs(ParamField,{body:`context`,type:`object`,id:`param-context`,children:[_jsx(_components.p,{children:`Where the call was made. The SDK fills it for you. Keys not listed here can hold any JSON value.`}),_jsxs(Expandable,{title:`context fields with a rule`,children:[_jsx(ParamField,{body:`timezone`,type:`string`,id:`param-timezone`,children:`An IANA time zone, at most 64 characters.`}),_jsx(ParamField,{body:`locale`,type:`string`,id:`param-locale`,children:`At most 35 characters.`}),_jsx(ParamField,{body:`deviceId`,type:`string`,id:`param-device-id`,children:`At most 64 characters.`}),_jsx(ParamField,{body:`userAgent`,type:`string`,id:`param-user-agent`,children:`At most 512 characters.`}),_jsxs(ParamField,{body:`library`,type:`object`,id:`param-library`,children:[_jsx(_components.code,{children:`name`}),` and `,_jsx(_components.code,{children:`version`}),`, both strings, both required.`]}),_jsxs(ParamField,{body:`app`,type:`object`,id:`param-app`,children:[_jsx(_components.code,{children:`name`}),`, `,_jsx(_components.code,{children:`version`}),` and `,_jsx(_components.code,{children:`build`}),`, all strings.`]}),_jsxs(ParamField,{body:`os`,type:`object`,id:`param-os`,children:[_jsx(_components.code,{children:`name`}),` and `,_jsx(_components.code,{children:`version`}),`, both strings.`]}),_jsxs(ParamField,{body:`device`,type:`object`,id:`param-device`,children:[_jsx(_components.code,{children:`model`}),` and `,_jsx(_components.code,{children:`manufacturer`}),`, both strings.`]}),_jsxs(ParamField,{body:`page`,type:`object`,id:`param-page`,children:[_jsx(_components.code,{children:`url`}),` (at most 768 characters), `,_jsx(_components.code,{children:`path`}),` (256), `,_jsx(_components.code,{children:`referrer`}),` (512) and `,_jsx(_components.code,{children:`title`}),` (200). No other key.`]}),_jsxs(ParamField,{body:`campaign`,type:`object`,id:`param-campaign`,children:[_jsx(_components.code,{children:`source`}),`, `,_jsx(_components.code,{children:`medium`}),`, `,_jsx(_components.code,{children:`name`}),`, `,_jsx(_components.code,{children:`term`}),` and `,_jsx(_components.code,{children:`content`}),` (each at most 100 characters), `,_jsx(_components.code,{children:`clickIds`}),` (an object of known ad click ids, each 1 to 256 characters) and `,_jsx(_components.code,{children:`capturedAt`}),` (an ISO 8601 date-time). No other key.`]}),_jsxs(ParamField,{body:`consent`,type:`object`,id:`param-consent`,children:[_jsx(_components.code,{children:`analytics`}),` (required), `,_jsx(_components.code,{children:`adStorage`}),`, `,_jsx(_components.code,{children:`adUserData`}),`, `,_jsx(_components.code,{children:`adPersonalization`}),` and `,_jsx(_components.code,{children:`push`}),`, each `,_jsx(_components.code,{children:`granted`}),`, `,_jsx(_components.code,{children:`denied`}),` or `,_jsx(_components.code,{children:`unset`}),`; `,_jsx(_components.code,{children:`gpc`}),` and `,_jsx(_components.code,{children:`childDirected`}),`, booleans; `,_jsx(_components.code,{children:`att`}),`, one of `,_jsx(_components.code,{children:`notDetermined`}),`, `,_jsx(_components.code,{children:`restricted`}),`, `,_jsx(_components.code,{children:`denied`}),` or `,_jsx(_components.code,{children:`authorized`}),`; `,_jsx(_components.code,{children:`v`}),`, a whole number; `,_jsx(_components.code,{children:`ts`}),`, an ISO 8601 date-time. No other key.`]}),_jsxs(ParamField,{body:`userAgentData`,type:`object`,id:`param-user-agent-data`,children:[_jsx(_components.code,{children:`brands`}),` (at most 10 of `,_jsx(_components.code,{children:`{ brand, version }`}),`), `,_jsx(_components.code,{children:`mobile`}),` (a boolean) and `,_jsx(_components.code,{children:`platform`}),` (at most 64 characters). No other key.`]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(ResponseField,{name:`accepted`,type:`number`,required:true,id:`param-accepted`,children:[`The number of events taken: `,_jsx(_components.code,{children:`1`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`A `,_jsx(_components.code,{children:`202`}),` means the call is stored. A refusal has `,_jsx(_components.code,{children:`error`}),` and, for a body problem, `,_jsx(_components.code,{children:`at`}),`. See `,_jsx(_components.a,{href:`/api-reference/errors#event-routes`,children:`Errors`}),`.`]})]})}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":"Identify","description":"Create or update the profile of a person, with their traits.","api":"POST https://in.maqetin.com/v1/identify","authMethod":"bearer","href":"/api-reference/identify"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[205,329,"pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,RequestExample,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_"],[521,533,"questExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)"],[9472,9900,",`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`13`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://in.maqetin.com/v1/identify`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer mq_live_…'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"userId\": \"user_123\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"traits\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"email\": \"ada@example.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"firstName\": \"Ada\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"lastName\": \"Lovelace\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"plan\": \"pro\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"channel\": \"rest\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})})}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`202`,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"accepted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`400`,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"invalid payload\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/traits/email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] }`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`401`,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"token_required\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})})]})]})}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.\")}"]]},"mdxExtracts":{"tableOfContents":[{"title":"Headers","slug":"headers","depth":2,"children":[]},{"title":"Body","slug":"body","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"13\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://in.maqetin.com/v1/identify\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization: Bearer mq_live_…'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"userId\": \"user_123\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"traits\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"email\": \"ada@example.com\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"firstName\": \"Ada\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"lastName\": \"Lovelace\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"plan\": \"pro\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"channel\": \"rest\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">}'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"202","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"1\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{ \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"accepted\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">1\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"400","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"1\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{ \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"invalid payload\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"/traits/email\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">] }\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"401","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"1\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{ \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"token_required\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Identify","path":"/v1/identify","servers":[{"url":"https://in.maqetin.com"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{"Authorization":{"schema":[{"type":"string","description":"`Bearer mq_live_…` , your public key. A secret key is refused here: send events with a secret key to `/v1/batch` .","required":true}]},"Maqetin-Identity-Token":{"schema":[{"type":"string","description":"A token your server signed for this `userId` . Needed in `required` mode. See Identity token ."}]}},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"userId":[{"type":"string","description":"Your own id for the person, 1 to 256 characters.","required":true}],"traits":[{"type":"object","properties":{"email":[{"type":"string","description":"A valid email address."}],"phone":[{"type":"string","description":"A string."}],"firstName":[{"type":"string","description":"A string."}],"lastName":[{"type":"string","description":"A string."}],"plan":[{"type":"string","description":"A string."}],"country":[{"type":"string","description":"A string."}],"createdAt":[{"type":"string","description":"An ISO 8601 date-time. Maqetin stores it in UTC."}]},"description":"What you know about the person. Send `{}` when you have nothing to add. Trait names cannot hold the NUL character. Any trait not listed here can hold any JSON value.","required":true}],"channel":[{"type":"string","description":"Where the call came from: `web` , `ios` , `android` , `node` , `python` , `go` or `rest` . Use `rest` for your own HTTP calls.","required":true}],"anonymousId":[{"type":"string","description":"The id the person had before they signed in, at most 256 characters. Their earlier anonymous events join the profile."}],"messageId":[{"type":"string","description":"1 to 64 characters. A retry with the same id is stored once. See Send an event once ."}],"timestamp":[{"type":"string","description":"When it happened, as an ISO 8601 date-time. Used only together with `sentAt` . See Event time ."}],"sentAt":[{"type":"string","description":"When your client sent the request, as an ISO 8601 date-time."}],"sessionId":[{"type":"string","description":"The id of the session, at most 256 characters."}],"sdkVersion":[{"type":"string","description":"The version of the SDK that made the call."}],"context":[{"type":"object","properties":{"timezone":[{"type":"string","description":"An IANA time zone, at most 64 characters."}],"locale":[{"type":"string","description":"At most 35 characters."}],"deviceId":[{"type":"string","description":"At most 64 characters."}],"userAgent":[{"type":"string","description":"At most 512 characters."}],"library":[{"type":"object","properties":{},"description":"`name` and `version` , both strings, both required."}],"app":[{"type":"object","properties":{},"description":"`name` , `version` and `build` , all strings."}],"os":[{"type":"object","properties":{},"description":"`name` and `version` , both strings."}],"device":[{"type":"object","properties":{},"description":"`model` and `manufacturer` , both strings."}],"page":[{"type":"object","properties":{},"description":"`url` (at most 768 characters), `path` (256), `referrer` (512) and `title` (200). No other key."}],"campaign":[{"type":"object","properties":{},"description":"`source` , `medium` , `name` , `term` and `content` (each at most 100 characters), `clickIds` (an object of known ad click ids, each 1 to 256 characters) and `capturedAt` (an ISO 8601 date-time). No other key."}],"consent":[{"type":"object","properties":{},"description":"`analytics` (required), `adStorage` , `adUserData` , `adPersonalization` and `push` , each `granted` , `denied` or `unset` ; `gpc` and `childDirected` , booleans; `att` , one of `notDetermined` , `restricted` , `denied` or `authorized` ; `v` , a whole number; `ts` , an ISO 8601 date-time. No other key."}],"userAgentData":[{"type":"object","properties":{},"description":"`brands` (at most 10 of `{ brand, version }` ), `mobile` (a boolean) and `platform` (at most 64 characters). No other key."}]},"description":"Where the call was made. The SDK fills it for you. Keys not listed here can hold any JSON value."}]}}],"examples":{"example":{"value":{"userId":"\u003cstring>","traits":{"email":"\u003cstring>","phone":"\u003cstring>","firstName":"\u003cstring>","lastName":"\u003cstring>","plan":"\u003cstring>","country":"\u003cstring>","createdAt":"\u003cstring>"},"channel":"\u003cstring>","anonymousId":"\u003cstring>","messageId":"\u003cstring>","timestamp":"\u003cstring>","sentAt":"\u003cstring>","sessionId":"\u003cstring>","sdkVersion":"\u003cstring>","context":{"timezone":"\u003cstring>","locale":"\u003cstring>","deviceId":"\u003cstring>","userAgent":"\u003cstring>","library":{},"app":{},"os":{},"device":{},"page":{},"campaign":{},"consent":{},"userAgentData":{}}}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"accepted":[{"type":"number","description":"The number of events taken: `1` .","required":true}]}}],"examples":{"example":{"value":{"accepted":123}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"maqetin","siteName":"Maqetin Docs","title":"Identify - Maqetin Docs","relatedPagesConfig":{"enabled":true,"limit":5,"mode":"automatic"},"contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-03T15:18:49.136Z","originalFileLocation":"api-reference/identify.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=\"Create or update the profile of a person, with their traits.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Maqetin Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/maqetin/Qg-ESbPt-GMgO1Uj/_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/maqetin/Qg-ESbPt-GMgO1Uj/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/maqetin/Qg-ESbPt-GMgO1Uj/_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/maqetin/Qg-ESbPt-GMgO1Uj/_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/maqetin/Qg-ESbPt-GMgO1Uj/_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/maqetin/Qg-ESbPt-GMgO1Uj/_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/maqetin/Qg-ESbPt-GMgO1Uj/_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/maqetin/Qg-ESbPt-GMgO1Uj/_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/maqetin/Qg-ESbPt-GMgO1Uj/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Identify - Maqetin Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create or update the profile of a person, with their traits.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Maqetin Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.maqetin.com/api-reference/identify\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://maqetin.mintlify.site/_mintlify/api/og/v2?division=Events\u0026amp;title=Identify\u0026amp;description=Create+or+update+the+profile+of+a+person%2C+with+their+traits.\u0026amp;theme=6d4b50211848149bb0cb7554\u0026amp;signature=1295062a2aa567976c5a8a6e60217bb18d1457a9a8fe63d2ccae857782c755b1\">\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=\"Identify - Maqetin Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create or update the profile of a person, with their traits.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://maqetin.mintlify.site/_mintlify/api/og/v2?division=Events\u0026amp;title=Identify\u0026amp;description=Create+or+update+the+profile+of+a+person%2C+with+their+traits.\u0026amp;theme=6d4b50211848149bb0cb7554\u0026amp;signature=1295062a2aa567976c5a8a6e60217bb18d1457a9a8fe63d2ccae857782c755b1\">\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/maqetin/Qg-ESbPt-GMgO1Uj/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Maqetin Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#17171A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.maqetin.com/api-reference/identify\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/identify.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.maqetin.com/#organization\",\"name\":\"Maqetin Docs\",\"url\":\"https://docs.maqetin.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/maqetin/r_6ywoDe-dLwZMPE/logo/light.svg?fit=max\u0026auto=format\u0026n=r_6ywoDe-dLwZMPE\u0026q=85\u0026s=166440aae0e00301cf052794b22b0be2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.maqetin.com#website\",\"name\":\"Maqetin Docs\",\"url\":\"https://docs.maqetin.com\",\"publisher\":{\"@id\":\"https://docs.maqetin.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.maqetin.com/api-reference/identify#webpage\",\"url\":\"https://docs.maqetin.com/api-reference/identify\",\"name\":\"Identify\",\"description\":\"Create or update the profile of a person, with their traits.\",\"dateModified\":\"2026-12-03T15:18:49.136Z\",\"isPartOf\":{\"@id\":\"https://docs.maqetin.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.maqetin.com/api-reference/identify#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.maqetin.com/api-reference/identify#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Maqetin Docs\",\"item\":\"https://docs.maqetin.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Identify\",\"item\":\"https://docs.maqetin.com/api-reference/identify\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.maqetin.com/api-reference/identify#apireference\",\"headline\":\"Identify\",\"name\":\"Identify\",\"description\":\"Create or update the profile of a person, with their traits.\",\"url\":\"https://docs.maqetin.com/api-reference/identify\",\"mainEntityOfPage\":{\"@id\":\"https://docs.maqetin.com/api-reference/identify#webpage\"},\"dateModified\":\"2026-12-03T15:18:49.136Z\",\"publisher\":{\"@id\":\"https://docs.maqetin.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.maqetin.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Maqetin Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Maqetin Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/identify.md","siteName":"Maqetin Docs","nav":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://maqetin.com"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"SDKs","pages":[{"title":"SDKs","href":"/sdk/overview"}]},{"tab":"API reference","groups":[{"group":"Get started","pages":[{"title":"API reference","sidebarTitle":"Introduction","href":"/api-reference/introduction"},{"title":"Errors","description":"Every status the Maqetin API answers, what it means and whether to retry.","href":"/api-reference/errors"}]},{"group":"Events","pages":[{"title":"Identify","api":"POST https://in.maqetin.com/v1/identify","href":"/api-reference/identify"},{"title":"Track","description":"Record one event that a person or an anonymous visitor did.","api":"POST https://in.maqetin.com/v1/track","href":"/api-reference/track"},{"title":"Batch","api":"POST https://in.maqetin.com/v1/batch","href":"/api-reference/batch"}]},{"group":"Messages and contacts","pages":[{"title":"Send a message","api":"POST https://api.maqetin.com/v1/public/messages","href":"/api-reference/send-message"},{"title":"Contacts","href":"/api-reference/contacts"}]}]}]},"basePath":"","title":"Identify - Maqetin Docs","deploymentId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","buildId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-5zXlUUV6.js","snippetPresets-D3m2eL-0.js","utils-u8TSWPiZ.js","style-to-object-BY3JEAdk.js","utils-D3TDKJCH.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Om0Y4Ijd.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Cyl7LOol.js","_Uint8Array-BuOv0f5_.js","isObject-FP1Yky1u.js","ApiExamples-BnqLE2Kf.js","usePlaygroundInputsStore-DhQKVH9n.js","shallow-BOCfJNQU.js","isEqual-BrbSa25D.js","CodeSnippets-DUGBlB-S.js","CodeSnippet-CuGpPhIN.js","use-playground-group-access-DYZiRN3l.js","Page-DdEXfHxg.js","api-description-markdown-DDasI_tu.js","DynamicMarkdown-DoPsKgYC.js","SectionHeading-CKObOTcn.js","MethodPill-D_DqPuJw.js","getPastedJson-DWfa7n0M.js","Check2Icon-CEquKboc.js","axios-CsQoIw0U.js"]}