Skip to main content
The Datafold REST API lets you work with Datafold from scripts, pipelines and scheduled jobs. To work with Datafold from an AI agent, use the MCP server instead. To use the REST API, you need an API key.

Create an API key

In Datafold, go to Settings → Account → API keys and click Create API Key.
Store your API key somewhere safe. If you lose it, you need to create a new one.
For pipelines, scheduled jobs, scripts, and other automation, use a service account instead of a personal API key. Service accounts are machine identities owned by your organization. They keep working when the original creator leaves the team, and they can hold more keys (50, compared with 5 per user).

Use your API key

Send the API key in the Authorization header of each request, with the Key scheme:
The REST API accepts only the Key scheme, not Bearer. (The MCP server accepts both.) For example, with cURL:

Base URL

Send requests to https://<DATAFOLD_HOST>, the Datafold URL you sign in to. Replace <DATAFOLD_HOST> in the examples with that URL. The MCP server endpoint uses the same host, at /mcp/. If you use Datafold Classic, see the Classic API reference.
If your organization’s trial period has ended, API keys stop authenticating and requests return 401 Unauthorized. Contact support@datafold.com to extend access.

Need help?

If you have questions about the REST API, contact Datafold Support via Slack, in-app chat, or support@datafold.com.