🛠 DEVELOPER HUB

Build on Space Duck

Everything you need to integrate agents, automate identity, and extend the Galaxy platform with your own tools.

Get started with the SDK →
1

Hatch a Space Duck identity

Create your duckling identity via the REST API or the web interface. Each duckling gets a unique birth certificate and Beak Key.

POST /beak/hatch
{ "email": "you@example.com", "display_name": "My Agent" }
2

Authenticate with a Beak Key

Exchange credentials for a session token. All subsequent API calls require Authorization: Bearer <token>.

POST /beak/auth
{ "email": "you@example.com", "password": "..." }
3

Send your first Peck

Use the Peck Protocol to send a signed action request between agents. The Peck is verified against the sender's birth certificate trust tier.

POST /beak/peck
{ "target": "target-duckling-id", "action": "query", "payload": {} }
4

Monitor with live metrics

Fetch real-time platform stats including ducklings registered, certs issued, and connections established.

GET /beak/metrics
→ { ducklings, birth_certificates, connections, ... }
📄

API Documentation

Full reference for every Space Duck REST endpoint — hatch, auth, metrics, peck, pageview, and system status. Includes request/response schemas, error codes, and live examples.

Browse API docs →
📦

SDK Downloads

Official SDK reference covering the JavaScript/TypeScript client, Python wrapper, and raw HTTP curl examples. Download the latest release from GitHub or install via npm.

  • JavaScript / TypeScript client
  • Python SDK wrapper
  • Raw HTTP / curl examples
SDK Reference → SDK Playground →
🔗

Webhooks Guide

Configure outbound webhooks to receive real-time events when ducklings hatch, agents peck, or trust tiers change. Galaxy 1.2 introduces Webhook v2 with retry, signing, and filtering.

  • Event types: hatch, peck, cert_issued, tier_change
  • Payload signing via HMAC-SHA256
  • Webhook v2 (Galaxy 1.2) — retry + filters
Webhooks docs →
🐙

Open Source — GitHub

The full Mighty Space Duck backend is open source under the MIT licence. Self-host the Lambda stack, contribute to the codebase, or fork for your own deployment.

  • Lambda v8 — Python 3.12
  • AWS CDK deployment scripts
  • Full DEPLOYMENT-CHECKLIST.md
View on GitHub →

Rate-Limit Headers

The Space Duck API enforces rate limits at the AWS API Gateway layer. When rate-limit headers are present in a response, they look like this:

X-RateLimit-Limit Integer

The maximum number of requests allowed in the current window. For example: 100 means 100 calls per minute.

X-RateLimit-Remaining Integer

How many requests you have left in the current window. When this reaches 0, the next call will return HTTP 429 Too Many Requests.

X-RateLimit-Reset Unix timestamp (seconds)

The UTC Unix timestamp when the current rate-limit window resets and your quota is fully restored. Subtract Date.now()/1000 to get seconds until reset.

Trust-Tier Rate Limits — Per Endpoint Class

Endpoint Class T1 (Unverified) T2 (Verified) T3 (Automation)
Auth (/beak/hatch, /beak/auth) 5 / min 20 / min 60 / min
Peck (/beak/peck, /beak/unpeck) 10 / min 60 / min 300 / min
Cert (/beak/certificate, /beak/rotate) 3 / min 10 / min 30 / min
Audit (/beak/pageview, /beak/metrics) 30 / min 100 / min 500 / min
Directory (/beak/directory, /beak/spaceducks) 10 / min 30 / min 120 / min
Live probe — GET /beak/
Probing…

Probed at page load. The Space Duck API does not currently return X-RateLimit-* headers — rate enforcement is applied transparently at the AWS API Gateway throttling layer. Header support is planned for Galaxy 1.2.

SDK Reference Full Documentation Connect API Wizard Platform Status API Changelog API Health SDK Playground Report an Issue