Get the authenticated owner's profile.
GET
/v1/account/profile
const url = 'https://api.share2.us/v1/account/profile';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.share2.us/v1/account/profile \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The owner’s profile.
Media typeapplication/json
object
profile
The account owner’s editable profile.
object
display_name
required
string
username
required
Public handle (a-z 0-9 _ -, 3-30). Empty if unclaimed.
string
has_avatar
required
boolean
visibility
required
string
username_change_available_at
Present when the username is within its 30-day change cooldown.
string format: date-time
Example
{ "profile": { "visibility": "public" }}default
Section titled “default”Standard error envelope.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
request_id
required
string
Example
{ "error": { "code": "quota_exceeded" }}