Skip to main content
Our API is built with agentic use in mind and we strongly encourage experimentation with them to streamline your own workflows on the Emidat platform. This guide walks you through an example of a tedious task made simple by connecting a coding agent to Emidat through our API. This guide will use Claude Code as a coding agent. Similar principles apply for other tools like OpenAI Codex, Pi or OpenCode.

Set up a workspace for your project

In our experience coding agents work best if you create a project directory that can contain their work. For instance, this will allow your agent to save scripts it writes, read input files and write output files. To get started, simply create an empty directory with just a single file:
.env
You can use the .env file to store the API key you use to authenticate with the Emidat API:

Teach your agent how to use our API

We offer a Model Context Protocol (MCP) server that your agent can use to teach itself how to use the Emidat API. You can install it with the following command:
You can also point your agent to our skill file in your prompt if you do not want to configure an MCP connection:

Ask your agent to solve the issue

At this point you are fully set up to ask your agent to create a bespoke automation for the task you require, you could for instance ask it to do the following: