Elicit Library API

Your library: saved papers (sources) and the collections that group them, including items shared with you. ### Conventions - A detail endpoint returns the resource. A list endpoint returns `{ , nextCursor, totalCount }`. Send `nextCursor` as `cursor` to get the next page. `nextCursor` is `null` on the last page. - You see your own sources and collections plus any shared with you. Each carries your `role`. On a collection, `reader`, `writer`, or `owner`: readers view; writers also add and remove sources and edit the name and description; owners also delete it and change who it is shared with. On a source, `reader` or `writer`: writers edit its metadata, attach a PDF, delete it, and add it to collections. - A shared collection owns its papers. Adding one of your sources to it copies the paper into the collection; your own source is unchanged, and you are a `writer` on the copy if you own or can edit the collection and a `reader` if you can only view it. Removing a paper from such a collection moves it to the collection's trash for 30 days. - An id you cannot see returns `404`. An action your role does not allow returns `403 forbidden`. - Creating a collection returns `201`; synchronous bulk operations return `200`; PDF imports return `202` and must be polled. Retry behavior varies by endpoint. Creating a collection again creates another collection, and saving sources with `onDuplicate: create` can create additional copies. - A duplicate is not an error. Saving a paper that is already in your library returns the existing source with `created: false` and `duplicateOf` set; with `onDuplicate: create`, a copy is saved with `created: true` and `duplicateOf` names the original. A PDF import reports the file as `duplicate`. Duplicate detection uses Elicit ids, DOIs, and strong title similarity. Authors can corroborate a title match, and a sufficiently strong title can match without author corroboration; conflicting DOI, year, or abstract evidence can rule out a title-based match. Items in one request are also matched against each other. - Adding sources to a collection validates all source ids before changing memberships; an unknown or inaccessible source fails that add request. Removing sources skips ids not in the collection. Do not assume every bulk operation is atomic: source saves are processed individually and PDF imports report per-file outcomes. - Deleting a source is a soft delete. A repeat returns `204`. Deleting a collection is permanent. Its sources stay in the library. A repeat returns `404`. - DOIs saved through the API are stored in bare lowercase form (`10.1056/nejmoa2307563`). Input and the `doi` filter accept `doi.org` URLs, `doi:` prefixes, and any letter case. - A malformed id, or an unknown query parameter or body key, returns `400 invalid_request` with the field name.

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 15

POST /files Upload a file #
GET /library/sources List library sources #
POST /library/sources Save library sources #
GET /library/sources/{sourceId} Retrieve a library source #
DELETE /library/sources/{sourceId} Delete a library source #
GET /library/sources/{sourceId}/full-text Retrieve a source's full text #
GET /library/collections List library collections #
POST /library/collections Create a collection #
GET /library/collections/{collectionId} Retrieve a library collection #
PATCH /library/collections/{collectionId} Update a collection #
DELETE /library/collections/{collectionId} Delete a collection #
POST /library/imports Import uploaded PDFs #
GET /library/imports/{importId} Retrieve an import #
POST /library/collections/{collectionId}/sources Add sources to a collection #
DELETE /library/collections/{collectionId}/sources Remove sources from a collection #

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-library-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-library-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Elicit Library 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:


# --- truncated at 32 KB (112 KB total) ---
# Full source: https://artifacts.apis.io/elicit/openapi/elicit-library-api-openapi.yml