Workspaces
Provision Workspace
Create a fully configured workspace for a client and receive an API token scoped to it
POST
Provision Workspace
Create a fully configured Penbox workspace for one of your clients, seed it with case templates, register its admins, and receive an API token scoped to that workspace — in a single call. For the end-to-end flow, see Onboard a Client.
Provisioning is reserved to partner accounts — talk to Penbox to have yours enabled. A key without
it is rejected with a
401. Once enabled, the workspace that owns the key becomes the parent of
every workspace it provisions.
One silent admin is created: the
admin in the payload, your client’s. To add your own
support account, call Create Member with the returned
token and "is_admin": true.You pay for the workspaces you provision. A provisioned workspace shares your billing
account: its credit usage is invoiced to you.
The token is returned exactly once, in the
201 response that creates the workspace. Penbox stores nothing but its hash — persist it before you do anything else.Idempotency
The call is idempotent onintegration.source_workspace_id: one Penbox workspace per workspace on your side. Use the status code to tell a creation from a replay:
Disconnect
Your client can cut your integration off at any time, from Settings → Integrations → Disconnect. Your token for that workspace is revoked on the very next call, and every admin you added with it is removed. The members you registered as Handlers, and everything you created, stay.Authorizations
API token (starts with pnbx_). Create at https://app.penbox.io/workspace/settings/api. Include as: Authorization: Bearer {token}
Body
application/json
Response
A workspace already exists for this source_workspace_id. Same payload, without token.