{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Peerpop","colors":{"primary":"#13B497","light":"#00FFD1","dark":"#13B497"},"favicon":"https://mintcdn.com/peerpop/SH6ZyXbKtIyyvZ9B/favicon.svg?fit=max\u0026auto=format\u0026n=SH6ZyXbKtIyyvZ9B\u0026q=85\u0026s=4c35d5036202990cd8417c58037b8035","logo":{"light":"https://mintcdn.com/peerpop/SH6ZyXbKtIyyvZ9B/logo/light.svg?fit=max\u0026auto=format\u0026n=SH6ZyXbKtIyyvZ9B\u0026q=85\u0026s=712d702ac9613209306afcde8b6a0f9e","dark":"https://mintcdn.com/peerpop/SH6ZyXbKtIyyvZ9B/logo/dark.svg?fit=max\u0026auto=format\u0026n=SH6ZyXbKtIyyvZ9B\u0026q=85\u0026s=2b788cfd9d071435c24de41b0a217f4f"},"navbar":{"links":[{"label":"Support","href":"https://peerpop.io/support"},{"label":"FAQ","href":"/faq"}],"primary":{"type":"button","label":"Go to PeerPop","href":"https://peerpop.io"}},"footer":{"socials":{"x":"https://x.com/peerpop.io_","instagram":"https://www.instagram.com/peerpop.io/","website":"https://peerpop.io","youtube":"https://www.youtube.com/@PeerPop_"}},"fonts":{"heading":{"family":"Inter"},"body":{"family":"Inter"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"peerpop","hasAudioNarration":false,"actualSubdomain":"peerpop","customDomains":["docs.peerpop.io"],"gitSource":{"type":"github","owner":"bpham30","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae92339c5f2fcf24900e76b:success","clientVersion":"0.0.4416","searchFilterCounts":[{"language":"default","tag":"Event Management","count":17},{"language":"default","tag":"Marketing Tools","count":8},{"language":"default","tag":"API \u0026 SDK","count":6},{"language":"default","tag":"Manage Event","count":6},{"language":"default","tag":"Profile \u0026 Account","count":6},{"language":"default","tag":"Finance","count":5},{"language":"default","tag":"Wallet \u0026 Payouts","count":5},{"language":"default","tag":"Getting Started","count":5},{"language":"default","tag":"Event Marketing","count":5},{"language":"default","tag":"Contact Management","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":"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":"api-reference/endpoints","slug":"/api-reference/endpoints","pageMetadata":{"title":"Endpoints","description":"Events API—upcoming and past events, and text list signup","href":"/api-reference/endpoints"},"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: \"Events API—upcoming and past events, and text list signup\"\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`,hr:`hr`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Note,{children:_jsxs(_components.p,{children:[`You will receive the base URL when you get an API key. The examples below use `,_jsx(_components.code,{children:`BASE_ENDPOINT`}),` as a placeholder for that URL.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`post-/v1/events/upcoming`,children:`POST /v1/events/upcoming`}),`\n`,_jsxs(_components.p,{children:[`Returns a user’s `,_jsx(_components.strong,{children:`upcoming`}),` events.`]}),`\n`,_jsx(Heading,{level:`3`,id:`request`,children:`Request`}),`\n`,_jsx(_components.p,{children:`Send a JSON body with the user ID and your API key:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`The user ID.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`key`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Your API key.`})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,children:[_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:` \"_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"userId\"`}),_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:` \"key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"apikey\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(_components.p,{children:`Each event in the response includes:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`eventId`})}),_jsxs(_components.td,{children:[`Document ID (`,_jsx(_components.code,{children:`doc.id`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`url`})}),_jsxs(_components.td,{children:[`Event URL, e.g. `,_jsx(_components.code,{children:`https://peerpop.io/events/{specialId}`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`flyer`})}),_jsx(_components.td,{children:`Flyer image URL.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`title`})}),_jsx(_components.td,{children:`Event title.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`date`})}),_jsx(_components.td,{children:`Event date.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`time`})}),_jsx(_components.td,{children:`Event time.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`address`})}),_jsx(_components.td,{children:`Event address.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`venue`})}),_jsxs(_components.td,{children:[`Venue name, or `,_jsx(_components.code,{children:`false`}),` if not set.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organizer`})}),_jsx(_components.td,{children:`Organizer (self or main co-host).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`live`})}),_jsx(_components.td,{children:`Whether the event is live.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`Event description.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`startingPrice`})}),_jsxs(_components.td,{children:[`Cheapest ticket price as a string, e.g. `,_jsx(_components.code,{children:`10.00`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tags`})}),_jsx(_components.td,{children:`Array of tags assigned to the event.`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`example`,children:`Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -X POST `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BASE_ENDPOINT/v1/events/upcoming\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -d `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{\"_id\": \"userId\", \"key\": \"apikey\"}'`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`post-/v1/events/past`,children:`POST /v1/events/past`}),`\n`,_jsxs(_components.p,{children:[`Returns a user’s `,_jsx(_components.strong,{children:`past`}),` events.`]}),`\n`,_jsx(Heading,{level:`3`,id:`request-2`,children:`Request`}),`\n`,_jsx(_components.p,{children:`Same as upcoming: send a JSON body with the user ID and your API key:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`The user ID.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`key`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Your API key.`})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,children:[_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:` \"_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"userId\"`}),_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:` \"key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"apikey\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`response-2`,children:`Response`}),`\n`,_jsx(_components.p,{children:`Same shape as upcoming events:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`eventId`})}),_jsxs(_components.td,{children:[`Document ID (`,_jsx(_components.code,{children:`doc.id`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`url`})}),_jsxs(_components.td,{children:[`Event URL, e.g. `,_jsx(_components.code,{children:`https://peerpop.io/events/{specialId}`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`flyer`})}),_jsx(_components.td,{children:`Flyer image URL.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`title`})}),_jsx(_components.td,{children:`Event title.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`date`})}),_jsx(_components.td,{children:`Event date.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`time`})}),_jsx(_components.td,{children:`Event time.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`address`})}),_jsx(_components.td,{children:`Event address.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`venue`})}),_jsxs(_components.td,{children:[`Venue name, or `,_jsx(_components.code,{children:`false`}),` if not set.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`organizer`})}),_jsx(_components.td,{children:`Organizer (self or main co-host).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`live`})}),_jsx(_components.td,{children:`Whether the event is live.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`Event description.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`startingPrice`})}),_jsxs(_components.td,{children:[`Cheapest ticket price as a string, e.g. `,_jsx(_components.code,{children:`10.00`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tags`})}),_jsx(_components.td,{children:`Array of tags assigned to the event.`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`example-2`,children:`Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -X POST `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BASE_ENDPOINT/v1/events/past\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -d `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{\"_id\": \"userId\", \"key\": \"apikey\"}'`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`post-/v1/update_text_list`,children:`POST /v1/update_text_list`}),`\n`,_jsxs(_components.p,{children:[`Adds a phone number to your `,_jsx(_components.strong,{children:`Website Text List`}),` contact group.`]}),`\n`,_jsx(Heading,{level:`3`,id:`request-3`,children:`Request`}),`\n`,_jsx(_components.p,{children:`Send a JSON body with your user ID, the subscriber’s phone number, and your API key:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Your user ID.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`phone`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Phone number formatted exactly as 10 digits with no spaces or punctuation, e.g. `,_jsx(_components.code,{children:`6780001234`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`key`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Your API key.`})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,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:`5`,children:[_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:` \"_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"userId\"`}),_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:` \"phone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6780001234\"`}),_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:` \"key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"apikey\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`example-3`,children:`Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -X POST `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BASE_ENDPOINT/v1/update_text_list\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` -d `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{\"_id\": \"userId\", \"phone\": \"6780001234\", \"key\": \"apikey\"}'`})]}),`\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.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Endpoints","description":"Events API—upcoming and past events, and text list signup","href":"/api-reference/endpoints"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"POST /v1/events/upcoming","slug":"post-/v1/events/upcoming","depth":2,"children":[{"title":"Request","slug":"request","depth":3,"children":[]},{"title":"Response","slug":"response","depth":3,"children":[]},{"title":"Example","slug":"example","depth":3,"children":[]}]},{"title":"POST /v1/events/past","slug":"post-/v1/events/past","depth":2,"children":[{"title":"Request","slug":"request-2","depth":3,"children":[]},{"title":"Response","slug":"response-2","depth":3,"children":[]},{"title":"Example","slug":"example-2","depth":3,"children":[]}]},{"title":"POST /v1/update_text_list","slug":"post-/v1/update_text_list","depth":2,"children":[{"title":"Request","slug":"request-3","depth":3,"children":[]},{"title":"Example","slug":"example-3","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"peerpop","siteName":"Peerpop","title":"Endpoints - Peerpop","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-04-21T14:27:17.191Z","originalFileLocation":"api-reference/endpoints.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=\"Events API—upcoming and past events, and text list signup\">\u003cmeta data-mint-head name=\"application-name\" content=\"Peerpop\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/peerpop/vqDCEHhUX-lsPf9B/_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/peerpop/vqDCEHhUX-lsPf9B/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/peerpop/vqDCEHhUX-lsPf9B/_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/peerpop/vqDCEHhUX-lsPf9B/_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/peerpop/vqDCEHhUX-lsPf9B/_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/peerpop/vqDCEHhUX-lsPf9B/_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/peerpop/vqDCEHhUX-lsPf9B/_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/peerpop/vqDCEHhUX-lsPf9B/_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/peerpop/vqDCEHhUX-lsPf9B/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Endpoints - Peerpop\">\u003cmeta data-mint-head property=\"og:description\" content=\"Events API—upcoming and past events, and text list signup\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Peerpop\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.peerpop.io/api-reference/endpoints\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://peerpop.mintlify.site/_mintlify/api/og/v2?division=API+Reference\u0026amp;title=Endpoints\u0026amp;description=Events+API%E2%80%94upcoming+and+past+events%2C+and+text+list+signup\u0026amp;theme=9f9a209db72b754ac8f5d251\u0026amp;signature=8232dc980153582da60e482480b6b0f8cea86c2cf12ec2b5372b5cc3704651ae\">\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=\"Endpoints - Peerpop\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Events API—upcoming and past events, and text list signup\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://peerpop.mintlify.site/_mintlify/api/og/v2?division=API+Reference\u0026amp;title=Endpoints\u0026amp;description=Events+API%E2%80%94upcoming+and+past+events%2C+and+text+list+signup\u0026amp;theme=9f9a209db72b754ac8f5d251\u0026amp;signature=8232dc980153582da60e482480b6b0f8cea86c2cf12ec2b5372b5cc3704651ae\">\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/peerpop/vqDCEHhUX-lsPf9B/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Peerpop\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#13B497\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.peerpop.io/api-reference/endpoints\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoints.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.peerpop.io/#organization\",\"name\":\"Peerpop\",\"url\":\"https://docs.peerpop.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/peerpop/SH6ZyXbKtIyyvZ9B/logo/light.svg?fit=max\u0026auto=format\u0026n=SH6ZyXbKtIyyvZ9B\u0026q=85\u0026s=712d702ac9613209306afcde8b6a0f9e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.peerpop.io#website\",\"name\":\"Peerpop\",\"url\":\"https://docs.peerpop.io\",\"publisher\":{\"@id\":\"https://docs.peerpop.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.peerpop.io/api-reference/endpoints#webpage\",\"url\":\"https://docs.peerpop.io/api-reference/endpoints\",\"name\":\"Endpoints\",\"description\":\"Events API—upcoming and past events, and text list signup\",\"dateModified\":\"2026-04-21T14:27:17.191Z\",\"isPartOf\":{\"@id\":\"https://docs.peerpop.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.peerpop.io/api-reference/endpoints#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.peerpop.io/api-reference/endpoints#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API \u0026 SDK\",\"item\":\"https://docs.peerpop.io/api-reference/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API Reference\",\"item\":\"https://docs.peerpop.io/api-reference/introduction\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Endpoints\",\"item\":\"https://docs.peerpop.io/api-reference/endpoints\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.peerpop.io/api-reference/endpoints#article\",\"headline\":\"Endpoints\",\"name\":\"Endpoints\",\"description\":\"Events API—upcoming and past events, and text list signup\",\"url\":\"https://docs.peerpop.io/api-reference/endpoints\",\"mainEntityOfPage\":{\"@id\":\"https://docs.peerpop.io/api-reference/endpoints#webpage\"},\"dateModified\":\"2026-04-21T14:27:17.191Z\",\"publisher\":{\"@id\":\"https://docs.peerpop.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.peerpop.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Peerpop\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Peerpop\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoints.md","siteName":"Peerpop","nav":{"global":null,"groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Quick Start","href":"/getting-started/quick-start"},{"group":"Throw an Event","pages":[{"title":"Create an Event","href":"/getting-started/create-event"},{"title":"Import an Event","href":"/getting-started/import-event"}]},{"title":"Discover Events","href":"/getting-started/find-events"}]},{"group":"Event Management","pages":[{"group":"Manage Event","pages":[{"title":"Event Overview","href":"/manage-events/overview"},{"title":"Edit Event Details","href":"/manage-events/edit-event-info"},{"title":"Edit Visuals","href":"/manage-events/edit-visuals"},{"title":"Ticket Types","href":"/manage-events/ticket-types"},{"title":"Orders \u0026 Refunds","href":"/manage-events/orders-\u0026-refunds"},{"title":"Event Attendees","href":"/manage-events/attendees"}]},{"group":"Event Marketing","pages":[{"title":"Mass Text Messages","href":"/manage-events/mass-texts"},{"title":"Mass Emails","href":"/manage-events/mass-emails"},{"title":"Invite Promoters","href":"/manage-events/invite-promoters"},{"title":"Affiliate Rewards","href":"/manage-events/affiliate-rewards"},{"title":"Promo Codes","href":"/manage-events/promo-codes"}]},{"group":"Manage Team","pages":[{"title":"Event Promoters","href":"/manage-team/promoters"},{"title":"Event Collaborators","href":"/manage-team/collaborators"},{"title":"Ticket Scanners","href":"/manage-team/scanners"},{"title":"Vendors \u0026 Performers","href":"/manage-team/vendors"}]},{"group":"Beta Features","pages":[{"title":"Product Events","href":"/beta-features/products"},{"title":"Event Grouping","href":"/beta-features/event-groups"}]}]},{"group":"Marketing Tools","pages":[{"title":"Mass Text \u0026 Email Campaigns","href":"/marketing/campaigns"},{"title":"Custom Email Domain","href":"/marketing/custom-email-domain"},{"title":"Custom Phone Number","href":"/marketing/custom-phone-number"},{"group":"Contact Management","pages":[{"title":"Upload Contacts","href":"/marketing/upload-contacts"},{"title":"Contact Groups","href":"/marketing/contact-groups"},{"title":"All Attendees","href":"/marketing/all-attendees"},{"title":"All Promoters","href":"/marketing/all-promoters"},{"title":"Text to Opt-In","href":"/marketing/text-to-opt-in"}]}]},{"group":"Finance","pages":[{"group":"Wallet \u0026 Payouts","pages":[{"title":"Set Up Payouts","href":"/finance/setup-payouts"},{"title":"View Balance","href":"/finance/view-balance"},{"title":"Cash Out","href":"/finance/cash-out"},{"title":"Payout Methods","href":"/finance/payout-methods"},{"title":"Disputes","href":"/finance/disputes"}]}]},{"group":"Profile \u0026 Account","pages":[{"group":"Tickets \u0026 Rewards","pages":[{"title":"My Tickets","href":"/profile/my-tickets"},{"title":"My Rewards","href":"/profile/my-rewards"}]},{"group":"Personal Settings","pages":[{"title":"Edit Profile","href":"/profile/edit-profile"},{"title":"Account Settings","href":"/profile/account-settings"}]},{"group":"Billing","pages":[{"title":"Subscription Plans","href":"/profile/subscriptions"},{"title":"Payment Methods","href":"/profile/payment-methods"}]}]},{"group":"API \u0026 SDK","pages":[{"group":"API Reference","pages":[{"title":"Introduction","description":"Use the PeerPop API with your API key","href":"/api-reference/introduction"},{"title":"Endpoints","href":"/api-reference/endpoints"}]},{"group":"SDK Reference","pages":[{"title":"Introduction","description":"Official Node.js SDK for PeerPop—events, webhooks, and React components","href":"/sdk-reference/introduction"},{"title":"Events","href":"/sdk-reference/events"},{"title":"Event Component","href":"/sdk-reference/event-component"}]},{"group":"Webhooks","pages":[{"title":"Webhooks","href":"/sdk-reference/webhooks"}]}]}]},"basePath":"","title":"Endpoints - Peerpop","deploymentId":"dpl_Bzhd2vEuuXmvNaTmqBBYbeBj3epG","buildId":"dpl_Bzhd2vEuuXmvNaTmqBBYbeBj3epG","dynamics":[],"chunks":[]}