Skip to main content

Usernames and workspace slugs

OpenDocs has two human-readable identifiers that are easy to mix up.

UsernameWorkspace slug
IdentifiesA personA workspace
Appears inYour profile and version history (createdBy); not in URLsEvery document URL: opendocs.cc/<workspace-slug>/<post-slug>
ScopeUnique across OpenDocsUnique across OpenDocs
Rules3 to 32 characters, lowercase a-z 0-9 _ -3 to 32 characters, lowercase a-z 0-9 _ -
ChosenAt sign-up or onboarding; rename with POST /profile/usernameAt sign-up or when creating a workspace; change with POST /workspace/slug
CheckGET /api/v1/usernames/checkGET /api/v1/workspace/check-slug

Both are lowercased before checking, and both share one reserved list (route and brand names such as docs, pricing, integrations, dashboard, claim, openapi).

When an agent signs someone up with an emailed code, the workspace slug is the same as the username when it's free.

tip

To build the URL of a document you're about to publish, use the workspace slug (onboarding.workspace.slug from GET /api/v1/me, or slug from GET /api/v1/workspaces), not the username. Better still, use the url the publish response returns.

GET /api/v1/usernames/check​

No auth.

GET /api/v1/usernames/check?username=dana
QueryRequiredDescription
usernameyesThe username to check

Available:

{ "available": true, "normalized": "dana", "reason": null }

Taken:

{ "available": false, "normalized": "dana", "reason": null }

Invalid or reserved:

{ "available": false, "normalized": "docs", "reason": "reserved" }

reason is invalid (length or characters), reserved, or null (available, or valid but taken).

GET /api/v1/workspace/check-slug​

Session only (it backs the onboarding form).

GET /api/v1/workspace/check-slug?slug=halvard
QueryRequiredDescription
slugyesThe workspace slug to check

Available:

{ "available": true }

Unavailable:

{ "available": false, "reason": "That workspace ID is already taken." }

reason is a sentence you can show as is: missing, invalid (with the rule it broke), reserved, or taken.