Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Notion API Changelog Entry: October 4, 2021 #257

Open
github-actions bot opened this issue Feb 12, 2025 · 1 comment
Open

New Notion API Changelog Entry: October 4, 2021 #257

github-actions bot opened this issue Feb 12, 2025 · 1 comment
Labels
changelog Notion API changelog entry investigate Not sure what label to add yet :)

Comments

@github-actions
Copy link
Contributor

October 4, 2021

Retrieve your token's bot user with GET /v1/users/me

If you're using Notion API version 2021-08-16, you can now retrieve information about the bot associated with your API token, including its ID and the user who authorized it.

Example request

cURL

curl --request GET \
  --url http://localhost:3000/v1/users/me \
  --header 'Authorization: Bearer $NOTION_API_KEY' \
  --header 'Notion-Version: 2021-08-16'

Example response

JSON

{
  "object": "user",
  "id": "16d84278-ab0e-484c-9bdd-b35da3bd8905",
  "name": "pied piper",
  "avatar_url": null,
  "type": "bot",
  "bot": {
    "owner": {
      "type": "user",
      "user": {
        "object": "user",
        "id": "5389a034-eb5c-47b5-8a9e-f79c99ef166c",
        "name": "christine makenotion",
        "avatar_url": null,
        "type": "person",
        "person": {
          "email": "[email protected]"
        }
      }
    }
  }
}


Original blog post: View here

@github-actions github-actions bot added changelog Notion API changelog entry investigate Not sure what label to add yet :) labels Feb 12, 2025
@ramnes
Copy link
Owner

ramnes commented Feb 17, 2025

Not sure if we have to do something. notion-sdk-js didn't update (yet) to provide an helper for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog Notion API changelog entry investigate Not sure what label to add yet :)
Projects
None yet
Development

No branches or pull requests

1 participant