Start here
Hook up a script or an AI assistant and it can draft campaigns, tend to your audience and pull your reports. Whatever it drafts stays put until a person says yes, and only then is anything sent.
https://api.dashstash.ai/v1https://mcp.dashstash.aiThree steps
Start with a fresh key and end with a draft campaign. Each step is short.
- 1
Make a key
Open Settings → API keys in DashStash and choose New key. Set what it is allowed to do, then copy it at once. DashStash shows the key one time only, so save it somewhere private and never paste it into your code.
- 2
Test a call
Pass the key in the
Authorizationheader. The call below returns the campaigns on your account.Terminal curl https://api.dashstash.ai/v1/campaigns \ -H "Authorization: Bearer $DASHSTASH_API_KEY"JavaScript const res = await fetch("https://api.dashstash.ai/v1/campaigns", { headers: { Authorization: `Bearer ${process.env.DASHSTASH_API_KEY}` }, }); const { data } = await res.json();Python import os, requests res = requests.get( "https://api.dashstash.ai/v1/campaigns", headers={"Authorization": f"Bearer {os.environ['DASHSTASH_API_KEY']}"}, ) print(res.json()["data"])Reply { "data": [ { "id": "cmp_8f2k", "name": "October newsletter", "status": "awaiting_approval" } ], "has_more": false } - 3
Draft a campaign
New items always begin as drafts. When one looks right, ask for the go-ahead and a person approves it inside DashStash.
Create a draft curl -X POST https://api.dashstash.ai/v1/campaigns \ -H "Authorization: Bearer $DASHSTASH_API_KEY" \ -H "Content-Type: application/json" \ -d '{"name": "October newsletter", "audience": "aud_4d1x"}'Request approval curl -X POST https://api.dashstash.ai/v1/campaigns/cmp_8f2k/request-approval \ -H "Authorization: Bearer $DASHSTASH_API_KEY"A person decides what goes out. A key can write, edit and propose, but it can never press send. That means no script or assistant can email your customers on its own.
Want access? The API is available to early-access accounts. Email [email protected].