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