Skip to content

fix(docs): add Token prefix to Events API code examples#3927

Merged
whysosaket merged 2 commits intomem0ai:mainfrom
agumpandey:fix/events-api-code-examples-token-prefix
Mar 28, 2026
Merged

fix(docs): add Token prefix to Events API code examples#3927
whysosaket merged 2 commits intomem0ai:mainfrom
agumpandey:fix/events-api-code-examples-token-prefix

Conversation

@agumpandey
Copy link
Copy Markdown
Member

  • Add x-code-samples to GET /v1/events/ and GET /v1/event/{event_id}/ endpoints
  • All code examples now include 'Token' prefix in Authorization header
  • Fixes authentication errors when users copy code examples from docs
  • Code examples are generated from OpenAPI spec (docs/openapi.json)
  • Clean up get-events.mdx to remove manual code examples (now auto-generated)

Fixes issue where documentation showed code examples without Token prefix, causing 'Invalid API key' errors when users copied and ran the examples.

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (does not change functionality, e.g. code style improvements, linting)
  • Documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Please delete options that are not relevant.

  • Unit Test
  • Test Script (please provide)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

Maintainer Checklist

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Made sure Checks passed

- Add x-code-samples to GET /v1/events/ and GET /v1/event/{event_id}/ endpoints
- All code examples now include 'Token' prefix in Authorization header
- Fixes authentication errors when users copy code examples from docs
- Code examples are generated from OpenAPI spec (docs/openapi.json)
- Clean up get-events.mdx to remove manual code examples (now auto-generated)

Fixes issue where documentation showed code examples without Token prefix,
causing 'Invalid API key' errors when users copied and ran the examples.
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jan 21, 2026

CLA assistant check
All committers have signed the CLA.

@agumpandey agumpandey requested a review from deshraj January 21, 2026 08:00
- Add Tip component after Common fields section
- Link jumps to #body-messages anchor for detailed parameters
- Improves UX by making detailed parameters easily accessible
- Addresses feedback about parameters being too far down the page
@kartik-mem0 kartik-mem0 added the stale No activity, will close label Mar 26, 2026
@kartik-mem0
Copy link
Copy Markdown
Contributor

Thanks for the Events API docs fix. The CLA hasn't been signed and this has gone stale. Closing it — a quick resubmit with a signed CLA would land easily.

@agumpandey agumpandey reopened this Mar 26, 2026
@agumpandey
Copy link
Copy Markdown
Member Author

hey, signed the CLA

@whysosaket whysosaket merged commit ece6548 into mem0ai:main Mar 28, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale No activity, will close

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants