Create tokens to access Darwin programmatically — chat and all enabled skills. Treat tokens like passwords.
✓ Token created — copy it now, it won't be shown again:
How to use a token
# Unified endpoint — chat + skills, Darwin auto-routes
curl -X POST https://darwin.mimicx.ai/api/v1/agent \
-H "Authorization: Bearer mx_darwin_..." \
-H "Content-Type: application/json" \
-d '{"prompt":"generate a red tomato"}'
# → {type:"image", image_b64:"..."} or {type:"text", text:"..."}
# Streaming (Server-Sent Events)
curl -N -X POST https://darwin.mimicx.ai/api/v1/agent \
-H "Authorization: Bearer mx_darwin_..." \
-H "Content-Type: application/json" \
-d '{"prompt":"Hello Darwin","stream":true}'
# → data: {"type":"delta","text":"..."} ... data: [DONE]
# Invoke a specific skill directly
curl -X POST https://darwin.mimicx.ai/api/v1/skills/create_pdf/invoke \
-H "Authorization: Bearer mx_darwin_..." \
-H "Content-Type: application/json" \
-d '{"args":{"title":"Report","sections":[...]}}'