AgentCrafts

APIs that hold up when the workflow depends on them.

Most automation failures are not model failures. They are API failures: a token expires, a rate limit hits, a webhook fires twice, a response shape changes. I build the API layer so those failures are visible, recoverable and documented.

What this is

The API layer is part of the system, not a detail

An agent or automation is only as reliable as the API it calls. If the endpoint times out, returns a different shape or accepts the same request twice, the workflow breaks in a way that is hard to see and expensive to clean up.

I design and build the API layer around the workflow: typed contracts, auth, pagination, rate limits, retries, idempotency, webhooks and a log of every call. Then I connect it to the tools you already use and hand over the documentation.

The problem

What usually goes wrong

01

The integration works until the API changes

A field is renamed, a response gains a wrapper or a provider deprecates a version. The workflow fails silently and nobody knows which call broke.

02

The webhook fires twice

A retry, a duplicate delivery or a user double click creates two records, two invoices or two emails. Without idempotency, the second one is a support ticket.

03

Nobody can see what the API is doing

There is no request log, no trace and no replay. When something goes wrong, the only evidence is a generic error and a customer waiting.

What you get

The parts that make it usable

API design and build

REST or GraphQL endpoints with typed request and response contracts, versioning and a clear owner. Built for the workflow, not for a demo.

API handling

Auth, pagination, rate limits, retries with backoff, idempotency keys, timeouts and a dead letter path. The boring parts that keep a run alive.

Webhooks and events

Signed webhooks, duplicate detection, replay and a queue for anything that cannot be processed yet. Nothing is lost when a receiver is down.

Observability and docs

Structured logs, traces, alerts and an OpenAPI spec. Your team can see what happened, test a call and take over the integration.

What changes

The result in plain terms

Failed runs

Visible and replayable

A failed call is logged with the request, the response and the next step. The work can be replayed instead of rebuilt by hand.

Duplicate events

Handled once

Idempotency keys and duplicate detection stop the same webhook from creating a second record.

Handover

OpenAPI and a runbook

Your team gets the spec, the auth notes, the error map and a walkthrough, not a black box.

How it works

What happens, step by step

01

Map the contract

We write down the endpoints, the fields, the auth, the rate limits and what should happen when a call fails. The contract comes before the code.

02

Build the layer

I build the smallest reliable API or integration, with typed contracts and the error paths in place from the start.

03

Break it on purpose

Expired tokens, duplicate webhooks, slow responses, rate limits and malformed payloads. The failure path is tested before launch.

04

Document and hand over

OpenAPI spec, environment notes, a runbook and a recorded walkthrough. Your team can run it, change it and hand it to another developer.

Proof

Inbox-to-CRM agent

The agent reads the inbox, enriches the sender, writes the CRM record and drafts a reply. The API layer handles auth, retries and the approval step before anything sends.

6 hrs a week back

Read the full project

After launch

The first version is not the finish.

I watch the real runs, fix what breaks and extend the system as volume grows. If you want a system that keeps improving, care or a monthly partnership is part of the work.

See how care and scaling work

Or partner with me month to month

Fit

Who this is for

A good fit

  • Your workflow depends on an API that is unreliable or undocumented
  • You need a custom endpoint between two systems that do not speak directly
  • You have duplicate records from webhooks or retries
  • You want the API documented and handed over, not rented

Not the right fit

  • You need a full platform team to run a public API at scale
  • You want an integration with a tool that has no API and no export path

Questions buyers ask

API handling and building: the questions that decide it

What does API handling mean?

It is the work around the API call: authentication, pagination, rate limits, retries, timeouts, idempotency, webhooks, error mapping and logging. The call itself is one line. The handling is what makes it reliable.

Can you build a custom API for our internal system?

Yes. I build REST or GraphQL endpoints around your data and rules, with typed contracts, auth, tests and documentation. It can sit between your agents and an internal database, or replace a fragile spreadsheet process.

Can you fix an API integration that keeps failing?

Yes. I read the existing calls, logs and error responses, find the failure and repair it. If the integration is too fragile to keep, I will say so and give you the cost of a rebuild.

Do you work with REST, GraphQL and webhooks?

Yes. REST and GraphQL for request and response, webhooks for events, and queues for anything that cannot be processed immediately. The choice follows the system you already have.

How do you handle auth and rate limits?

Least privilege credentials, scoped keys, token refresh, backoff on rate limits and a clear alert when a limit is hit. No shared passwords and no credentials in the browser.

Can you document the API for our team?

Yes. You get an OpenAPI spec, a short runbook, the error map and a recorded walkthrough. The documentation is part of the handover, not an extra line item.

Related

Other ways I can help

AI agents

I build custom AI agents that read, decide and act across your tools, with approvals, retries and cost caps. Built and handed over by one automation engineer.

Read about ai agents

Let's build

Which API is causing the most trouble?

Describe the system, the call that fails and what happens next. I will tell you whether it needs a fix, a new endpoint or a different design.