For the complete documentation index, see llms.txt. This page is also available as Markdown.

Billing

Gets the usage of a workspace

get

Get the usage data for a workspace

Path parameters
workspace_idstring · uuidRequired

The ID of the workspace to get usage data for

Header parameters
passwordstring · nullableOptional

The password header to use to fetch the preview

Body
Responses
200

The usage of the workspace

application/json
has_payment_methodbooleanRequired
monthly_subscription_statusstring · nullableRequired
annual_subscription_statusstring · nullableRequired
creditsintegerRequired
get/billing/{workspace_id}/workspace-usage

Gets the usage of a drive

get

Get the usage data for a drive

Path parameters
drive_idstring · uuidRequired

The ID of the drive to get usage data for

Header parameters
passwordstring · nullableOptional

The password header to use to fetch the preview

Body
Responses
200

The usage of the drive

application/json
usagenumberRequired
total_storagenumberRequired
total_itemsintegerRequired
get/billing/{drive_id}/drive-usage

Gets the usage of a workspace

get

Get the usage data for a workspace

Path parameters
workspace_idstring · uuidRequired

The ID of the workspace to get usage data for

Header parameters
passwordstring · nullableOptional

The password header to use to fetch the preview

Body
Responses
200

The usage of the workspace

application/json
planstring · nullableRequired
plan_namestringRequired
seats_annualbooleanRequired
is_trialbooleanRequired
seatsintegerRequired
get/billing/{workspace_id}/usage

Gets the invoices for a workspace

get

Get the invoices for a workspace

Path parameters
workspace_idstring · uuidRequired

The ID of the workspace to get invoices for

Query parameters
upcomingbooleanOptional

Whether to get the upcoming invoice

Default: false
Header parameters
passwordstring · nullableOptional

The password header to use to fetch the preview

Body
Responses
200

The invoices of the workspace

application/json
total_amount_duenumberRequired
period_startintegerRequired
period_endintegerRequired
invoice_dateintegerRequired
paidbooleanRequired
invoice_pdfstringRequired
hosted_invoice_urlstringRequired
taxnumberRequired
subtotalnumberRequired
statusstringRequired
currencystringRequired
get/billing/{workspace_id}/invoices

Update Payment Method

put

Update the payment method for a workspace

Path parameters
workspace_idstring · uuidRequired

The ID of the workspace to update the payment method for

Header parameters
passwordstring · nullableOptional

The password header to use to fetch the preview

Body
payment_method_idstringRequired

The ID of the payment method to update to

is_firstboolean · nullableOptional

Whether this is the first added payment method (not updated later on)

Default: false
Responses
200

Successful Response

application/json
Other propertiesstringOptional
put/billing/{workspace_id}/payment-method

Update Billing Address

put

Update the billing address for a workspace

Path parameters
workspace_idstring · uuidRequired

The ID of the workspace to update the billing address for

Header parameters
passwordstring · nullableOptional

The password header to use to fetch the preview

Body
payment_method_idstringRequired

The ID of the payment method to update to

Responses
200

Successful Response

application/json
anyOptional
put/billing/{workspace_id}/billing-address

No content

Get Payment Methods

get

Get the payment methods for a workspace

Path parameters
workspace_idstring · uuidRequired

The ID of the workspace to get the payment methods for

Header parameters
passwordstring · nullableOptional

The password header to use to fetch the preview

Body
Responses
200

Successful Response

application/json
idstringRequired
brandstringRequired
typestringRequired
last4stringRequired
exp_monthinteger · nullableRequired
exp_yearinteger · nullableRequired
fundingstring · nullableRequired
countrystringRequired
addressstringRequired
citystringRequired
statestringRequired
zipstringRequired
namestringRequired
get/billing/{workspace_id}/payment-methods

Update Plan

put

Update the plan for a workspace

Path parameters
workspace_idstring · uuidRequired

The ID of the workspace to update the plan for

Query parameters
price_idstringRequired

The ID of the price plan to update to

seatsinteger · nullableOptional

The number of seats to update to

Header parameters
passwordstring · nullableOptional

The password header to use to fetch the preview

Body
Responses
200

Successful Response

application/json
anyOptional
put/billing/{workspace_id}/plan

No content

Get Current Invoice

get

Get the current invoice for a workspace

Path parameters
workspace_idstring · uuidRequired

The ID of the workspace to get the current invoice for

Header parameters
passwordstring · nullableOptional

The password header to use to fetch the preview

Body
Responses
200

Successful Response

application/json
total_amount_duenumberRequired
period_startintegerRequired
period_endintegerRequired
invoice_dateintegerRequired
paidbooleanRequired
invoice_pdfstringRequired
hosted_invoice_urlstringRequired
taxnumberRequired
subtotalnumberRequired
statusstringRequired
currencystringRequired
get/billing/{workspace_id}/current-invoice

Get Upcoming Monthly Invoice

get

Get the upcoming monthly invoice for a workspace

Path parameters
workspace_idstring · uuidRequired

The ID of the workspace to get the upcoming monthly invoice for

Header parameters
passwordstring · nullableOptional

The password header to use to fetch the preview

Body
Responses
200

Successful Response

application/json
total_amount_duenumberRequired
period_startintegerRequired
period_endintegerRequired
invoice_dateintegerRequired
paidbooleanRequired
invoice_pdfstringRequired
hosted_invoice_urlstringRequired
taxnumberRequired
subtotalnumberRequired
statusstringRequired
currencystringRequired
get/billing/{workspace_id}/upcoming-monthly-invoice

Get Annual Subscriptions

get

Get the annual subscriptions for a workspace

Path parameters
workspace_idstring · uuidRequired

The ID of the workspace to get the annual subscriptions for

Header parameters
passwordstring · nullableOptional

The password header to use to fetch the preview

Body
Responses
200

Successful Response

application/json
anyOptional
get/billing/{workspace_id}/annual-subscriptions

No content

Update Billing Email

put

Update the billing email for a workspace on stripe

Path parameters
workspace_idstring · uuidRequired

The ID of the workspace to update the billing email for

Header parameters
passwordstring · nullableOptional

The password header to use to fetch the preview

Body
emailstringRequired

The email to update the billing email to

Responses
200

Successful Response

application/json
anyOptional
put/billing/{workspace_id}/billing-email

No content

Last updated

Was this helpful?