{"openapi":"3.1.0","info":{"title":"CiteStamp API","version":"1.0.0","summary":"Typed, tiered citation claims about scholarly works.","description":"Ask the CiteStamp citation graph about any scholarly work. Every claim carries a tier: asserted means a named researcher signed it onto an append-only public log; inferred means it came from open scholarly metadata, and its attribution names the method. The two tiers are never blended.\n\nAccess: anonymous calls are admitted at 10 requests a minute per IP. A Pro token ($35/year) raises that to 600 a minute, up to 20,000 a day. Send a key as a bearer token. Each claim carries its own license.\n\nThe same five graph tools are served over MCP at https://mcp.citestamp.com/mcp.\n\nThe reference-check API (POST /api/v1/check) takes a list of up to 50 references and answers each with the verdict the MCP tool check_reference gives. It takes its own key, issued by agreement (info@citestamp.com); Pro tokens and signing keys do not open it.","termsOfService":"https://citestamp.com/terms","contact":{"name":"CiteStamp","email":"info@citestamp.com","url":"https://citestamp.com/about"}},"externalDocs":{"description":"For AI agents: the MCP server and the REST API","url":"https://citestamp.com/for-ai"},"servers":[{"url":"https://api.citestamp.com","description":"Production"}],"security":[{},{"bearerAuth":[]}],"tags":[{"name":"Ask","description":"Typed claims about one work, paged."},{"name":"Claims","description":"Whether a work is signed on the log, and by whom."},{"name":"Service","description":"Service state."},{"name":"Check","description":"Reference lists checked against the DOI registries, for key holders."}],"paths":{"/api/v1/ask/edges_about":{"post":{"operationId":"edges_about","summary":"Every claim where a work appears, on either side","description":"Returns typed claims where the work is the subject, the object, or both (direction). Filter by predicate or tier. With direction both, each side is read with its own window, so one answer can hold up to twice the limit: page by the limit you asked for, never by the row count.","tags":["Ask"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EdgesAboutRequest"},"example":{"id":"10.1007/s12225-019-9804-7","direction":"in","limit":1}}}},"responses":{"200":{"description":"One page of typed claims, with a page object saying what was left out.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskResponse"},"example":{"groundings":[{"subject":"https://doi.org/10.3897/phytokeys.207.61432","predicate":"cites","object":"https://doi.org/10.1007/s12225-019-9804-7","tier":"inferred","attribution":"zenodo-depositor-declared","provenance":{"declared_relation":"cites","source":"zenodo-import","zenodo_recid":19068832},"license":"https://creativecommons.org/publicdomain/zero/1.0/","np_uri":null,"subject_title":"Flora of Cameroon – Annonaceae Vol 45","object_title":null,"created":null}],"page":{"limit":1,"offset":0,"returned":1,"has_more":true,"inferred_total":86}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/ask/what_supports":{"post":{"operationId":"what_supports","summary":"Claims that something supports this work","description":"Incoming supports claims: works recorded as supporting the given work, in either tier.","tags":["Ask"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskRequest"},"example":{"id":"10.1007/s12225-019-9804-7","limit":1}}}},"responses":{"200":{"description":"One page of typed claims, with a page object saying what was left out.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskResponse"},"example":{"groundings":[],"page":{"limit":1,"offset":0,"returned":0,"has_more":false,"inferred_total":0}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/ask/what_refutes":{"post":{"operationId":"what_refutes","summary":"Claims that something refutes this work","description":"Incoming refutes claims: works recorded as refuting the given work, in either tier. An empty answer means no refutation is recorded here, not that none exists.","tags":["Ask"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskRequest"},"example":{"id":"10.1007/s12225-019-9804-7","limit":1}}}},"responses":{"200":{"description":"One page of typed claims, with a page object saying what was left out.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskResponse"},"example":{"groundings":[],"page":{"limit":1,"offset":0,"returned":0,"has_more":false,"inferred_total":0}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/ask/what_cites":{"post":{"operationId":"what_cites","summary":"Works whose reference lists include this one","description":"Incoming cites claims: works that cite the given work.","tags":["Ask"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskRequest"},"example":{"id":"10.1007/s12225-019-9804-7","limit":1}}}},"responses":{"200":{"description":"One page of typed claims, with a page object saying what was left out.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskResponse"},"example":{"groundings":[{"subject":"https://doi.org/10.3897/phytokeys.207.61432","predicate":"cites","object":"https://doi.org/10.1007/s12225-019-9804-7","tier":"inferred","attribution":"zenodo-depositor-declared","provenance":{"declared_relation":"cites","source":"zenodo-import","zenodo_recid":19068832},"license":"https://creativecommons.org/publicdomain/zero/1.0/","np_uri":null,"subject_title":"Flora of Cameroon – Annonaceae Vol 45","object_title":null,"created":null}],"page":{"limit":1,"offset":0,"returned":1,"has_more":true,"inferred_total":85}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/ask/references_of":{"post":{"operationId":"references_of","summary":"What this work itself cites","description":"Outgoing cites claims: the works the given work cites.","tags":["Ask"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskRequest"},"example":{"id":"10.1007/s12225-019-9804-7","limit":1}}}},"responses":{"200":{"description":"One page of typed claims, with a page object saying what was left out.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskResponse"},"example":{"groundings":[{"subject":"https://doi.org/10.1007/s12225-019-9804-7","predicate":"cites","object":"https://doi.org/10.1007/978-1-59745-251-9_3","tier":"inferred","attribution":"zenodo-depositor-declared","provenance":{"declared_relation":"cites","source":"zenodo-import","zenodo_recid":3345047},"license":"https://creativecommons.org/publicdomain/zero/1.0/","np_uri":null,"subject_title":null,"object_title":"Multiple Alignment of DNA Sequences with MAFFT","created":null}],"page":{"limit":1,"offset":0,"returned":1,"has_more":true,"inferred_total":63}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/claimed":{"get":{"operationId":"claimed","summary":"Is this work signed on the log, and by whom","description":"Lists the asserters who have signed claims about the work. Public, read-only, CORS-open, no key. Pass orcid to also learn whether that iD is among the signers.","tags":["Claims"],"security":[],"parameters":[{"name":"paper","in":"query","required":true,"description":"A DOI in any common form.","schema":{"type":"string"},"example":"10.1007/s12225-019-9804-7"},{"name":"orcid","in":"query","required":false,"description":"An ORCID iD, bare or as an orcid.org URI.","schema":{"type":"string"}}],"responses":{"200":{"description":"The work's signers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimedResponse"},"example":{"paper":"https://doi.org/10.1007/s12225-019-9804-7","claimed":false,"byYou":false,"signers":[]}}}},"400":{"description":"The paper parameter is missing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"missing paper"}}}},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/api/v1/check":{"post":{"operationId":"check","summary":"Check a reference list against the DOI registries","description":"Up to 50 references, each a DOI, an arXiv id or the reference as written. Each comes back, in order and with any id you sent, with the verdict check_reference gives: found, confirm (with the reason), not-found (not in the named sources on that date; never proof the work was not published) or couldnt-check. Lookups go to Crossref, then DataCite, then doi.org; never OpenAlex. An entry with a PubMed ID and no DOI is looked up at PubMed first, sending the ID only. Nothing of the list is stored or logged. A batch the day's registry budget can't cover is refused whole with 503 before anything is checked; if the budget runs out part-way, each entry left is couldnt-check and summary.not_checked_budget counts them. The key's own limits count references, not requests. POST only: any other method gets 405 and checks nothing.","tags":["Check"],"security":[{"checkKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckRequest"},"example":{"references":["10.1056/NEJMoa2034577",{"id":"ref-12","reference":"Vaswani et al. (2017). Attention is all you need."}]}}}},"responses":{"200":{"description":"One result per reference, in the order sent, with a dated summary.","headers":{"X-Request-Id":{"description":"The request id, also in the body.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckResponse"}}}},"400":{"description":"The body is not JSON, has no references array, or an entry is empty or too long; index names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"references[3] is 2400 characters; the limit is 2000","index":3,"limit":2000}}}},"401":{"description":"No key, an unknown key, or a revoked one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"invalid key"}}}},"403":{"description":"A Pro token or a signing key: this endpoint takes a reference-check key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"this endpoint takes a reference-check key, not a Pro token or a signing key"}}}},"413":{"description":"More than 50 references, or a body over 200,000 bytes. Nothing was checked or counted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"at most 50 references per request; this one has 64","limit":50}}}},"429":{"description":"The key's per-minute or per-day reference limit. Nothing was checked or counted.","headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"this key's reference limit is reached","remaining_day":12,"retry_after_s":3600}}}},"500":{"$ref":"#/components/responses/InternalError"},"503":{"description":"Couldn't check: the day's registry budget can't cover the batch, or the budget or key service can't be read. Nothing was checked or counted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"couldn't check: today's registry-call budget for this endpoint can't cover this batch"}}}}}}},"/api/v1/health":{"get":{"operationId":"health","summary":"Service state and signed-log position","description":"Reports that the service is up, how many signed claims it holds, and the last op-log line it has applied.","tags":["Service"],"security":[],"responses":{"200":{"description":"The service is up.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}}},"components":{"securitySchemes":{"checkKey":{"type":"http","scheme":"bearer","description":"Required on /api/v1/check: a reference-check key (cs_chk_...), issued by agreement. Pro tokens and signing keys get 403 there."},"bearerAuth":{"type":"http","scheme":"bearer","description":"Optional. Without it a call is anonymous and rate-limited per IP. A presented token is always checked: an unknown or revoked one is refused with 401, never quietly treated as anonymous."}},"schemas":{"AskRequest":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"The work. A DOI in any common form (bare, doi: prefix, or a doi.org URL); other identifiers are looked up as sent.","examples":["10.1007/s12225-019-9804-7"]},"asserted_only":{"type":"boolean","default":false,"description":"When true, only asserted (human-signed) claims are returned."},"tier":{"$ref":"#/components/schemas/Tier"},"limit":{"type":"integer","default":100,"maximum":1000,"description":"Page size. Values below 1 fall back to 100; values above 1000 are read as 1000."},"offset":{"type":"integer","default":0,"minimum":0,"description":"Rows to skip."}}},"EdgesAboutRequest":{"allOf":[{"$ref":"#/components/schemas/AskRequest"},{"type":"object","properties":{"predicate":{"type":"string","enum":["cites","supports","refutes","extends","uses_method","uses_data","background","identical_to"],"description":"Only claims of this type."},"direction":{"type":"string","enum":["in","out","both"],"default":"both","description":"in: the work is the object. out: the work is the subject. both: either."}}}]},"Tier":{"type":"string","enum":["asserted","inferred"],"description":"asserted: signed by a named asserter on the public log. inferred: derived from open scholarly metadata."},"Grounding":{"type":"object","required":["subject","predicate","object","tier","attribution","provenance","license"],"properties":{"subject":{"type":"string","description":"The citing or claiming work, as a URI."},"predicate":{"type":"string","enum":["cites","supports","refutes","extends","uses_method","uses_data","background","identical_to"]},"object":{"type":"string","description":"The work the claim is about, as a URI."},"tier":{"$ref":"#/components/schemas/Tier"},"attribution":{"type":"string","description":"Who stands behind the claim: an asserter id, or the method that derived it (such as openalex-snapshot)."},"provenance":{"type":"object","additionalProperties":true,"description":"Where the claim came from."},"license":{"type":"string","description":"The license this claim is published under."},"subject_title":{"type":["string","null"]},"object_title":{"type":["string","null"]},"np_uri":{"type":["string","null"],"description":"The signed record's URI, for asserted claims."},"created":{"type":["string","null"],"description":"When the claim was recorded, where known."}}},"Page":{"type":"object","required":["limit","offset","returned","has_more"],"properties":{"limit":{"type":"integer"},"offset":{"type":"integer"},"returned":{"type":"integer","description":"Rows in this answer."},"has_more":{"type":"boolean","description":"More rows exist past this window. Page while this is true."},"inferred_total":{"type":"integer","description":"Total inferred rows, present only where that count is exact."}}},"AskResponse":{"type":"object","required":["groundings","page"],"properties":{"groundings":{"type":"array","items":{"$ref":"#/components/schemas/Grounding"}},"page":{"$ref":"#/components/schemas/Page"}}},"ClaimedResponse":{"type":"object","required":["paper","claimed","byYou","signers"],"properties":{"paper":{"type":"string","description":"The work, as the graph keys it."},"claimed":{"type":"boolean","description":"At least one asserter has signed a claim about the work."},"byYou":{"type":"boolean","description":"The orcid passed is among the signers."},"signers":{"type":"array","items":{"type":"string"}}}},"HealthResponse":{"type":"object","required":["status","edges_count","op_log_high_water","kill_switch"],"properties":{"status":{"type":"string","enum":["ok"]},"edges_count":{"type":"integer","description":"Signed claims held."},"op_log_high_water":{"type":"integer","description":"The last op-log line applied, or -1."},"kill_switch":{"type":"boolean"}}},"CheckRequest":{"type":"object","required":["references"],"properties":{"references":{"type":"array","minItems":1,"maxItems":50,"items":{"oneOf":[{"type":"string","maxLength":2000,"description":"A DOI, an arXiv id, or the reference as written."},{"type":"object","required":["reference"],"properties":{"reference":{"type":"string","maxLength":2000},"id":{"type":["string","number"],"description":"Your own id for the entry, echoed back as a string (200 characters at most)."}}}]}}}},"CheckResult":{"type":"object","required":["index","verdict","reason","text","sources_checked","checked_at"],"properties":{"index":{"type":"integer","description":"Position in the list sent."},"id":{"type":["string","null"]},"verdict":{"type":"string","enum":["found","confirm","not-found","couldnt-check"]},"reason":{"type":"string"},"text":{"type":"string","description":"The same answer as lines of plain text, as check_reference words it."},"input":{"type":"object","description":"The DOI and title read from the entry, and its PubMed ID (pmid) when it carries one and no DOI.","additionalProperties":true},"work":{"type":["object","null"],"description":"The registry record the entry resolved to.","additionalProperties":true},"closest_match":{"type":["object","null"],"additionalProperties":true},"suggested_doi":{"type":["string","null"]},"registration_agency":{"type":["string","null"]},"title_mismatch":{"type":"boolean"},"publisher_event":{"type":["object","null"],"description":"A notice the publisher deposited (retraction, correction, expression of concern).","additionalProperties":true},"retraction_watch":{"type":["object","null"],"additionalProperties":true},"graph":{"type":["object","null"],"additionalProperties":true},"sources_checked":{"type":"array","items":{"type":"string"}},"checked_at":{"type":"string"},"registry_calls":{"type":"integer"},"location":{"type":"object","description":"Present when the entry names its journal, volume and pages and nothing matched cleanly: what Crossref holds there (records read, the pages they cover, a different work on the cited page).","additionalProperties":true}}},"CheckResponse":{"type":"object","required":["request_id","checked_at","summary","results","limits","notes"],"properties":{"request_id":{"type":"string"},"key_id":{"type":"string","description":"A short handle for the key used (never the key)."},"checked_at":{"type":"string"},"summary":{"type":"object","properties":{"date":{"type":"string"},"total":{"type":"integer"},"found":{"type":"integer"},"confirm":{"type":"integer"},"not_found":{"type":"integer"},"couldnt_check":{"type":"integer"},"not_checked_budget":{"type":"integer","description":"Entries left unchecked because the day's registry budget ran out part-way; also counted in couldnt_check."},"sources":{"type":"string"},"text":{"type":"string"}}},"results":{"type":"array","items":{"$ref":"#/components/schemas/CheckResult"}},"limits":{"type":"object","additionalProperties":true},"notes":{"type":"array","items":{"type":"string"}}}},"Error":{"type":"object","required":["error"],"description":"Every error answer has this shape. Branch on the HTTP status; error is a short human-readable reason.","properties":{"error":{"type":"string"},"hint":{"type":"string","description":"How to correct the request, where there is one."},"retry_after_s":{"type":"integer","description":"On 429: seconds to wait. Also sent as Retry-After."},"reset_at":{"type":"integer","description":"On 429: when the window resets, in Unix seconds."}}}},"responses":{"BadRequest":{"description":"The request is missing the id, or the client address was unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"id required"}}}},"Unauthorized":{"description":"A bearer token was presented and it is missing, unknown, or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"invalid token"}}}},"TooManyRequests":{"description":"Rate limit reached. Wait Retry-After seconds, or add a key.","headers":{"Retry-After":{"description":"Seconds to wait.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"anonymous rate limit exceeded — add an API token for higher limits","retry_after_s":42,"reset_at":1793750400}}}},"InternalError":{"description":"Something failed on our side.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"internal error"}}}},"ServiceUnavailable":{"description":"The service is paused, or rate limiting is unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"service paused"}}}}}}}