Skip to main content
POST
Create a client workspace
Requires client_workspaces:manage. Requires the master of an active personal (agency) workspace. A key created in a client workspace, or by a non-master, cannot use the client workspace endpoints. If the personal workspace becomes inactive, its keys lose client workspace access.

Idempotency-Key is required

Send an Idempotency-Key header. A retry with the same key returns the same workspace instead of creating a second one. A request without the header is rejected with 400.

Request body

  • creditMode: NONE, MONTHLY (with monthlyLimit) or FIXED (with startingBudget).
  • seatCap: the most LinkedIn senders the workspace can connect; null or omitted means no cap.
  • invitations: optional people to invite as ADMIN or MEMBER.
A plan that cannot create workspaces returns 403. The body rejects unknown properties with 400, so a typo in a field name fails instead of being ignored. The workspace is created first, then the invitations are sent. An invitation that fails does not undo the create: it is listed in failedInvitations, and you can retry it with Invite to Client Workspace.

Authorizations

X-API-Key
string
header
required

API key for authentication (prefix: sp_live_ or sp_test_)

Headers

idempotency-key
string
required

Required: a retry with the same key creates once.

Body

application/json
name
string
required
Maximum string length: 80
Example:

"Acme Corp"

note
string
Maximum string length: 200
Example:

"Retainer client"

creditMode
enum<string>

Without it, startingBudget means FIXED, monthlyLimit MONTHLY, neither NONE.

Available options:
NONE,
MONTHLY,
FIXED
monthlyLimit
number

MONTHLY: credits per cycle (required).

Required range: x >= 0
Example:

500

startingBudget
number

FIXED: the budget it starts with.

Required range: x >= 0
Example:

1000

seatCap
number | null

LinkedIn seat cap; null or absent = no cap.

Required range: x >= 0
Example:

3

invitations
object[]

Sent after the workspace is created; failures are listed in failedInvitations.

Maximum array length: 20

Response

id
string
required
Example:

"cmb1x2y3z0000abcd"

name
string
required
Example:

"Acme Corp"

note
string | null
required
Example:

"Retainer client"

creditMode
enum<string>
required

NONE: draws on the pool freely. MONTHLY: an allowance that resets with your plan. FIXED: a budget that only grows by top-ups or limit changes.

Available options:
NONE,
MONTHLY,
FIXED
limit
number | null
required

Monthly allowance (MONTHLY) or budget granted so far (FIXED); null for NONE.

Example:

500

used
number
required

Credits spent this cycle (MONTHLY, NONE) or since the budget began (FIXED).

Example:

120

remaining
number | null
required

max(0, limit - used); null for NONE.

Example:

380

exhaustedAt
string | null
required

When the workspace ran out of credits; null while it has some.

Example:

null

seatCap
number | null
required

LinkedIn seat cap; null = no cap.

Example:

3

seatsUsed
number
required

Connected LinkedIn senders.

Example:

1

members
number
required

Active members, not counting you.

Example:

2

invited
number
required

Pending, unexpired invitations.

Example:

1

failedInvitations
string[]
required

Emails whose invitation could not be created (the workspace still was).

Example: