Get organizations
Last updated
Last updated
List all organizations for a user. This function is only available through a JWT token.
User ID
OK
Whether the operation succeeded
Optional error description (set if 'success' was false)
Array with organizations
const response = await fetch('https://studio.edgeimpulse.com/v1/api/users/{userId}/organizations', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"success": false,
"error": "text",
"organizations": [
{
"id": 0,
"name": "text",
"logo": "https://usercdn.edgeimpulse.com/logos/1.jpg",
"headerImg": "https://usercdn.edgeimpulse.com/leaders/1.jpg",
"showHeaderImgMask": false,
"users": [
{
"id": 1,
"username": "janjongboom",
"name": "Jan Jongboom",
"email": "quijote@edgeimpulse.com",
"photo": "https://usercdn.edgeimpulse.com/photos/1.jpg",
"created": "2019-08-31T17:32:28Z",
"lastSeen": "2019-08-31T17:32:28Z",
"staffInfo": {
"isStaff": false,
"hasSudoRights": false,
"companyName": "text"
},
"pending": false,
"lastTosAcceptanceDate": "2019-08-31T17:32:28Z",
"jobTitle": "Software Engineer",
"permissions": [
"admin:infra:disallowedEmailDomains:write"
],
"companyName": "Edge Impulse Inc.",
"activated": false,
"mfaConfigured": false,
"stripeCustomerId": "text",
"hasPendingPayments": false,
"tier": "free",
"added": "2019-08-31T17:32:28Z",
"role": "admin",
"projectCount": 0,
"datasets": [
"text"
],
"lastAccessToOrganization": "2024-12-21T11:33:21.062Z",
"lastOrganizationProjectAccessed": 0
}
],
"isDeveloperProfile": false,
"whitelabelId": 0,
"projects": [
{
"id": 1,
"name": "Water hammer detection",
"description": "text",
"created": "2019-07-21T17:32:28Z",
"owner": "text",
"lastAccessed": "2019-07-21T17:32:28Z",
"lastModified": "2019-07-21T17:32:28Z",
"lastModificationDetails": "Data sample added",
"logo": "text",
"ownerUserId": 0,
"ownerOrganizationId": 0,
"ownerAvatar": "text",
"ownerIsDeveloperProfile": false,
"developerProfileUserId": 0,
"collaborators": [
{
"id": 1,
"username": "janjongboom",
"name": "Jan Jongboom",
"email": "quijote@edgeimpulse.com",
"photo": "https://usercdn.edgeimpulse.com/photos/1.jpg",
"created": "2019-08-31T17:32:28Z",
"lastSeen": "2019-08-31T17:32:28Z",
"staffInfo": {
"isStaff": false,
"hasSudoRights": false,
"companyName": "text"
},
"pending": false,
"lastTosAcceptanceDate": "2019-08-31T17:32:28Z",
"jobTitle": "Software Engineer",
"permissions": [
"admin:infra:disallowedEmailDomains:write"
],
"companyName": "Edge Impulse Inc.",
"activated": false,
"mfaConfigured": false,
"stripeCustomerId": "text",
"hasPendingPayments": false,
"tier": "free",
"isOwner": false
}
],
"labelingMethod": "single_label",
"dataExplorerScreenshot": "text",
"isEnterpriseProject": false,
"whitelabelId": 0,
"tags": [
"FOMO",
"beers"
],
"category": "Image classification",
"license": "text",
"tier": "free",
"hasPublicVersion": false,
"isPublic": false,
"allowsLivePublicAccess": false,
"indPauseProcessingSamples": false,
"publicProjectListed": false
}
],
"trialId": 0,
"trialExpiredDate": "2024-12-21T11:33:21.062Z",
"trialUpgradedDate": "2024-12-21T11:33:21.062Z",
"created": "2024-12-21T11:33:21.062Z",
"contractStartDate": "2024-12-21T11:33:21.062Z",
"deletedDate": "2024-12-21T11:33:21.062Z"
}
]
}