List user organizations

Returns a list of all organizations for the user.

GET
https://identity.krystal.io/api/v1/organizations

If successful, this endpoint will return a 200 OK status.

Scopes

One of the following scopes are required to use this endpoint.

Arguments

The following arguments are supported for this endpoint.

Name Type Default Value

exclude_managed

Boolean false

Returned Object

When the request is successful, you can expect an object matching the specification below to be returned.

{
    organizations: [ Organization {
        id: String
        name: String
        identifier: String
        time_zone: String?
        updated_at: Unix Timestamp
        managed: Boolean
        parent_id: String?
        parent_name: String?
        users: [ OrganizationUser {
            user_id: String
            organization_id: String
            organization_name: String
            organization_identifier: String
            organization_managed: Boolean
            organization_parent_id: String?
            owner: Boolean
            organization_updated_at: Unix Timestamp
            roles: [ String? ]
            organization_deletion_initiated: Boolean
        } ]
    } ]
}