Retrieves your own API's profile — its name, photo and id.
💡 Useful right after connecting, to confirm which bot the token belongs to.
method is "getMyProfiles".
| Field | Type | Required | Description |
|---|---|---|---|
reference |
String | Optional | Your id for this request. Echoed back in the response. |
No other fields — the API is identified by the authenticated session.
None. An API can always read its own profile.
| Field | Type | Returned | Description |
|---|---|---|---|
method |
String | Yes | "myProfile" |
user |
User | Yes | Your API's own user record. |
reference |
String | Optional | Echoed from the request. |
| SDK | Call | Callback |
|---|---|---|
| Java | api.getMyProfiles(reference); |
onMyProfile(User user) |
| JavaScript | api.getMyProfiles(reference); |
onMyProfile(user) |
| Python | napi.get_my_profiles(reference=reference) |
on_my_profile(self, user) |
{
"method": "getMyProfiles",
"reference": "123456789"
}
api.getMyProfiles("123456789");
api.getMyProfiles("123456789");
napi.get_my_profiles(reference="123456789")