accepts-api-key

Add Enterprise User Subscription

Put users on an enterprise subscription, outside Stripe. Admin only.

Enterprise unlocks every feature and shows in the app as an Enterprise plan. Each user gets monthly_tokens now and every month after, a storage_gb quota, and instant_tokens once, expiring after instant_tokens_expiration_days. The subscription ends by itself after duration_months.

A user already on enterprise gets the new terms and period instead, with no new monthly tokens. Every email is handled on its own: one that can't be (no account, or a Stripe subscription to cancel first) is listed in issues and the others still go through.

post/admin/enterprise_user_subscription

Request

  • Base URL
    https://api.tellers.ai (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Headers

x-api-keystring nullable
authorizationstring nullable

Request body

emailsstring[] required

Emails of the users to put on the enterprise subscription

monthly_tokensnumber required

Tokens each user gets every month, the first month on being added. Each month's tokens expire after one month.

storage_gbinteger required

Storage quota of each user, in GB

duration_monthsinteger required

Months from now the subscription lasts. For a user already on enterprise, the period is reset to end this many months from now.

instant_tokensnumber required

One-off tokens granted to each user now, on top; 0 for none

instant_tokens_expiration_daysinteger required

Days from today after which the one-off tokens expire

Response

Successful Response

Changes

No recorded changes to this operation across all 2 revisions of this API.