Skip to main content

Get Project Usage

GET 

/api/v1/projects/:project_id/usage

Get usage for a project

Request

Path Parameters

    project_id anyrequired

Query Parameters

    organization_id any

Cookie Parameters

    session any

Responses

Successful Response

Schema

    start_window

    object

    required

    anyOf

    string

    end_window

    object

    required

    anyOf

    string

    plan

    object

    required

    anyOf

    total_users Total Users (integer)
    Default value: 1
    total_indexes Total Indexes (integer)
    Default value: 5
    total_indexed_pages Total Indexed Pages (integer)
    Default value: 10000
    credits Credits (integer)
    Default value: 30000
    has_payment_method Has Payment Method (boolean)
    Default value: false
    free Free (boolean)

    If is a free plan

    Default value: true
    allowed_index Allowed Index (boolean)

    If is allowed to use indexes

    Default value: true
    allowed_external_index Allowed External Index (boolean)

    If is allowed to use external data sources or sinks in indexes

    Default value: false

    usage

    object

    required

    anyOf

    Response model; use UsageSubmission for tracking

    total_users Total Users (integer)
    Default value: 0
    total_indexes Total Indexes (integer)
    Default value: 0
    total_indexed_pages Total Indexed Pages (integer)
    Default value: 0
    extract_pages Extract Pages (integer)
    Default value: 0
    parse_pages Parse Pages (integer)
    Default value: 0
    index_pages Index Pages (integer)
    Default value: 0
    credits Credits (integer)
    Default value: 0
Loading...