Demandbase Credit Usage API

The Credit Usage API from Demandbase — 1 operation(s) for credit usage.

Operations 1

GET /reporting/v1/usage Fetch Credit Usage details #

Documentation

📖
Documentation
https://developer.demandbase.com/docs/b2b-overview
📖
APIReference
https://developer.demandbase.com/reference/companysearch_1
📖
GettingStarted
https://developer.demandbase.com/docs/b2b-make-your-first-request
📖
Authentication
https://developer.demandbase.com/docs/b2b-authentication
📖
RateLimits
https://developer.demandbase.com/docs/b2b-rate-limits
📖
BestPractices
https://developer.demandbase.com/docs/b2b-best-practices
📖
Documentation
https://developer.demandbase.com/docs/export-overview
📖
APIReference
https://developer.demandbase.com/reference/createexportjob
📖
GettingStarted
https://developer.demandbase.com/docs/make-your-first-request
📖
Authentication
https://developer.demandbase.com/docs/authentication
📖
RateLimits
https://developer.demandbase.com/docs/rate-limits
📖
Documentation
https://developer.demandbase.com/docs/import-overview
📖
APIReference
https://developer.demandbase.com/reference/post_job
📖
GettingStarted
https://developer.demandbase.com/docs/make-your-first-request-1
📖
Authentication
https://developer.demandbase.com/docs/authentication-1
📖
RateLimits
https://developer.demandbase.com/docs/rate-limits-1
📖
Documentation
https://developer.demandbase.com/reference/company-intent
📖
APIReference
https://developer.demandbase.com/reference/companyintent-1
📖
Documentation
https://developer.demandbase.com/docs/user-admin-overview
📖
APIReference
https://developer.demandbase.com/reference/post_admin-v1-user
📖
Authentication
https://developer.demandbase.com/docs/authentication-3
📖
Documentation
https://developer.demandbase.com/docs/credit-usage-overview
📖
APIReference
https://developer.demandbase.com/reference/getcreditusagedetails
📖
Authentication
https://developer.demandbase.com/docs/authentication-2
📖
Documentation
https://developer.demandbase.com/docs/custom-sources-overview
📖
APIReference
https://developer.demandbase.com/reference/get_integration-v1-custom-sources
📖
Documentation
https://developer.demandbase.com/docs/authenticating-with-the-apis
📖
APIReference
https://developer.demandbase.com/reference/generate_access_token
📖
Authentication
https://raw.githubusercontent.com/api-evangelist/demandbase/refs/heads/main/authentication/demandbase-authentication.yml

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/demandbase-credit-usage-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

demandbase-credit-usage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: '1.0'
  title: Credit Usage API
  description: 'This API allows authenticated users to retrieve summary-level credit usage and entitlement data for a specified API product. It supports two billing models:


    - **Per Record:** Credits are deducted each time a record is returned.


    - **RUM (Record Under Management):** Credits are deducted once per unique record per entitlement period.'
  contact:
    name: Support
    url: https://www.demandbase.com/
    email: support@demandbase.com
servers:
- url: https://uapi.demandbase.com
  description: Server URL in Production environment
  variables:
    basePath:
      default: reporting/v1
security:
- bearerAuth: []
tags:
- name: Credit Usage
paths:
  /reporting/v1/usage:
    get:
      tags:
      - Credit Usage
      summary: Fetch Credit Usage details
      description: ' Returns a summary of credit usage and entitlements for the specified API category.'
      operationId: getCreditUsageDetails
      parameters:
      - name: apiProduct
        in: query
        description: API product name (e.g., b2bApi)
        required: true
        schema:
          type: string
          enum:
          - b2bapi
          example: b2bApi
        examples:
          default:
            value: b2bApi
      responses:
        '200':
          description: Credit usage details fetched successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditUsage'
              examples:
                Credit Usage Details Response:
                  description: Credit Usage Details Response
                  value:
                    summary:
                      scope: lifetime
                      totalCreditsAllocated: 50000
                      totalCreditsConsumed: 115
                      totalCreditsAvailable: 49885
            application/xml:
              schema:
                $ref: '#/components/schemas/CreditUsage'
              examples:
                Credit Usage Details Response:
                  description: Credit Usage Details Response
                  value: "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<usage>\n    <summary>\n        <scope>lifetime</scope>\n        <totalCreditsAllocated>50000</totalCreditsAllocated>\n        <totalCreditsConsumed>115</totalCreditsConsumed>\n        <totalCreditsAvailable>49885</totalCreditsAvailable>\n    </summary>\n</usage>\n"
        '400':
          description: Bad Request
          content:
            application/json:
              examples:
                InvalidAPICategoryErrorResponse:
                  description: InvalidAPICategoryErrorResponse
                  value:
                    errorCode: 400-100
                    errorMessage: Invalid value for apiCategory. Should be among {b2bApi}
            application/xml:
              schema:
                type: object
                title: error
                format: xml
              examples:
                InvalidCompanyIdErrorResponseXml:
                  description: InvalidCompanyIdErrorResponseXml
                  value: "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<error>\n    <errorCode>400-100</errorCode>\n    <errorMessage>Invalid value for apiCategory. Should be among {b2bApi}</errorMessage>\n</error>\n"
        '401':
          description: Unauthorized because the user is not authenticated.
          content:
            application/json:
              examples:
                UnauthorizedResponse:
                  description: UnauthorizedResponse
                  value:
                    status: Authentication Failed - Unauthorized.
      servers:
      - url: https://uapi.demandbase.com
        description: Server URL in Production environment
        variables:
          basePath:
            default: reporting/v1
components:
  schemas:
    CreditUsageSummary:
      type: object
      properties:
        scope:
          type: string
          example: lifetime
        totalCreditsAllocated:
          type: integer
          description: Total number of credits provisioned to the tenant for the specified API category.
          example: 50000
        totalCreditsConsumed:
          type: integer
          description: "Total number of credits consumed during the entitlement period.\n        This value reflects either total API calls (perRecord) or unique records accessed (RUM)."
          example: 115
        totalCreditsAvailable:
          type: integer
          description: 'Total remaining credits available to the tenant.

            Calculated as: totalCreditsAllocated - totalCreditsConsumed.'
          example: 49885
        chargingModel:
          type: string
          enum:
          - perRecord
          - RUM
          description: 'Indicates which billing model applies to the tenant:

            - `perRecord`: credits deducted for every record returned, even duplicates

            - `RUM`: credits deducted only for unique records returned within the period'
          example: perRecord
    CreditUsage:
      type: object
      properties:
        summary:
          $ref: '#/components/schemas/CreditUsageSummary'
      xml:
        name: usage
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT