Retrieve
client.me.profile.retrieve(RequestOptionsoptions?): ProfileRetrieveResponse { email, tier }
/v1/me
Get profile information for the current user
Returns
Retrieve
import ValTown from "npm:@valtown/sdk";
const client = new ValTown();
const profile = await client.me.profile.retrieve();
console.log(profile);
{
"id": "00000000-0000-0000-0000-000000000000",
"bio": "Hello world",
"links": {
"self": "https://example.com"
},
"profileImageUrl": null,
"type": "user",
"url": "https://val.town/u/tmcw",
"username": "tmcw",
"email": "email",
"tier": "free"
}
Returns Examples
{
"id": "00000000-0000-0000-0000-000000000000",
"bio": "Hello world",
"links": {
"self": "https://example.com"
},
"profileImageUrl": null,
"type": "user",
"url": "https://val.town/u/tmcw",
"username": "tmcw",
"email": "email",
"tier": "free"
}