Skip to content

List your organization memberships

GET
/user/org-memberships
curl --request GET \
--url https://api.modeldesk.io/user/org-memberships \
--header 'Authorization: Bearer <token>'

Get organization memberships

OK

Media typeapplication/json
object
items
required
Array<object>
object
organization
required
object
id
required
string format: uuid
slug
required

The organization’s address under the public catalog. See OrganizationCreation for the rule it follows.

string
name
required
string
createdAt
required
string format: date-time
features

Feature flags enabled for the organization. Absent when none are.

Array<string>
defaultAccessMode

The access mode a model created in this organization gets by default.

string
Allowed values: SHARED INDIVIDUAL
plan
string
Allowed values: TRIAL BASIC PRO
subscriptionStatus
string
Allowed values: ACTIVE EXPIRED
catalogHosting

Where the organization asks its catalog to be served. SHARED is the shared catalog host. CUSTOM is the organization’s own domains, served once one of them is ACTIVE and from the shared host until then. An organization that never chose reads SHARED.

string
Allowed values: SHARED CUSTOM CUSTOM
agentPlatforms

The AI platforms the organization’s members may connect through. Absent while it is none, the default.

object
mode
required

Which AI platforms members may connect through. none, the default, allows none; all allows every platform; listed allows only the hosts the setting names.

string
Allowed values: none all listed
hosts

The platforms a listed setting allows, 1 to 50, each the host name of the redirect URI that receives the sign-in result, or loopback for apps on the person’s own computer. Known platforms: claude.ai (Claude), chatgpt.com (ChatGPT), teams.microsoft.com (Microsoft 365 Copilot), global.consent.azure-apim.net (Copilot Studio). A host is a name of letters, digits, dots and hyphens, starting with a letter or digit, at most 253 characters, with no empty label; localhost and any name under it, an IP address (decimal or 0x hex), a scheme, a port, a path and a trailing dot are refused, and a non-ASCII host is entered in its punycode (xn--) form. Required and non-empty for listed, refused for any other mode.

Array<string>
>= 1 items <= 50 items
maxLevel

The highest level an agent acting for a member may reach on the organization’s content, whatever the member granted: read reads only; propose also stages changes into the person’s draft and works on branches named agent/…; act also commits to any branch and merges; publish also reaches people outside the organization, such as releasing a version. Every answer carries it, act for an organization that never chose. A write may leave it out, which keeps the stored one. An agent’s request above it is refused as AgentLevelNotAllowedProblem.

string
Allowed values: read propose act publish
role
required
string
Allowed values: ADMIN MEMBER
createdAt
required
string format: date-time
seatAssignments

Ids of the member’s seat assignments. Absent when the member holds no seat, so a client must treat absence as an empty list.

Array<string>

Example

{
"items": [
{
"organization": {
"defaultAccessMode": "SHARED",
"plan": "TRIAL",
"subscriptionStatus": "ACTIVE",
"catalogHosting": "SHARED",
"agentPlatforms": {
"mode": "none",
"hosts": [
"claude.ai"
],
"maxLevel": "read"
}
},
"role": "ADMIN"
}
]
}

Error

Media typeapplication/problem+json

An RFC 9457 problem document, always sent as application/problem+json.

object
type

Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.

string format: uri
title
required
string
status
required
integer
detail
required
string
instance

The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.

string
violations

Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.

Array<object>
object
property
required
string
message
required
string

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"violations": [
{
"property": "example",
"message": "example"
}
]
}