Back
guide engineering
APR 17

Getting Started: From Schema to Automation in 5 Minutes

You've got your API key. Now learn how to build your first agent-native endpoint, connect your AI tools, and activate automated intelligence.

đŸ‘€
Postbox Team
· · 2 min read

This guide assumes you have already created a Postbox account and generated your first API Key.

If you haven’t done that yet, start here to get your credentials before continuing.

Once you have your POSTBOX_API_KEY, you are ready to move from a static web to the Agentic Web. Here is how to wire up your first endpoint.

1. Connecting your Agents

Postbox isn’t just a place to store data; it’s a bridge for your agents. Before you even create a form, you should decide how your AI will interact with Postbox.

For Coding Agents (Claude Code, Cursor, etc.)

If you use a coding harness, the easiest way to give it “Postbox powers” is via our built-in Skill. This allows your agent to create forms and query submissions directly from your terminal or editor.

For Chat Agents (ChatGPT, Claude.ai)

If you want to “talk” to your data in a browser-based agent, connect our MCP Server.

  1. Open your Agent’s MCP settings.
  2. Add a new server with the URL: https://usepostbox.com/mcp.
  3. Follow the OAuth flow to authorize access.

Now your agent can see your forms and summarize your submissions just by asking.

2. Defining the Contract

In Postbox, we don’t “build” forms; we define contracts. Head to your dashboard and create a new form.

You’ll define a Schema — a machine-readable list of fields, types, and rules.

  • Fields: email, feedback_score, message.
  • Types: Strictly enforced (email, number, boolean).
  • Rules: required, min_length, or even honeypot to trap bots.

The moment you save, you get a unique, versioned URL. This is your Endpoint.

3. Testing the Endpoint

Your endpoint is self-documenting. To see what your agent sees, try a GET request with a JSON header:

curl -H "Accept: application/json" https://usepostbox.com/api/.../f/your-slug

You’ll get back the full schema. Now, send your first submission:

curl -X POST https://usepostbox.com/api/.../f/your-slug \
  -H "Content-Type: application/json" \
  -d '{"email": "test@example.com", "message": "It works!"}'

4. Activating Intelligence

This is where Postbox gets “smart.” Within your form settings, you can toggle on Opt-in AI Features:

  • Intelligent Spam: Uses the intent of your form to block off-topic noise.
  • Auto-translation: Detects the language of the submission and localizes it instantly.
  • Smart Replies: Links a Knowledge Base to your form to draft or auto-send context-aware responses.

5. Connecting your Stack

Finally, tell Postbox where to send the cleaned, processed data. Add a Destination:

  • Webhooks: For your custom backend (with HMAC signing for security).
  • Discord/Slack: For instant team notifications in rich, structured blocks.

The data your systems receive is now “clean-room quality” — validated, filtered, and ready for action.


Ready to go deeper? Explore the REST API Reference or join our Discord to see what others are building.

Have thoughts?
Or connect for more dispatches.