List organizations
orgs().list(OrgListParamsparams = OrgListParams.none(), RequestOptionsrequestOptions = RequestOptions.none()) : OrgListResponse
GET/v0/orgs
List organizations accessible to the current authentication method.
List organizations
package com.configure_me_stainless_v0.api.example
import com.configure_me_stainless_v0.api.client.StainlessClient
import com.configure_me_stainless_v0.api.client.okhttp.StainlessOkHttpClient
import com.configure_me_stainless_v0.api.models.orgs.OrgListParams
import com.configure_me_stainless_v0.api.models.orgs.OrgListResponse
fun main() {
val client: StainlessClient = StainlessOkHttpClient.fromEnv()
val orgs: OrgListResponse = client.orgs().list()
}{
"data": [
{
"display_name": "display_name",
"enable_ai_commit_messages": true,
"object": "org",
"slug": "slug"
}
],
"has_more": true,
"next_cursor": "next_cursor"
}Returns Examples
{
"data": [
{
"display_name": "display_name",
"enable_ai_commit_messages": true,
"object": "org",
"slug": "slug"
}
],
"has_more": true,
"next_cursor": "next_cursor"
}