credit

Quote a metered X action

Changed on

Estimate the credit cost of a metered X action (post publishing, analytics reads, imports) before running it, and see whether your current balance covers it.

post/api/v1/billing/billable-usage/quote

Request

  • Base URL
    https://api.bundle.social
  • URL
    https://api.bundle.social/api/v1/billing/billable-usage/quote
  • Auth
    API key in header x-api-key

Request body

teamIdstring required
textstring
textsstring[]
action'TWITTER_CONTENT_CREATE' | 'TWITTER_CONTENT_CREATE_WITH_URL' | 'TWITTER_CONTENT_MANAGE' | 'TWITTER_INTERACTION_DELETE' | 'TWITTER_POST_READ' | 'TWITTER_USER_READ' | 'TWITTER_USER_INTERACTION_CREATE'
altTextCountinteger
quantityinteger

Response

200

billableboolean required
totalMicrosinteger required
totalCentsinteger required
currency'usd' required
availableMicrosinteger required
availableCentsinteger required
wouldExceedBalanceboolean required

Changes