Skip to content

Expose whoami#20

Open
ivpusic wants to merge 1 commit intomainfrom
expose_whoami
Open

Expose whoami#20
ivpusic wants to merge 1 commit intomainfrom
expose_whoami

Conversation

@ivpusic
Copy link
Member

@ivpusic ivpusic commented Mar 19, 2026

Exposing WhoAmI function via Golang sdk

@cursor
Copy link

cursor bot commented Mar 19, 2026

PR Summary

Low Risk
Low risk additive change that introduces a new WhoAmI API call and response model without altering existing request/response flows.

Overview
Adds a new WhoAmI() method to the public DuneClient interface and implements it on duneClient, calling the /api/whoami endpoint to return the identity tied to the current API key.

Introduces a models.WhoAmIResponse struct and wires in a new whoamiURLTemplate constant to support the request.

Written by Cursor Bugbot for commit 01557f6. Configure here.

Copy link
Member

@TheEdgeOfRage TheEdgeOfRage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We generally don't want to expose user/team IDs. What would be the usecase here? We have a way to convert IDs to handles using core. You can make a call to that API to return the handle instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants