Vai al contenuto principale
GET
/
v2
/
enterprise
/
members
/
{user_id}
/
organizations
Enterprise User Organizations Endpoint
curl --request GET \
  --url https://api.devin.ai/v2/enterprise/members/{user_id}/organizations \
  --header 'Authorization: Bearer <token>'
{
  "has_more": true,
  "items": [
    {
      "email": "<string>",
      "name": "<string>",
      "org_id": "<string>",
      "org_name": "<string>",
      "org_role": "<string>",
      "user_id": "<string>",
      "enterprise_role": "<string>"
    }
  ],
  "limit": 123,
  "skip": 123,
  "total": 123,
  "next_cursor": 123
}
Richiede la chiave API personale di un amministratore Enterprise. Restituisce un elenco paginato delle organizzazioni a cui un utente specifico ha accesso all’interno della tua Enterprise.

Autorizzazioni

Authorization
string
header
obbligatorio

Personal API Key (apk_user_*) for Enterprise Admins only

Parametri del percorso

user_id
string
obbligatorio

Parametri della query

skip
integer
predefinito:0
Intervallo richiesto: x >= 0
limit
integer
predefinito:100
Intervallo richiesto: 1 <= x <= 200

Risposta

Successful Response

has_more
boolean
obbligatorio
items
UserOrgResponse · object[]
obbligatorio
limit
integer
obbligatorio
skip
integer
obbligatorio
total
integer
obbligatorio
next_cursor
integer | null