List my teams
const url = 'https://api.deploybase.eu/api/v1/api/v1/me/teams';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
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.deploybase.eu/api/v1/api/v1/me/teams \ --header 'Authorization: <Authorization>'Returns every team the signed-in user is a member of, most recently active first, each with the caller’s role in it and flags for which one is their home team and which one the current request is acting on. Teams that are being purged or have been purged are omitted; a suspended team is included with status “suspended” so the switcher can explain why it is unusable. Requires a signed-in user: API keys authenticate a team, not a person.
Authorizations
Section titled “ Authorizations ”Responses
Section titled “ Responses ”OK
object
object
object
DisplayLabel is what to show a human. Never empty, even for teams whose name is still a raw Zitadel org UUID — models.Team.DisplayLabel owns that fallback.
IsActive marks the team the current request is acting on.
IsHome marks the team the caller’s own Zitadel org maps to. Exactly one entry has it.
Status is the team’s lifecycle state, with “suspended” taking precedence over the
deletion state machine: a suspended team is usually active, and “active” is
exactly the wrong thing to tell someone whose team is closed.
Example generated
{ "data": [ { "display_label": "example", "id": "example", "is_active": true, "is_home": true, "last_active_at": "example", "name": "example", "role": "example", "slug": "example", "status": "example" } ], "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Unauthorized
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Forbidden
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Internal Server Error
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Service Unavailable
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}