Ask the Copilot
Run the Arabic-aware Marketing Copilot for one instruction and get back its answer plus a live, multi-step plan.
/api/v1/copilot/askRun eWasl's Marketing Copilot — an Arabic-aware agent that analyses your ad performance, retrieves your brand voice, policy-checks copy, and plans multi-step work — for a single instruction. The agent calls read tools across your ads and social data as needed (up to 8 tool rounds) and returns its final answer plus the live todo plan it produced.
Pass the returned sessionId back on your next call to continue the same plan.
Ad write actions (pausing campaigns, toggling auto-pilot) are only
available when your API key also holds the ads:write scope. With the
copilot scope alone, the copilot is read + planning only — it can never
change a live ad platform.
Body Parameters
messagestringRequiredYour instruction or question for the copilot. Max 4000 characters. Arabic or English.
sessionIdstring (uuid)RequiredContinue an existing session/plan. Omit to start a new session — the response returns the new sessionId.
locale'ar' | 'en'OptionalarReply language. Defaults to Arabic.
Response
data.sessionIdstring (uuid)The session this turn belongs to. Reuse it to continue the plan.
data.replystringThe copilot's final natural-language answer.
data.todosarrayThe live, ordered plan the copilot produced — each item has position, text, and status (pending | in_progress | done | skipped).
data.usageobject | nullToken usage for the turn (inputTokens, outputTokens).
Response Example
Status Codes
copilot scope, or the plan is not Professional/Enterprise.message).