# Fidatory API

> Point-in-time economic and market data with every revision kept. Every read is as of a point in time; lists use cursors; one error catalogue. Send your key as "Authorization: Bearer <key>" or in X-API-Key.

Start with `GET /v1/resolve` to turn tickers, CIKs, FIGIs or LEIs into Fidatory IDs, then query a dataset’s records.

## First call

The dataset catalog needs no key:

```sh
curl https://api.fidatory.com/v1/datasets
```

With a key (from https://console.fidatory.com), in the Authorization header and never in the URL:

```sh
curl -H "Authorization: Bearer $FIDATORY_KEY" "https://api.fidatory.com/v1/resolve?id=ticker:AAPL"
curl -H "Authorization: Bearer $FIDATORY_KEY" "https://api.fidatory.com/v1/datasets/sec.filings/records?limit=5"
```

Changes are additive only: new endpoints, fields, parameters, enum values and error codes may appear at any time, so clients ignore fields they do not know and accept enum values they have not seen. Every call that changes state takes an optional Idempotency-Key header; a retry with the same key returns the first answer and repeats nothing.

## Endpoints

- [GET /.well-known/mcp/server-card.json](https://docs.fidatory.com/api/getWellKnownMcpServerCard.md): The MCP server card (getWellKnownMcpServerCard; no key). What an MCP client needs before it connects: the server, its endpoint and its protocol versions.
- [GET /docs](https://docs.fidatory.com/api/docs.md): The documentation site (docs; no key). Redirects to https://docs.fidatory.com.
- [GET /healthz](https://docs.fidatory.com/api/getHealth.md): Whether the API is serving (getHealth; no key). Answers {"status": "ok"} with 200 while the API can read its database; otherwise 503 `unavailable`.
- [GET /llms-full.txt](https://docs.fidatory.com/api/llmsFullTxt.md): The whole API reference as Markdown (llmsFullTxt; no key). Conventions, every endpoint with its parameters and errors, and the error catalogue.
- [GET /llms.txt](https://docs.fidatory.com/api/llmsTxt.md): The API index for language models (llmsTxt; no key). Every endpoint and error code with a link to its page, as Markdown.
- [POST /mcp](https://docs.fidatory.com/api/mcp.md): MCP server (mcp; no key, or a key for more). The Model Context Protocol endpoint: stateless Streamable HTTP, protocol 2026-07-28 (server/discover) and 2025-11-25, 2025-06-18, 2025-03-26 through initialize.
- [GET /mcp/server-card](https://docs.fidatory.com/api/getMcpServerCard.md): The MCP server card (getMcpServerCard; no key). What an MCP client needs before it connects: the server, its endpoint and its protocol versions.
- [GET /v1/account/invitations](https://docs.fidatory.com/api/listInvitations.md): List open invitations (listInvitations; a console session). The organization's invitations not yet accepted, revoked or expired, oldest first.
- [DELETE /v1/account/invitations/{invitation}](https://docs.fidatory.com/api/revokeInvitation.md): Revoke an invitation (revokeInvitation; a console session). The invitation can no longer be accepted.
- [GET /v1/account/keys](https://docs.fidatory.com/api/listKeys.md): List API keys (listKeys; API key or console session). The organization's keys, newest first: names, environments, last four characters, dates and status, never a key.
- [POST /v1/account/keys](https://docs.fidatory.com/api/createKey.md): Create an API key (createKey; a console session). A new live or test key, shown once.
- [DELETE /v1/account/keys/{key}](https://docs.fidatory.com/api/revokeKey.md): Revoke an API key (revokeKey; API key or console session). Revoked at once (within 5 seconds everywhere).
- [POST /v1/account/keys/{key}/rotate](https://docs.fidatory.com/api/rotateKey.md): Rotate an API key (rotateKey; a console session). A new key with the same name and environment; the old one keeps working for 24 hours.
- [GET /v1/account/members](https://docs.fidatory.com/api/listMembers.md): List members (listMembers; API key or console session). The organization's members and their roles, by when they joined.
- [POST /v1/account/members](https://docs.fidatory.com/api/inviteMember.md): Invite a member (inviteMember; a console session). Emails an invitation (valid 7 days) to join as member or, from an owner, admin; the person accepts after signing in with that address.
- [DELETE /v1/account/members/{member}](https://docs.fidatory.com/api/removeMember.md): Remove a member, or leave (removeMember; a console session). Anyone may leave; an owner removes anyone and an admin removes members, with a passkey sign-in in the last 12 hours; the last owner stays.
- [PATCH /v1/account/members/{member}](https://docs.fidatory.com/api/changeMemberRole.md): Change a member's role (changeMemberRole; a console session). An owner sets a member's role; the last owner cannot be demoted.
- [GET /v1/alert-rules](https://docs.fidatory.com/api/listAlertRules.md): List alert rules (listAlertRules; API key or console session). The organization's alert rules, newest first.
- [POST /v1/alert-rules](https://docs.fidatory.com/api/createAlertRule.md): Create an alert rule (createAlertRule; API key or console session). Threshold conditions on a monitor's changes: when a change meets every condition, alert.triggered.v1 goes to the rule's webhook, or the monitor's.
- [DELETE /v1/alert-rules/{alert_rule}](https://docs.fidatory.com/api/deleteAlertRule.md): Delete an alert rule (deleteAlertRule; API key or console session). Deletes the alert rule.
- [GET /v1/alert-rules/{alert_rule}](https://docs.fidatory.com/api/getAlertRule.md): Read an alert rule (getAlertRule; API key or console session). One alert rule.
- [PATCH /v1/alert-rules/{alert_rule}](https://docs.fidatory.com/api/updateAlertRule.md): Change an alert rule (updateAlertRule; API key or console session). Changes its name, conditions, webhook (null for the monitor's) or enabled.
- [POST /v1/auth/email-changes](https://docs.fidatory.com/api/requestEmailChange.md): Change your email address (requestEmailChange; a console session). Sends an 8-digit code to the new address, valid 10 minutes; confirm it with /v1/auth/email-changes/confirm.
- [POST /v1/auth/email-changes/confirm](https://docs.fidatory.com/api/confirmEmailChange.md): Confirm a new email address (confirmEmailChange; a console session). Makes the latest requested address yours with its code; the old address is told and your other sessions are signed out.
- [POST /v1/auth/email-codes](https://docs.fidatory.com/api/requestEmailCode.md): Email a sign-in code (requestEmailCode; no key). Sends an 8-digit code to the address, valid 10 minutes and only with the attempt_id this call answers.
- [GET /v1/auth/identities](https://docs.fidatory.com/api/listIdentities.md): List your linked sign-ins (listIdentities; a console session). The Google and GitHub accounts that sign in to the signed-in user, oldest first.
- [POST /v1/auth/identities](https://docs.fidatory.com/api/linkIdentity.md): Link Google or GitHub (linkIdentity; a console session). Finishes a link flow: the provider's account then signs in to this user.
- [DELETE /v1/auth/identities/{identity}](https://docs.fidatory.com/api/removeIdentity.md): Remove a linked sign-in (removeIdentity; a console session). The provider's account no longer signs in to this user; your other sessions are signed out.
- [POST /v1/auth/identities/{provider}/start](https://docs.fidatory.com/api/startIdentityLink.md): Start linking Google or GitHub (startIdentityLink; a console session). Like the sign-in start, for linking the provider's account to the signed-in user; finish with POST /v1/auth/identities.
- [GET /v1/auth/invitations](https://docs.fidatory.com/api/listMyInvitations.md): List your invitations (listMyInvitations; a console session). Open invitations to your verified email address, oldest first.
- [POST /v1/auth/invitations/{invitation}/accept](https://docs.fidatory.com/api/acceptInvitation.md): Accept an invitation (acceptInvitation; a console session). Joins the organization with the invited role, when the invitation names your verified email.
- [GET /v1/auth/oauth-grants](https://docs.fidatory.com/api/listOAuthGrants.md): List your connected applications (listOAuthGrants; a console session). The applications you allowed to read an organization’s data, oldest first.
- [DELETE /v1/auth/oauth-grants/{grant}](https://docs.fidatory.com/api/revokeOAuthGrant.md): Disconnect an application (revokeOAuthGrant; a console session). Revokes the grant and every token issued under it, at once.
- [GET /v1/auth/oauth-requests/{request}](https://docs.fidatory.com/api/getOAuthRequest.md): Read an authorization request (getOAuthRequest; a console session). What an application asks for, for the consent screen: the client and its host, the redirect URI's host, the scope, the resource and your organizations.
- [POST /v1/auth/oauth-requests/{request}/approve](https://docs.fidatory.com/api/approveOAuthRequest.md): Approve an authorization request (approveOAuthRequest; a console session). Lets the application read one organization's data for you (scope data:read) and answers the URL to send the browser to; only the browser that started the request can finish it there.
- [POST /v1/auth/oauth-requests/{request}/deny](https://docs.fidatory.com/api/denyOAuthRequest.md): Deny an authorization request (denyOAuthRequest; a console session). Refuses the request; the application is told access_denied when the browser is sent to the answered URL.
- [POST /v1/auth/oauth/{provider}/start](https://docs.fidatory.com/api/startOAuthSignIn.md): Start signing in with Google or GitHub (startOAuthSignIn; no key). Records the flow (valid 10 minutes) and answers the provider's authorization URL.
- [GET /v1/auth/passkeys](https://docs.fidatory.com/api/listPasskeys.md): List your passkeys (listPasskeys; a console session). The signed-in user's passkeys, oldest first.
- [POST /v1/auth/passkeys](https://docs.fidatory.com/api/addPasskey.md): Add a passkey (addPasskey; a console session). Stores the passkey the browser created.
- [POST /v1/auth/passkeys/authentication-options](https://docs.fidatory.com/api/passkeyAuthenticationOptions.md): Start a passkey sign-in (passkeyAuthenticationOptions; no key). WebAuthn request options for signing in with any passkey of this site.
- [POST /v1/auth/passkeys/registration-options](https://docs.fidatory.com/api/passkeyRegistrationOptions.md): Start adding a passkey (passkeyRegistrationOptions; a console session). WebAuthn creation options for a new passkey.
- [DELETE /v1/auth/passkeys/{passkey}](https://docs.fidatory.com/api/removePasskey.md): Remove a passkey (removePasskey; a console session). Removes a passkey and signs out your other sessions.
- [PATCH /v1/auth/passkeys/{passkey}](https://docs.fidatory.com/api/renamePasskey.md): Rename a passkey (renamePasskey; a console session). Changes a passkey's name; an active passkey's name needs a passkey sign-in in the last 12 hours.
- [GET /v1/auth/sessions](https://docs.fidatory.com/api/listSessions.md): List your sessions (listSessions; a console session). The signed-in user's live sessions, newest first.
- [POST /v1/auth/sessions](https://docs.fidatory.com/api/signIn.md): Sign in (signIn; no key). Opens a console session: method email_code with email, attempt_id and code; method passkey with challenge_id and the browser's response to /v1/auth/passkeys/authentication-options; or method oauth with provider, callback and code_verifier after /v1/auth/oauth/{provider}/start (OAuth sessions are never phishing-resistant).
- [DELETE /v1/auth/sessions/current](https://docs.fidatory.com/api/signOut.md): Sign out (signOut; a console session). Revokes the session this request was made with.
- [GET /v1/auth/sessions/current](https://docs.fidatory.com/api/getCurrentSession.md): Get the current session (getCurrentSession; a console session). The session this request was made with, its user and their organizations.
- [POST /v1/auth/sessions/revoke-others](https://docs.fidatory.com/api/revokeOtherSessions.md): Sign out everywhere else (revokeOtherSessions; a console session). Revokes all your sessions but this one; an owner or admin needs a recent passkey sign-in.
- [DELETE /v1/auth/sessions/{session}](https://docs.fidatory.com/api/revokeSession.md): Revoke a session (revokeSession; a console session). Revokes one of your sessions by its ID; revoking a revoked one answers 0.
- [GET /v1/companies/{id}](https://docs.fidatory.com/api/getCompany.md): Get a company (getCompany; API key). A company's summary as of one date: name, identifiers, listings, SEC profile, FIC class and latest published scores, each record in its envelope; include=financials, revenue_growth or insider_transactions adds sections.
- [GET /v1/companies/{id}/financials](https://docs.fidatory.com/api/listCompanyFinancials.md): List a company's financials (listCompanyFinancials; API key). A company's standardized statements by period, newest first (fy, q or ttm), with include=ratios, scores and alternatives (the concepts not chosen, D9).
- [GET /v1/datasets](https://docs.fidatory.com/api/listDatasets.md): List datasets (listDatasets; no key). The published datasets: code, title, description, record kind, filters, sources with their license classes and notices (attribution and terms to show with the data).
- [GET /v1/datasets/{dataset}](https://docs.fidatory.com/api/getDataset.md): Describe a dataset (getDataset; no key). One dataset by its code (sec.filings) or ID, with the JSON Schema of its payload.
- [GET /v1/datasets/{dataset}/condition](https://docs.fidatory.com/api/getDatasetCondition.md): A dataset's condition per day (getDatasetCondition; no key). A dataset's condition on each UTC day of publication from from to to (at most 366 days; the last 30 by default): available, degraded (a check found a problem: a circuit breaker paused it, or records are missing), missing, or pending (today, not settled yet); the worst state of the day.
- [GET /v1/datasets/{dataset}/records](https://docs.fidatory.com/api/listRecords.md): Query records (listRecords; API key). A dataset's records as known at a point in time (now by default), filtered by declared fields, entities and time ranges, in publication order.
- [POST /v1/datasets/{dataset}/records](https://docs.fidatory.com/api/queryRecords.md): Query records (JSON body) (queryRecords; API key). The same query as GET /v1/datasets/{dataset}/records with its parameters in a JSON body, for long filters and many refs.
- [GET /v1/datasets/{dataset}/records/{record}](https://docs.fidatory.com/api/getRecord.md): Get a record (getRecord; API key). A record's latest revision as known at a point in time (now by default); a retracted record answers its retraction.
- [GET /v1/datasets/{dataset}/records/{record}/content](https://docs.fidatory.com/api/getRecordContent.md): Get a record's stored document (getRecordContent; API key). The stored document of a record's latest revision at a point in time (a filing's text), when the record's has_content is true, or with section one section of it (a code from the record's payload.sections, by section or covers, as the dataset's payload schema lists them): always with Content-Security-Policy: sandbox and X-Content-Type-Options: nosniff, active types as attachments, an ETag (answer If-None-Match with 304; a section's is known without opening the document).
- [GET /v1/datasets/{dataset}/records/{record}/revisions](https://docs.fidatory.com/api/listRecordRevisions.md): List a record's revisions (listRecordRevisions; API key). Every revision of a record known at a point in time, oldest first: what was first reported and each correction since.
- [GET /v1/entities/{id}](https://docs.fidatory.com/api/getEntity.md): Get an entity (getEntity; API key). An entity, person, security, instrument or venue as of one date: its name, identifiers and relationships valid on that date, its FIC class for a company, and links to its reference, events and company views.
- [GET /v1/exports](https://docs.fidatory.com/api/listExports.md): List exports (listExports; API key or console session). The organization's export jobs, newest first.
- [POST /v1/exports](https://docs.fidatory.com/api/createExport.md): Export records (createExport; API key or console session). Starts a CSV or JSONL file of a dataset's records query (the records query's fields, without a cursor), bound to a point in time (as_of or as_of_reference, now by default) so the file never changes; a slice dataset's file holds its rows, each as records serve it.
- [GET /v1/exports/{export}](https://docs.fidatory.com/api/getExport.md): Read an export (getExport; API key or console session). One export job: its status, its counts once written, and a failure’s error.
- [GET /v1/exports/{export}/file](https://docs.fidatory.com/api/downloadExport.md): Download an export (downloadExport; API key or console session). The file of a succeeded export, while it has not expired (7 days) and its dataset is still published, with ETag (answer If-None-Match), Last-Modified, and one byte Range to resume a download (206).
- [GET /v1/fields](https://docs.fidatory.com/api/searchFields.md): Search fields (searchFields; no key). Finds the fields of the published datasets by what they hold: each with its dataset, its path in the payload, its type, its description and whether it takes a filter, best first.
- [GET /v1/live](https://docs.fidatory.com/api/streamLive.md): Stream live market data (streamLive; API key). Server-sent events of live trades, quotes and bars as they form, for up to 100 instruments: event trade, quote or bar, data {figi, kind, at, values}, each value an exact decimal as text.
- [GET /v1/lookup/{id}](https://docs.fidatory.com/api/lookup.md): Look up an ID without a key (lookup; no key). The free lookup of a Fidatory ID or an open identifier (cik:320193, figi:BBG000B9XRY4), with the entity's open identifiers; its permanent URI is https://api.fidatory.com/v1/lookup/{id}.
- [GET /v1/metrics](https://docs.fidatory.com/api/queryMetrics.md): Query metric values (queryMetrics; API key). Metric values one per item (spec 6.3): each with its value, unit and reason, and the envelope of the record it comes from (its effective dates, sources and derivation, without the payload), in publication order.
- [GET /v1/monitors](https://docs.fidatory.com/api/listMonitors.md): List monitors (listMonitors; API key or console session). The organization's monitors, newest first.
- [POST /v1/monitors](https://docs.fidatory.com/api/createMonitor.md): Create a monitor (createMonitor; API key or console session). Watches a watchlist or up to 100 references, sending monitor.change.v1 to a webhook for every new or revised record naming one of them (as subject or in refs, now or in its previous revision; a slice dataset row by row, at most 1,000 rows a revision, the last with rows_truncated), optionally limited to some datasets; or a saved records query of one dataset that is not a slice dataset, sending a change for every revision the query selects now or selected before, with transition entered, left or within.
- [DELETE /v1/monitors/{monitor}](https://docs.fidatory.com/api/deleteMonitor.md): Delete a monitor (deleteMonitor; API key or console session). Deletes the monitor and its alert rules.
- [GET /v1/monitors/{monitor}](https://docs.fidatory.com/api/getMonitor.md): Read a monitor (getMonitor; API key or console session). One monitor.
- [PATCH /v1/monitors/{monitor}](https://docs.fidatory.com/api/updateMonitor.md): Change, suppress or unsuppress a monitor (updateMonitor; API key or console session). Changes its name, datasets, webhook, notify_changes or enabled; suppressed_until suppresses it until then (it moves on without sending), and null unsuppresses it.
- [GET /v1/openapi.json](https://docs.fidatory.com/api/getOpenApi.md): The OpenAPI 3.1 document (getOpenApi; no key). The machine-readable description of every endpoint, generated from the routes served.
- [GET /v1/organizations](https://docs.fidatory.com/api/listOrganizations.md): List your organizations (listOrganizations; a console session). The organizations the signed-in user belongs to, by name, with the user's role.
- [POST /v1/organizations](https://docs.fidatory.com/api/createOrganization.md): Create an organization (createOrganization; a console session). A new organization owned by the signed-in user.
- [GET /v1/quality](https://docs.fidatory.com/api/listQuality.md): Quality metrics (listQuality; no key). The public quality metrics (spec 9.5) per UTC day, dataset and source, newest day first: freshness, revision, quarantine, duplicate, parser failure and conflict rates and completeness, each with its definition in meta.definitions.
- [GET /v1/references](https://docs.fidatory.com/api/searchReferences.md): Search references (searchReferences; API key). Find entities, people, securities, instruments and venues as known at a point in time: q is a name or its first words (Apple, JP Morgan, Societe Generale, トヨタ自動車), a ticker or its first letters (AAPL, BRK), an open identifier bare or as scheme:value (320193, cik:320193, ticker:xnys:IBM), a Fidatory ID or a UUID.
- [GET /v1/references/{kind}/{id}](https://docs.fidatory.com/api/getReference.md): Get a reference (getReference; API key). One entity, person, security, instrument or venue by its Fidatory ID, a UUID or scheme:value (cik:320193, ticker:IBM, ticker:xnys:IBM), with its names, identifiers and relationships over time as known at a point in time.
- [GET /v1/references/{kind}/{id}/identifiers](https://docs.fidatory.com/api/listReferenceIdentifiers.md): List a reference's identifiers (listReferenceIdentifiers; API key). Every one of a reference's identifiers as known at a point in time, in the order /v1/references/{kind}/{id} gives them, a page at a time: the whole list when that answer names it in meta.truncated, cut at 500 rows.
- [GET /v1/references/{kind}/{id}/names](https://docs.fidatory.com/api/listReferenceNames.md): List a reference's names (listReferenceNames; API key). Every one of a reference's names as known at a point in time, in the order /v1/references/{kind}/{id} gives them, a page at a time: the whole list when that answer names it in meta.truncated, cut at 500 rows.
- [GET /v1/references/{kind}/{id}/relationships](https://docs.fidatory.com/api/listReferenceRelationships.md): List a reference's relationships (listReferenceRelationships; API key). Every one of a reference's relationships as known at a point in time, in the order /v1/references/{kind}/{id} gives them, a page at a time: the whole list when that answer names it in meta.truncated, cut at 500 rows.
- [GET /v1/resolve](https://docs.fidatory.com/api/resolve.md): Resolve identifiers to Fidatory IDs (resolve; API key). The first step before any other call: each id (a ticker, CIK, FIGI, LEI, ISIN or a Fidatory ID; repeat id for up to 100) to the Fidatory IDs it named over the days asked, as {from, to, id} intervals, with partial and not_found lists.
- [POST /v1/resolve](https://docs.fidatory.com/api/resolveMany.md): Resolve identifiers (JSON body) (resolveMany; API key). The same as GET /v1/resolve with the inputs in a JSON body: {"inputs": [...], "valid_from", "valid_to", "as_of"}.
- [GET /v1/screener](https://docs.fidatory.com/api/screen.md): Screen instruments and companies (screen; API key). Instruments and companies filtered and sorted by stored fields and by values computed once per trading day (market capitalization, price ratios, technical indicators), each a stored value or a public fixed formula listed under fields.
- [POST /v1/screener](https://docs.fidatory.com/api/screenByBody.md): Screen instruments and companies (JSON body) (screenByBody; API key). The same screen as GET /v1/screener with its parameters in a JSON body, filter as an object of fields and values.
- [GET /v1/screener/fields](https://docs.fidatory.com/api/listScreenerFields.md): List screener fields (listScreenerFields; no key). Every field /v1/screener takes: its name, its type, the operators a filter on it accepts, whether it sorts, and whether it has values before the first daily snapshot.
- [GET /v1/stream](https://docs.fidatory.com/api/streamRecords.md): Stream new and revised records (streamRecords; API key). Server-sent events of new and revised records of one or more datasets, in publication order per stream: event revision (the record envelope, with a cursor as its id; a slice dataset sends one per row revision, in publication order and then by row ID, as records serve rows), notice (rights changed, with a cursor to catch up when restored; restore), end (with a reason: max_life after an hour, slow_consumer when the backlog keeps growing for 5 minutes (exports and webhooks suit such volumes), revoked, restore or shutdown), and a heartbeat comment every 15 seconds.
- [GET /v1/watchlists](https://docs.fidatory.com/api/listWatchlists.md): List watchlists (listWatchlists; API key or console session). The organization's watchlists with their item counts, newest first.
- [POST /v1/watchlists](https://docs.fidatory.com/api/createWatchlist.md): Create a watchlist (createWatchlist; API key or console session). A named set of references, given in any form /v1/resolve takes (at most 100 a call).
- [DELETE /v1/watchlists/{watchlist}](https://docs.fidatory.com/api/deleteWatchlist.md): Delete a watchlist (deleteWatchlist; API key or console session). Deletes the watchlist and its items; one that monitors watch is refused.
- [GET /v1/watchlists/{watchlist}](https://docs.fidatory.com/api/getWatchlist.md): Read a watchlist (getWatchlist; API key or console session). One watchlist with its item count; its items are listed by /items.
- [PATCH /v1/watchlists/{watchlist}](https://docs.fidatory.com/api/renameWatchlist.md): Rename a watchlist (renameWatchlist; API key or console session). Changes its name.
- [GET /v1/watchlists/{watchlist}/items](https://docs.fidatory.com/api/listWatchlistItems.md): List watchlist items (listWatchlistItems; API key or console session). The references a watchlist holds, in a stable order.
- [POST /v1/watchlists/{watchlist}/items](https://docs.fidatory.com/api/changeWatchlistItems.md): Add or remove watchlist items (changeWatchlistItems; API key or console session). Adds and removes references (at most 100 of each a call).
- [GET /v1/webhooks](https://docs.fidatory.com/api/listWebhooks.md): List webhooks (listWebhooks; API key or console session). The organization's webhooks, newest first, never a secret.
- [POST /v1/webhooks](https://docs.fidatory.com/api/createWebhook.md): Create a webhook (createWebhook; API key or console session). A new webhook for the event types it lists, with its signing secret shown once.
- [DELETE /v1/webhooks/{webhook}](https://docs.fidatory.com/api/deleteWebhook.md): Delete a webhook (deleteWebhook; API key or console session). Deletes the webhook and its pending deliveries; one that monitors or alert rules send to is refused.
- [GET /v1/webhooks/{webhook}](https://docs.fidatory.com/api/getWebhook.md): Read a webhook (getWebhook; API key or console session). One webhook, never its secret.
- [PATCH /v1/webhooks/{webhook}](https://docs.fidatory.com/api/updateWebhook.md): Change a webhook (updateWebhook; API key or console session). Changes its url, events, description or enabled; enabling it again clears disabled_reason.
- [GET /v1/webhooks/{webhook}/deliveries](https://docs.fidatory.com/api/listWebhookDeliveries.md): List deliveries (listWebhookDeliveries; API key or console session). The 30-day delivery log, newest first: each delivery’s type, status, attempts and last attempt.
- [POST /v1/webhooks/{webhook}/deliveries/{delivery}/replay](https://docs.fidatory.com/api/replayWebhookDelivery.md): Replay a delivery (replayWebhookDelivery; API key or console session). Queues the delivery’s event again as a new delivery, rendered now, naming the original in replay_of.
- [POST /v1/webhooks/{webhook}/rotate-secret](https://docs.fidatory.com/api/rotateWebhookSecret.md): Rotate a webhook secret (rotateWebhookSecret; API key or console session). A new signing secret, shown once.
- [POST /v1/webhooks/{webhook}/test](https://docs.fidatory.com/api/testWebhook.md): Send a test event (testWebhook; API key or console session). Queues a webhook.test.v1 delivery, at most 10 an hour per webhook.

## MCP tools (POST https://fidatory.com/mcp)

- [resolve](https://docs.fidatory.com/mcp/resolve.md): Call this first.
- [search_references](https://docs.fidatory.com/mcp/search_references.md): Finds entities, people, securities, instruments and venues as known at a point in time: q is a name or its first words (Apple, JP Morgan, トヨタ自動車), a ticker or its first letters (AAPL, BRK), an open identifier bare or as scheme:value (320193, cik:320193), a Fidatory ID or a UUID.
- [list_datasets](https://docs.fidatory.com/mcp/list_datasets.md): The published datasets with their codes, descriptions, record kinds, filter fields and sources.
- [search_fields](https://docs.fidatory.com/mcp/search_fields.md): Finds fields by what they hold, when you know the value you want but not where it is: q is words (gross margin, price per share).
- [describe_dataset](https://docs.fidatory.com/mcp/describe_dataset.md): One dataset by code (sec.filings) with its filter fields and the JSON Schema of its records' payload.
- [query_records](https://docs.fidatory.com/mcp/query_records.md): A dataset's records as known at a point in time, filtered by declared fields (filter: {"form": "10-K", "filing_date.gte": "2026-01-01"}), entities (ref) and time ranges; 25 a page by default.
- [query_metrics](https://docs.fidatory.com/mcp/query_metrics.md): Metric values one per item, each with its unit, the reason when null, and the envelope of the record it comes from: metric IDs such as fundamentals.ratios.net_margin, fundamentals.statements.revenue or scores.altman_z_double_prime.z (describe_dataset lists a dataset's metrics), for entities by ref (resolve first; a ticker reaches its issuer), period_type fy, q or ttm; 25 a page by default.
- [screen](https://docs.fidatory.com/mcp/screen.md): Instruments and companies filtered and sorted by stored fields and values computed once per trading day, as GET /v1/screener answers: filter maps a field, with an optional .<op>, to a value; sort takes a field with an optional leading minus; as_of reads a past day.
- [get_record](https://docs.fidatory.com/mcp/get_record.md): One record's latest revision as known at a point in time, by its record ID.
- [read_document](https://docs.fidatory.com/mcp/read_document.md): The text of a record's stored document (a filing's text; has_content true), or with section one section of it (the codes are in the record's payload.sections, with section or covers): at most 50,000 code points a call from offset, with next_offset to read on (null at the end), and the record's envelope for its provenance.
- [get_reference](https://docs.fidatory.com/mcp/get_reference.md): One reference by Fidatory ID or identifier, with its names, identifiers and relationships over time.
- [get_entity](https://docs.fidatory.com/mcp/get_entity.md): One entity, person, security, instrument or venue as of a date: its name, identifiers and relationships valid on valid_on, its industry class with labels, and links to its events and, for a company, get_company.
- [get_company](https://docs.fidatory.com/mcp/get_company.md): A company by Fidatory ID, CIK or ticker (a ticker reaches its issuer, named in meta.resolved_via).

## OAuth 2.1 (in addition to keys)

MCP clients and other applications can act for a signed-in member with an access token instead of a key (scope data:read, one organization, approved in the console). Authorization code with PKCE (S256), RFC 8707 resources, RFC 9207 iss; client ID metadata documents or dynamic registration of public clients. Protocol endpoints keep their RFCs' retry rules and take no Idempotency-Key.

- Authorization server metadata: https://api.fidatory.com/.well-known/oauth-authorization-server
- Protected resources: https://fidatory.com/.well-known/oauth-protected-resource/mcp (resource https://fidatory.com/mcp) and https://api.fidatory.com/.well-known/oauth-protected-resource/v1 (resource https://api.fidatory.com/v1)
- Endpoints: /oauth/authorize, /oauth/token, /oauth/revoke, /oauth/register
- A token serves its resource only, lives an hour, and is refreshed with a rotating refresh token when the client allows the refresh_token grant.

## Errors

- [invalid_parameter](https://docs.fidatory.com/errors/invalid-parameter.md) (400): A parameter or the body is not valid; details.parameter names it. Fix it and send the call again.
- [cursor_invalid](https://docs.fidatory.com/errors/cursor-invalid.md) (400): The cursor is not one this query returned: pass the previous page’s meta.next_cursor unchanged, with the same parameters and key.
- [unauthenticated](https://docs.fidatory.com/errors/unauthenticated.md) (401): No valid API key: send it as "Authorization: Bearer <key>" or in X-API-Key, never in the URL.
- [payment_required](https://docs.fidatory.com/errors/payment-required.md) (402): The call needs a payment or credits the account does not have.
- [not_entitled](https://docs.fidatory.com/errors/not-entitled.md) (403): The plan does not include this dataset or endpoint.
- [account_inactive](https://docs.fidatory.com/errors/account-inactive.md) (403): The organization is suspended or closed, or the user is disabled; the console says why.
- [insufficient_role](https://docs.fidatory.com/errors/insufficient-role.md) (403): Your role in the organization is too low for this action; details.required names the role it needs.
- [reauthentication_required](https://docs.fidatory.com/errors/reauthentication-required.md) (401): This action needs a recent sign-in with a passkey; details.reauthenticate says how. Sign in again and retry.
- [not_found](https://docs.fidatory.com/errors/not-found.md) (404): Nothing matches: the dataset, record, reference or endpoint does not exist, or not at that point in time.
- [method_not_allowed](https://docs.fidatory.com/errors/method-not-allowed.md) (405): The path exists with other methods, which the Allow header lists.
- [idempotency_in_progress](https://docs.fidatory.com/errors/idempotency-in-progress.md) (409): A request with the same Idempotency-Key is still running; retry after Retry-After seconds.
- [cursor_expired](https://docs.fidatory.com/errors/cursor-expired.md) (410): The cursor is older than 24 hours, or a restore of the data ended it: repeat the query without a cursor.
- [reference_lost](https://docs.fidatory.com/errors/reference-lost.md) (410): The data this as_of_reference names was lost by a restore: repeat the query with as_of, or with neither.
- [idempotency_key_reused](https://docs.fidatory.com/errors/idempotency-key-reused.md) (422): The Idempotency-Key was already used for a different request; use a new key for a new request.
- [query_too_expensive](https://docs.fidatory.com/errors/query-too-expensive.md) (422): The query would take too long: narrow it with a filter, a ref or a shorter range, or use an export.
- [rate_limited](https://docs.fidatory.com/errors/rate-limited.md) (429): Too many requests: wait Retry-After seconds (also details.retry_after) and retry.
- [internal](https://docs.fidatory.com/errors/internal.md) (500): Something went wrong on our side; details carry nothing more. Retrying later may help.
- [unavailable](https://docs.fidatory.com/errors/unavailable.md) (503): The service is briefly unavailable; retry with backoff.
- [source_unavailable](https://docs.fidatory.com/errors/source-unavailable.md) (503): The upstream source (such as SEC EDGAR) is down; retry later.

## Optional

- [Full reference](https://api.fidatory.com/llms-full.txt)
