Get the selected account
GET
/accountAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
readResponses
200Success
itemAccountrequiredShow propertiesHide properties
idobjectrequirednameobjectrequiredslugobjectrequiredmetadataMetadatarequired401Missing, invalid, expired, or revoked OAuth token
errorstring429Rate limit exceeded
errorstringRequest
curl -X GET "http://localhost:3000/api/v2/account" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("http://localhost:3000/api/v2/account", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.get(
"http://localhost:3000/api/v2/account",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"item": {
"id": {},
"name": {},
"slug": {}
},
"metadata": {}
}{
"error": "string"
}{
"error": "string"
}