Sign inGet started

Get the current workspace

GET
/v1/workspace
const workspace = await bird.workspace.get();
console.log(workspace.id, workspace.name); // "ws_…" "Production"
Respons200
{
  "id": "ws_01krdgeqcxet5s7t44vh8rt9mg",
  "organization_id": "org_01krdgeqcxet5s7t44vh8rt9mg",
  "name": "Production",
  "notification_emails": {
    "operational": [
      "alerts@example.com"
    ]
  },
  "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.
Payload Respons
id
string
wajib
organization_id
string
wajib
name
string
wajib
notification_emails
object
wajib
Tampilkan atribut turunan
notification_emails.operational
array of string
Addresses for operational notifications about this workspace (sending domain authentication failures, webhook endpoint degradation). When empty, these notifications go to the organization owners. Maximum 10 addresses.
logo_url
nullable string
HTTPS URL to the current workspace logo. null when unset.
created_at
string
wajib
updated_at
string
wajib

Sumber daya terkait

Lanjutkan dengan dokumentasi, panduan, dan contoh untuk topik ini. Sumber daya tersedia dalam bahasa Inggris.

Dapatkan ringkasan implementasi