P6M Dashboard

P6M knowledge base

P6M Knowledge Base

Search P6M docs with citations and Memory Graph context.

Results are pulled from the P6M knowledge domain and include citation metadata.

Source document

05. Create a workspace and enable a domain

Back to sources
active text/markdown v1 24 Jul 2026, 04:44

p6m://docs/050-enable-domain

Create a workspace and enable a domain

Most P6M APIs need a workspace and a domain installation.

Create a workspace

terminal
curl -X POST "$P6M_URL/v1/orgs/$ORG_ID/workspaces" \
  -H "Authorization: Bearer $P6M_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"name":"Production","slug":"production"}'

Save the returned workspace ID.

Enable a domain

terminal
curl -X POST "$P6M_URL/v1/orgs/$ORG_ID/enabled-services" \
  -H "Authorization: Bearer $P6M_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "workspaceId": "'"$WORKSPACE_ID"'",
    "domainCode": "metadata",
    "externalTenantPolicy": "lazy",
    "identityMatchPolicy": "external_id_preferred"
  }'

Save the returned enabled-service ID. Customer API calls usually send this value as enabledServiceId.

Recommended first domains

  • identity for users and service accounts.
  • metadata for flexible application records.
  • notifications for event delivery.
  • knowledge for document search, citations, and Memory Graph.
  • support if your app needs customer ticketing.