Get the workspace
GET
/workspaces/{workspace}Returns the workspace your token belongs to: its name, trust center address, active layers, language and time zone, and how many certificates it holds.
Authentication
Send an API token as a bearer token. This endpoint needs a read token, made by any member of the workspace. Create one in My account → API tokens; see scopes and roles.
Authorization: Bearer 42|bynh_pat_•••••••HeaderPath parameters
workspacestringRequiredYour workspace slug, e.g. dokan.
Response
200 OKA WorkspaceResource wrapped in data.
idintegerWorkspace id.namestringCompany name.slugstringUsed in every workspace path.domainstring|nullCustom trust center domain, if set.addressstringdomain, or {slug}.bynh.io.accent_colorstring|nullTrust center accent colour.modulesenumLayers switched on. One oftrust,certs,policies,status,disclosure,subprocessors,questionnaires,domain.trial_ends_atstring|nullISO 8601.editing_paused_atstring|nullSet when editing is paused for billing; writes return 403 while set.onboardedbooleanOnboarding finished.languagesarray<string>Trust center languages, default ["en"].timezonestringDefault Asia/Riyadh.deletion_scheduled_atstring|nullWhen deletion was scheduled.purge_afterstring|nulldeletion_scheduled_at + 30 days.certificates_countintegerNumber of certificates.
Rate limits
This endpoint counts toward your general limit of 120 requests a minute. When you go over, wait for the number of seconds in Retry-After.
Errors
401The token is missing, wrong, revoked or expired.
404The token belongs to another workspace, or its owner is no longer a member.
Every error is JSON with a message. See Errors.