Sign inGet Started

Get the current workspace

GET
/v1/workspace
const workspace = await bird.workspace.get();
console.log(workspace.id, workspace.name); // "ws_…" "Production"
Antwort200
{
  "id": "ws_01krdgeqcxet5s7t44vh8rt9mg",
  "organization_id": "org_01krdgeqcxet5s7t44vh8rt9mg",
  "name": "Production",
  "notification_emails": {
    "operational": [
      "alerts@example.com"
    ]
  },
  "suspended_at": null,
  "created_at": "2026-05-20T09:14:52Z",
  "updated_at": "2026-05-25T16:42:01Z"
}

Returns the workspace the current credentials are scoped to: its ID, name, the ID of the organization that owns it, and its notification and logo settings. The organization's own name and members are not included. Requires at least read access to the workspace.

Antwort-Payload

id
string
erforderlich
organization_id
string
erforderlich
name
string
erforderlich
notification_emails
object
erforderlich
Untergeordnete Attribute anzeigen
logo_url
nullable string

HTTPS URL to the current workspace logo. null when unset.

suspended_at
nullable string

When Bird suspended the workspace. null while the workspace is active. A suspended workspace cannot send messages, place calls other than emergency calls, or buy numbers or eSIMs. Its members can still sign in, read it and change its configuration.

created_at
string
erforderlich
updated_at
string
erforderlich

Weiter mit der Dokumentation, Anleitungen und Beispielen zu diesem Thema.