List your organization memberships
const url = 'https://api.modeldesk.io/user/org-memberships';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.modeldesk.io/user/org-memberships \ --header 'Authorization: Bearer <token>'Get organization memberships
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
object
object
object
The organization’s address under the public catalog. See OrganizationCreation for the rule it follows.
Feature flags enabled for the organization. Absent when none are.
The access mode a model created in this organization gets by default.
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.
The AI platforms the organization’s members may connect through. Absent while it is none, the default.
object
Which AI platforms members may connect through. none, the default, allows none; all allows every platform; listed allows only the hosts the setting names.
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.
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.
Ids of the member’s seat assignments. Absent when the member holds no seat, so a client must treat absence as an empty list.
Example
{ "items": [ { "organization": { "defaultAccessMode": "SHARED", "plan": "TRIAL", "subscriptionStatus": "ACTIVE", "catalogHosting": "SHARED", "agentPlatforms": { "mode": "none", "hosts": [ "claude.ai" ], "maxLevel": "read" } }, "role": "ADMIN" } ]}default
Section titled “default”Error
An RFC 9457 problem document, always sent as application/problem+json.
object
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.
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.
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.
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "violations": [ { "property": "example", "message": "example" } ]}