Retrieve Current Organization
https://mapi.storyblok.com/v1/orgs/meReturns the organization object for the currently authenticated user, including users, spaces, invitations, and pricing plan details.
Response properties
Section titled “Response properties”-
orgobjectThe organization object.
Show child properties
-
namestringName of the organization.
-
usersobject[]Array of user objects belonging to the organization.
Show child properties
-
idnumberNumeric ID of the user.
-
useridstringUser identifier (typically the email address).
-
emailstringEmail address of the user.
-
real_emailstringPrimary email address of the user.
-
usernamestringUsername of the user.
-
firstnamestringFirst name of the user.
-
lastnamestringLast name of the user.
-
friendly_namestringDisplay name of the user.
-
avatarstringURL of the user’s avatar image.
-
org_rolestringRole of the user within the organization (for example,
"admin"or"member"). -
sign_in_countnumberTotal number of sign-ins for the user.
-
created_atstringCreation date of the user (Format:
yyyy-MM-dd'T'HH:mm:ss.SSSZ). -
last_sign_in_atstringTimestamp of the user’s last sign-in.
-
last_sign_in_ipstringIP address of the user’s last sign-in.
-
disabledbooleanIndicates whether the user account is disabled.
-
partner_rolestringPartner role of the user, if applicable.
-
on_spacesnumber[]Array of space IDs the user has access to.
-
roles_on_spacesobjectObject mapping space IDs to arrays of role names.
-
-
spacesobject[]Array of space objects belonging to the organization.
-
settingsobjectOrganization settings.
-
planstringName of the organization’s pricing plan (for example,
"starter"). -
plan_levelnumberNumeric level of the organization’s pricing plan.
-
user_countnumberTotal number of users in the organization.
-
max_spacesnumberMaximum number of spaces allowed for the organization.
-
max_collaboratorsnumberMaximum number of collaborators allowed for the organization.
-
billing_addressobjectBilling information for the organization.
-
invitationsobject[]Array of pending invitation objects.
Show child properties
-
idnumberNumeric ID of the invitation.
-
emailstringEmail address of the invitee.
-
org_idnumberNumeric ID of the organization.
-
user_idnumberNumeric ID of the inviting user.
-
expires_atstringExpiration date of the invitation (Format:
yyyy-MM-dd'T'HH:mm:ss.SSSZ). -
org_rolestringRole assigned to the invitee (for example,
"admin"or"member"). -
inviter_idnumberNumeric ID of the user who sent the invitation.
-
registeredbooleanIndicates whether the invitee has registered.
-
-
external_usersobject[]Array of external user objects.
-
extended_external_usersobject[]Array of extended external user objects.
-
track_statisticsbooleanIndicates whether statistics tracking is enabled.
-
sso_firstnamestringSSO first name mapping, if configured.
-
sso_lastnamestringSSO last name mapping, if configured.
-
sso_alt_emailstringSSO alternative email mapping, if configured.
-
strong_authstringStrong authentication configuration, if enabled.
-
restricted_regionsstring[]Array of restricted region codes for the organization.
-
Examples
Section titled “Examples”curl "https://mapi.storyblok.com/v1/orgs/me" \ -H "Authorization: YOUR_OAUTH_TOKEN"// storyblok-js-client@>=7, node@>=18import Storyblok from "storyblok-js-client";
const storyblok = new Storyblok({ oauthToken: "YOUR_PERSONAL_ACCESS_TOKEN",});
try { const response = await storyblok.get('orgs/me', {}) console.log({ response })} catch (error) { console.log(error)}$client = new \Storyblok\ManagementClient('YOUR_OAUTH_TOKEN');
$client->get('orgs/me')->getBody();HttpResponse<String> response = Unirest.get("https://mapi.storyblok.com/v1/orgs/me") .header("Authorization", "YOUR_OAUTH_TOKEN") .asString();var client = new RestClient("https://mapi.storyblok.com/v1/orgs/me");var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "YOUR_OAUTH_TOKEN");IRestResponse response = client.Execute(request);import requests
url = "https://mapi.storyblok.com/v1/orgs/me"
querystring = {}
payload = ""headers = { 'Authorization': "YOUR_OAUTH_TOKEN"}
response = requests.request("GET", url, data=payload, headers=headers, params=querystring)
print(response.text)require 'storyblok'client = Storyblok::Client.new(oauth_token: 'YOUR_OAUTH_TOKEN')
client.get('orgs/me')let storyblok = URLSession(storyblok: .mapi(accessToken: .oauth("YOUR_OAUTH_TOKEN")))let request = URLRequest(storyblok: storyblok, path: "orgs/me")let (data, _) = try await storyblok.data(for: request)print(try JSONSerialization.jsonObject(with: data))val client = HttpClient { install(Storyblok(MAPI)) { accessToken = OAuth("YOUR_OAUTH_TOKEN") }}
val response = client.get("orgs/me")
println(response.body<JsonElement>())Was this page helpful?
This site uses reCAPTCHA and Google's Privacy Policy (opens in a new window) . Terms of Service (opens in a new window) apply.
Get in touch with the Storyblok community