Retrieve
Retrieve
client.me.profile.retrieve(RequestOptionsoptions?): idstringbiounionemailstringlinksLinksprofileImageUrluniontierunionurlstringusernameunionProfileRetrieveResponse
get/v1/me
Get profile information for the current user
Returns
ProfileRetrieveResponse
Your user information, with tier and email included
import ValTown from '@valtown/sdk';
const client = new ValTown();
const profile = await client.me.profile.retrieve();
console.log(profile.id);
200 Example
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"bio": "bio",
"email": "email",
"links": {
"self": "https://example.com"
},
"profileImageUrl": "https://example.com",
"tier": "free",
"url": "https://example.com",
"username": "username"
}