Getting started

Authentication

OAuth for AI assistants, keys for scripts, scopes and approvals.

Every request carries a bearer token. There are two kinds, and both work on MCP and the REST API.

OAuth (Sign in with ZieAds)Key
Best forClaude, ChatGPT, Cursor, Claude Code, VS CodeREST API, Zapier, Make, n8n, scripts, MCP clients that take headers
How you get itThe app opens a ZieAds screen and you choose Allow accessCreate one in Settings, API and MCP
LifetimeAccess token 1 hour, refreshed by the app for 90 daysUntil you revoke it
Where to revokeConnected apps, DisconnectKeys, Revoke

Sending a key

Header
Authorization: Bearer zk_your_key

Keys start with zk_. ZieAds stores only a SHA-256 fingerprint, so a lost key cannot be recovered. Create a new one and revoke the old one. You can have 10 active keys.

Scopes

ScopeAllows
readBriefing, analytics, ads summary, posts, comments, competitors, account health and pending actions. Always included.
draftCreate draft posts, draft comment replies and ask to track competitors. Every draft waits for approval.

Approvals and auto approve

A draft action creates an approval request in ZieAds. You see it on the AI Analyst page and in the approvals list. When you approve it, ZieAds does the work, for example schedules the post. A key can skip approval for these actions only:

ActionWhat happens when skipped
schedule_postA drafted post is scheduled right away for its time.
send_replyA drafted reply is sent to the comment.
add_competitorThe brand is added to Competitor Hunt.
Leave auto approve off until you trust a workflow. Every call is recorded in the activity log either way.

Keep keys safe

  • Never put a key in front end code or a public repository.
  • Use one key per tool, so you can revoke one without breaking the others.
  • Give read only keys to tools that only read.