Elicit Usage API

Report plan usage and extra usage — the account-settings usage meter, over the API.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

GET /usage Get usage status #

Specifications

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/elicit:elicit-usage-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

elicit-usage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Elicit Usage API
  version: 2.0.0
  description: 'The Elicit API lets you search academic papers and clinical trials, run research workflows, and manage your library and shared projects. ## Getting started


    This reference documents **v2**, with production base URL `https://elicit.com/api/v2`. Paths below are relative to that base. The older v1 API uses different paths and response envelopes; do not mix v1 examples with this reference. 1. Use an Elicit account with API access (Pro or above) and create an API key in account settings. 2. Set `ELICIT_API_KEY` in your environment. Keep it secret; do not embed it in browser code or commit it to source control. 3. Make a search request:


    ```bash

    curl --fail-with-body https://elicit.com/api/v2/search/papers \

    -H "Authorization: Bearer $ELICIT_API_KEY" \

    -H "Content-Type: application/json" \

    -d ''{"query":"effects of sleep deprivation on cognitive performance","maxResults":10}''

    ```


    The response contains `papers` and may include non-fatal `warnings`; inspect warnings even on a successful response. Search returns results in the same request; research workflows return a session to poll instead. ### Choose an endpoint


    | Goal | Start here |

    |------|------------|

    | Search papers or clinical trials | `POST /search/papers` or `POST /search/trials` |

    | Generate a report from a question | `POST /sessions/reports` |

    | Configure search, screening, extraction, and reporting stages | `POST /sessions/systematic-reviews` |

    | Run interactive research with follow-up messages and artifacts | `POST /sessions/agents` |

    | Find existing sessions or resume quota-paused work | `GET /sessions`; follow `links.self` or `links.resume` |

    | Save papers, import PDFs, or organize collections | `/library/sources`, `/library/imports`, and `/library/collections` |

    | Create, browse, or share projects | `POST /projects`, `GET /projects`, and `POST /projects/{projectId}/shares` |

    | Read where a project stands on its question | `GET /projects/{projectId}/summary` |

    | Schedule recurring Research Agent work | `/routines` |

    | Check account usage | `GET /usage` |


    ## Authentication


    All API requests require a Bearer token in the `Authorization` header:


    ```

    Authorization: Bearer elk_live_your_key_here

    ```


    API keys can be created and managed from your Elicit account settings. ## Billing


    API access requires a Pro plan or above. Your plan limits **results per search request**, not requests per day. Exceeding the plan''s `maxResults` cap returns `400 invalid_request`; see the Search endpoints for the per-plan limits. All endpoints share a burst limit of **100 requests per minute per IP address**, including polling requests. Exceeding it returns `429` and blocks that IP for **5 minutes**. Coordinate polling across concurrent sessions and clients behind the same IP. An exhausted usage allowance returns `402 insufficient_quota` when starting work (`error.details.reason` is `credits_exhausted` or, for an organization member over the weekly limit set by their admin, `spend_limit_reached`; `error.details.resetsAt` is when the block lifts), or pauses a running session with `status: "pausedForInsufficientQuota"`. Check `GET /usage`, resolve the limit, then POST to `links.resume`; paused work does not automatically resume. Usage reporting can return `409` for accounts without usage reporting or while their usage data is not ready. Manage your plan in account settings. ## Code Examples


    Working examples in curl, Python, and JavaScript, plus integrations (CLI tool, Slack bot, Claude Code skill):


    **github.com/elicit/api-examples**


    ## Error Handling


    Application errors use this JSON envelope. Branch on the HTTP status and `error.code`, not the wording of `error.message`:


    ```json

    {"error":{"code":"invalid_request","message":"body.query: Required"}}

    ```


    **Exception: the edge rate limit** returns a flat body, not an `error` object:


    ```json

    {"error":"Rate limit exceeded","message":"Too many requests.'
  termsOfService: https://elicit.com/operations/terms
  contact:
    name: Elicit
    url: https://elicit.com
servers:
- url: https://elicit.com/api/v2
  description: Elicit
tags:
- name: Usage
  description: Report plan usage and extra usage — the account-settings usage meter, over the API.
paths:
  /usage:
    get:
      tags:
      - Usage
      summary: Get usage status
      description: 'Report the authenticated account''s current usage against its plan.


        Returns whether the account still has usage available (`hasUsageRemaining`), the percentage of plan usage consumed this billing period, the billing-period bounds, and — only when extra usage is enabled — the extra-usage spend and limit in USD cents.


        ### Example


        ```bash

        curl https://elicit.com/api/v2/usage \

        -H "Authorization: Bearer elk_live_your_key_here"

        ```'
      security:
      - BearerAuth: []
      responses:
        '200':
          description: Current usage status.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetUsageResponse'
        '401':
          description: Authentication failed. The API key is missing, invalid, revoked, or expired.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: invalid_api_key
                  message: Invalid API key
        '403':
          description: API access is not available on your current plan. Upgrade to Pro or above to use the API.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: api_access_denied
                  message: API access is not available on your current plan. Please upgrade to Pro or above.
        '409':
          description: Usage reporting is not available for this account, or usage data is not ready yet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                notAvailable:
                  summary: Usage reporting not available for this account
                  value:
                    error:
                      code: not_credits_pricing
                      message: Usage reporting is not available for this account.
                notReady:
                  summary: Usage data not provisioned yet — retry shortly
                  value:
                    error:
                      code: usage_unavailable
                      message: Usage data is not ready yet; retry shortly.
        '429':
          description: Rate limit exceeded. More than 100 requests per minute were received from your IP address; further requests are blocked for 5 minutes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudflareRateLimitError'
              example:
                error: Rate limit exceeded
                message: Too many requests. Please try again later.
        '500':
          description: An unexpected error occurred. Retry reads with backoff; before retrying a write, check whether it took effect. See Error Handling for retry guidance.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: internal_error
                  message: Internal server error
      operationId: getUsage
      x-operation-id-source: derived
components:
  schemas:
    GetUsageResponse:
      type: object
      properties:
        hasUsageRemaining:
          type: boolean
          description: Whether the account can run billable work right now. False once both the plan limit and (if enabled) the extra-usage limit are exhausted, or once an organization member reaches their own weekly usage limit.
        percentUsed:
          type: number
          description: Percentage of plan usage consumed this billing period.
        periodStart:
          type: string
          description: ISO 8601 start of the current billing period.
        periodEnd:
          type: string
          description: ISO 8601 end of the current billing period. Monthly usage limits reset at this time.
        extraUsage:
          oneOf:
          - $ref: '#/components/schemas/ExtraUsage'
          - type: 'null'
          description: Extra-usage amount and limit in USD cents. Null when extra usage is not enabled.
      required:
      - hasUsageRemaining
      - percentUsed
      - periodStart
      - periodEnd
      - extraUsage
    CloudflareRateLimitError:
      type: object
      properties:
        error:
          type: string
          description: Error label. Always `Rate limit exceeded` for the burst limit.
          example: Rate limit exceeded
        message:
          type: string
          description: Human-readable detail.
          example: Too many requests. Please try again later.
      required:
      - error
      - message
    ExtraUsage:
      type: object
      properties:
        limitUsdCents:
          type:
          - integer
          - 'null'
          description: The extra-usage spending limit in USD cents, or null when extra usage is uncapped.
        spentUsdCents:
          type: integer
          description: Extra-usage spend so far this billing period, in USD cents.
      required:
      - limitUsdCents
      - spentUsdCents
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Machine-readable error code
              example: invalid_request
            message:
              type: string
              description: Human-readable error message
              example: Invalid search request
            sessionId:
              type: string
              format: uuid
              description: Recovery ID for an existing Research Agent session whose creation outcome is uncertain. Inspect this session before retrying creation. A subsequent confirmed pre-event initialization failure can roll it back, after which reads return session_not_found.
            details:
              type: object
              additionalProperties: {}
              description: Structured detail for this error. Its fields depend on `code` and are documented with the error that sets them.
          required:
          - code
          - message
      required:
      - error
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key obtained from your Elicit account settings page. Keys use the format `elk_live_...`.
externalDocs:
  description: Code examples and integrations
  url: https://github.com/elicit/api-examples
x-tagGroups:
- name: Search
  tags:
  - Search
- name: Sessions
  tags:
  - Sessions
  - Reports
  - Systematic Reviews
  - Research Agent
- name: Usage
  tags:
  - Usage
- name: Routines
  tags:
  - Routines
- name: Library
  tags:
  - Library
- name: Projects
  tags:
  - Projects