Skip to main content
DELETE
Remove a member budget

Overview

Removes an organization member’s monthly budget. A member who was paused at the budget can use the organization’s keys again right away. Requires an organization API key owned by an organization admin.

Authorizations

Authorization
string
header
required

Morph API key, passed as Authorization: Bearer sk-.... Create keys at https://www.morphllm.com/dashboard/api-keys.

Path Parameters

userId
string
required

Which member’s budget to remove. User id of the member whose budget to remove.

Example:

"user_2xKq8T1fJ3mZ5bR9cW7vN4pL6hD"

Response

The member with no budget.

A member’s monthly budget and spend.

userId
string
required

The member’s user id.

Example:

"user_2xKq8T1fJ3mZ5bR9cW7vN4pL6hD"

monthlyLimit
string | null
required

Monthly budget in USD, two decimals. Null when the member has no budget.

Example:

"50.00"

spent
string
required

The member’s spend on the organization’s keys this UTC month, in USD at the organization’s prices. Updated about every 30 minutes.

Example:

"12.34"

paused
boolean
required

True once spend reached the budget. The member’s organization keys get 429 member_budget_exceeded until the budget is raised or removed, or the next UTC month starts.

Example:

false