Skip to main content
POST
Top up a fixed budget
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. A top-up adds amount to the budget. It only works when creditMode is FIXED; any other credit rule returns 409.

Idempotency-Key is required

Because a top-up adds credits, send an Idempotency-Key header. A retry with the same key adds the credits once. To set the balance to an exact number instead, use Set Client Workspace Limits with budgetRemaining. If the workspace had run out, a top-up gives it credits again, and a later run-out sends a new workspace.credits_exhausted event.

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 adds once.

Path Parameters

id
string
required

Client workspace ID

Body

application/json
amount
number
required

Credits added to a FIXED budget.

Required range: x >= 1
Example:

250

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